Make several helper functions "static".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2a459a04bd
commit
606a9ba1e3
1 changed files with 7 additions and 7 deletions
|
|
@ -21,9 +21,9 @@ static struct {
|
||||||
String **entries;
|
String **entries;
|
||||||
} defined_foreign_types;
|
} defined_foreign_types;
|
||||||
|
|
||||||
const char *identifier_converter="identifier-convert-null";
|
static const char *identifier_converter="identifier-convert-null";
|
||||||
|
|
||||||
int any_varargs(ParmList *pl) {
|
static int any_varargs(ParmList *pl) {
|
||||||
Parm *p;
|
Parm *p;
|
||||||
|
|
||||||
for(p=pl; p; p=nextSibling(p)) {
|
for(p=pl; p; p=nextSibling(p)) {
|
||||||
|
|
@ -37,7 +37,7 @@ int any_varargs(ParmList *pl) {
|
||||||
|
|
||||||
/* utilities */
|
/* utilities */
|
||||||
/* returns new string w/ parens stripped */
|
/* returns new string w/ parens stripped */
|
||||||
String *strip_parens(String *string) {
|
static String *strip_parens(String *string) {
|
||||||
char *s=Char(string), *p;
|
char *s=Char(string), *p;
|
||||||
int len=Len(string);
|
int len=Len(string);
|
||||||
String *res;
|
String *res;
|
||||||
|
|
@ -62,7 +62,7 @@ String *strip_parens(String *string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
String *convert_literal(String *num_param, String *type) {
|
static String *convert_literal(String *num_param, String *type) {
|
||||||
String *num=strip_parens(num_param), *res;
|
String *num=strip_parens(num_param), *res;
|
||||||
char *s=Char(num);
|
char *s=Char(num);
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ String *convert_literal(String *num_param, String *type) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_defined_foreign_type(String *type) {
|
static void add_defined_foreign_type(String *type) {
|
||||||
if (!defined_foreign_types.count) {
|
if (!defined_foreign_types.count) {
|
||||||
/* Make fresh */
|
/* Make fresh */
|
||||||
defined_foreign_types.count=1;
|
defined_foreign_types.count=1;
|
||||||
|
|
@ -125,7 +125,7 @@ void add_defined_foreign_type(String *type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
String *get_ffi_type(SwigType *ty, const String_or_char *name) {
|
static String *get_ffi_type(SwigType *ty, const String_or_char *name) {
|
||||||
Hash *typemap = Swig_typemap_search("ffitype", ty, name, 0);
|
Hash *typemap = Swig_typemap_search("ffitype", ty, name, 0);
|
||||||
if (typemap) {
|
if (typemap) {
|
||||||
String *typespec = Getattr(typemap, "code");
|
String *typespec = Getattr(typemap, "code");
|
||||||
|
|
@ -169,7 +169,7 @@ String *get_ffi_type(SwigType *ty, const String_or_char *name) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
String *get_lisp_type(SwigType *ty, const String_or_char *name)
|
static String *get_lisp_type(SwigType *ty, const String_or_char *name)
|
||||||
{
|
{
|
||||||
Hash *typemap = Swig_typemap_search("lisptype", ty, name, 0);
|
Hash *typemap = Swig_typemap_search("lisptype", ty, name, 0);
|
||||||
if (typemap) {
|
if (typemap) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue