add parameter list (or void) to all C functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e4ef0a23d3
commit
61001d958f
13 changed files with 19 additions and 19 deletions
|
|
@ -38,12 +38,12 @@ extern "C" {
|
||||||
extern void Swig_cparse_follow_locators(int);
|
extern void Swig_cparse_follow_locators(int);
|
||||||
extern void start_inline(char *, int);
|
extern void start_inline(char *, int);
|
||||||
extern String *scanner_ccode;
|
extern String *scanner_ccode;
|
||||||
extern int yylex();
|
extern int yylex(void);
|
||||||
|
|
||||||
/* parser.y */
|
/* parser.y */
|
||||||
extern SwigType *Swig_cparse_type(String *);
|
extern SwigType *Swig_cparse_type(String *);
|
||||||
extern Node *Swig_cparse(File *);
|
extern Node *Swig_cparse(File *);
|
||||||
extern Hash *Swig_cparse_features();
|
extern Hash *Swig_cparse_features(void);
|
||||||
extern void SWIG_cparse_set_compact_default_args(int defargs);
|
extern void SWIG_cparse_set_compact_default_args(int defargs);
|
||||||
extern int SWIG_cparse_template_reduce(int treduce);
|
extern int SWIG_cparse_template_reduce(int treduce);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ extern int DohGetmark(DOH *obj);
|
||||||
* Strings.
|
* Strings.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern DOHString *DohNewStringEmpty();
|
extern DOHString *DohNewStringEmpty(void);
|
||||||
extern DOHString *DohNewString(const DOH *c);
|
extern DOHString *DohNewString(const DOH *c);
|
||||||
extern DOHString *DohNewStringWithSize(const DOH *c, int len);
|
extern DOHString *DohNewStringWithSize(const DOH *c, int len);
|
||||||
extern DOHString *DohNewStringf(const DOH *fmt, ...);
|
extern DOHString *DohNewStringf(const DOH *fmt, ...);
|
||||||
|
|
@ -309,14 +309,14 @@ extern int DohCopyto(DOHFile * input, DOHFile * output);
|
||||||
* List
|
* List
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern DOHList *DohNewList();
|
extern DOHList *DohNewList(void);
|
||||||
extern void DohSortList(DOH *lo, int (*cmp) (const DOH *, const DOH *));
|
extern void DohSortList(DOH *lo, int (*cmp) (const DOH *, const DOH *));
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Hash
|
* Hash
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern DOHHash *DohNewHash();
|
extern DOHHash *DohNewHash(void);
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Void
|
* Void
|
||||||
|
|
|
||||||
|
|
@ -535,7 +535,7 @@ DohObjInfo DohHashType = {
|
||||||
* Create a new hash table.
|
* Create a new hash table.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
DOH *DohNewHash() {
|
DOH *DohNewHash(void) {
|
||||||
Hash *h;
|
Hash *h;
|
||||||
int i;
|
int i;
|
||||||
h = (Hash *) DohMalloc(sizeof(Hash));
|
h = (Hash *) DohMalloc(sizeof(Hash));
|
||||||
|
|
|
||||||
|
|
@ -345,7 +345,7 @@ DohObjInfo DohListType = {
|
||||||
|
|
||||||
#define MAXLISTITEMS 8
|
#define MAXLISTITEMS 8
|
||||||
|
|
||||||
DOH *DohNewList() {
|
DOH *DohNewList(void) {
|
||||||
List *l;
|
List *l;
|
||||||
int i;
|
int i;
|
||||||
l = (List *) DohMalloc(sizeof(List));
|
l = (List *) DohMalloc(sizeof(List));
|
||||||
|
|
|
||||||
|
|
@ -1056,7 +1056,7 @@ DOHString *DohNewString(const DOH *so) {
|
||||||
* NewStringEmpty() - Create a new string
|
* NewStringEmpty() - Create a new string
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
DOHString *DohNewStringEmpty() {
|
DOHString *DohNewStringEmpty(void) {
|
||||||
int max = INIT_MAXSIZE;
|
int max = INIT_MAXSIZE;
|
||||||
String *str = (String *) DohMalloc(sizeof(String));
|
String *str = (String *) DohMalloc(sizeof(String));
|
||||||
str->hashkey = 0;
|
str->hashkey = 0;
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ void Swig_check_options(int check_input) {
|
||||||
* Generates a generic error message and exits.
|
* Generates a generic error message and exits.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Swig_arg_error() {
|
void Swig_arg_error(void) {
|
||||||
Printf(stderr, "SWIG : Unable to parse command line options.\n");
|
Printf(stderr, "SWIG : Unable to parse command line options.\n");
|
||||||
Printf(stderr, "Use 'swig -help' for available options.\n");
|
Printf(stderr, "Use 'swig -help' for available options.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ void Swig_push_directory(const String_or_char *dirname) {
|
||||||
* the preprocessor.
|
* the preprocessor.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Swig_pop_directory() {
|
void Swig_pop_directory(void) {
|
||||||
if (!Swig_get_push_dir())
|
if (!Swig_get_push_dir())
|
||||||
return;
|
return;
|
||||||
if (!pdirectories)
|
if (!pdirectories)
|
||||||
|
|
@ -87,7 +87,7 @@ void Swig_pop_directory() {
|
||||||
* Returns the full pathname of the last file opened.
|
* Returns the full pathname of the last file opened.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
String *Swig_last_file() {
|
String *Swig_last_file(void) {
|
||||||
assert(lastpath);
|
assert(lastpath);
|
||||||
return lastpath;
|
return lastpath;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ struct Scanner {
|
||||||
* Create a new scanner object
|
* Create a new scanner object
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
Scanner *NewScanner() {
|
Scanner *NewScanner(void) {
|
||||||
Scanner *s;
|
Scanner *s;
|
||||||
s = (Scanner *) malloc(sizeof(Scanner));
|
s = (Scanner *) malloc(sizeof(Scanner));
|
||||||
s->line = 1;
|
s->line = 1;
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
extern List *Swig_add_directory(const String_or_char *dirname);
|
extern List *Swig_add_directory(const String_or_char *dirname);
|
||||||
extern void Swig_push_directory(const String_or_char *dirname);
|
extern void Swig_push_directory(const String_or_char *dirname);
|
||||||
extern void Swig_pop_directory();
|
extern void Swig_pop_directory(void);
|
||||||
extern String *Swig_last_file();
|
extern String *Swig_last_file(void);
|
||||||
extern List *Swig_search_path();
|
extern List *Swig_search_path(int syspathvoid);
|
||||||
extern FILE *Swig_open(const String_or_char *name);
|
extern FILE *Swig_open(const String_or_char *name);
|
||||||
extern String *Swig_read_file(FILE *f);
|
extern String *Swig_read_file(FILE *f);
|
||||||
extern String *Swig_include(const String_or_char *name);
|
extern String *Swig_include(const String_or_char *name);
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@
|
||||||
extern void Swig_mark_arg(int n);
|
extern void Swig_mark_arg(int n);
|
||||||
extern int Swig_check_marked(int n);
|
extern int Swig_check_marked(int n);
|
||||||
extern void Swig_check_options(int check_input);
|
extern void Swig_check_options(int check_input);
|
||||||
extern void Swig_arg_error();
|
extern void Swig_arg_error(void);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
typedef struct Scanner Scanner;
|
typedef struct Scanner Scanner;
|
||||||
|
|
||||||
extern Scanner *NewScanner();
|
extern Scanner *NewScanner(void);
|
||||||
extern void DelScanner(Scanner *);
|
extern void DelScanner(Scanner *);
|
||||||
extern void Scanner_clear(Scanner *);
|
extern void Scanner_clear(Scanner *);
|
||||||
extern void Scanner_push(Scanner *, String *);
|
extern void Scanner_push(Scanner *, String *);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ typedef struct Wrapper {
|
||||||
String *code;
|
String *code;
|
||||||
} Wrapper;
|
} Wrapper;
|
||||||
|
|
||||||
extern Wrapper *NewWrapper();
|
extern Wrapper *NewWrapper(void);
|
||||||
extern void DelWrapper(Wrapper *w);
|
extern void DelWrapper(Wrapper *w);
|
||||||
extern void Wrapper_compact_print_mode_set(int flag);
|
extern void Wrapper_compact_print_mode_set(int flag);
|
||||||
extern void Wrapper_pretty_print(String *str, File *f);
|
extern void Wrapper_pretty_print(String *str, File *f);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ static int Max_line_size = 128;
|
||||||
* Create a new wrapper function object.
|
* Create a new wrapper function object.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
Wrapper *NewWrapper() {
|
Wrapper *NewWrapper(void) {
|
||||||
Wrapper *w;
|
Wrapper *w;
|
||||||
w = (Wrapper *) malloc(sizeof(Wrapper));
|
w = (Wrapper *) malloc(sizeof(Wrapper));
|
||||||
w->localh = NewHash();
|
w->localh = NewHash();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue