Mercurial > vim
comparison src/if_py_both.h @ 4922:8dd2769ab75c v7.3.1206
updated for version 7.3.1206
Problem: Inconsistent function argument declarations.
Solution: Use ANSI style.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 16 Jun 2013 14:25:57 +0200 |
parents | 0792cc5133ce |
children | b34d719b13cd |
comparison
equal
deleted
inserted
replaced
4921:e47973e026d2 | 4922:8dd2769ab75c |
---|---|
1276 | 1276 |
1277 return (PyObject *)(self); | 1277 return (PyObject *)(self); |
1278 } | 1278 } |
1279 | 1279 |
1280 static dict_T * | 1280 static dict_T * |
1281 py_dict_alloc() | 1281 py_dict_alloc(void) |
1282 { | 1282 { |
1283 dict_T *r; | 1283 dict_T *r; |
1284 | 1284 |
1285 if (!(r = dict_alloc())) | 1285 if (!(r = dict_alloc())) |
1286 { | 1286 { |
1543 (destructorfun) PyMem_Free, (nextfun) DictionaryIterNext, | 1543 (destructorfun) PyMem_Free, (nextfun) DictionaryIterNext, |
1544 NULL, NULL); | 1544 NULL, NULL); |
1545 } | 1545 } |
1546 | 1546 |
1547 static PyInt | 1547 static PyInt |
1548 DictionaryAssItem(DictionaryObject *self, PyObject *keyObject, PyObject *valObject) | 1548 DictionaryAssItem( |
1549 DictionaryObject *self, PyObject *keyObject, PyObject *valObject) | |
1549 { | 1550 { |
1550 char_u *key; | 1551 char_u *key; |
1551 typval_T tv; | 1552 typval_T tv; |
1552 dict_T *dict = self->dict; | 1553 dict_T *dict = self->dict; |
1553 dictitem_T *di; | 1554 dictitem_T *di; |
2667 return NULL; | 2668 return NULL; |
2668 } | 2669 } |
2669 } | 2670 } |
2670 | 2671 |
2671 static int | 2672 static int |
2672 set_option_value_err(key, numval, stringval, opt_flags) | 2673 set_option_value_err(char_u *key, int numval, char_u *stringval, int opt_flags) |
2673 char_u *key; | |
2674 int numval; | |
2675 char_u *stringval; | |
2676 int opt_flags; | |
2677 { | 2674 { |
2678 char_u *errmsg; | 2675 char_u *errmsg; |
2679 | 2676 |
2680 if ((errmsg = set_option_value(key, numval, stringval, opt_flags))) | 2677 if ((errmsg = set_option_value(key, numval, stringval, opt_flags))) |
2681 { | 2678 { |
2686 } | 2683 } |
2687 return OK; | 2684 return OK; |
2688 } | 2685 } |
2689 | 2686 |
2690 static int | 2687 static int |
2691 set_option_value_for(key, numval, stringval, opt_flags, opt_type, from) | 2688 set_option_value_for( |
2692 char_u *key; | 2689 char_u *key, |
2693 int numval; | 2690 int numval, |
2694 char_u *stringval; | 2691 char_u *stringval, |
2695 int opt_flags; | 2692 int opt_flags, |
2696 int opt_type; | 2693 int opt_type, |
2697 void *from; | 2694 void *from) |
2698 { | 2695 { |
2699 win_T *save_curwin = NULL; | 2696 win_T *save_curwin = NULL; |
2700 tabpage_T *save_curtab = NULL; | 2697 tabpage_T *save_curtab = NULL; |
2701 buf_T *save_curbuf = NULL; | 2698 buf_T *save_curbuf = NULL; |
2702 int r = 0; | 2699 int r = 0; |
5617 PYTYPE_READY(LoaderType); | 5614 PYTYPE_READY(LoaderType); |
5618 return 0; | 5615 return 0; |
5619 } | 5616 } |
5620 | 5617 |
5621 static int | 5618 static int |
5622 init_sys_path() | 5619 init_sys_path(void) |
5623 { | 5620 { |
5624 PyObject *path; | 5621 PyObject *path; |
5625 PyObject *path_hook; | 5622 PyObject *path_hook; |
5626 PyObject *path_hooks; | 5623 PyObject *path_hooks; |
5627 | 5624 |