summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gen.c b/gen.c
index e31d8ce..bb7fad1 100644
--- a/gen.c
+++ b/gen.c
@@ -50,7 +50,7 @@ typedef struct gl_type{
int size;
char* print;
char* cast;
-}gl_type;
+} gl_type;
@@ -134,7 +134,7 @@ gl_type type_table[]=
-char * type_remove_const(char * type)
+static char * type_remove_const(char * type)
{
char* r = strstr(type,"const");
if (r)
@@ -143,7 +143,7 @@ char * type_remove_const(char * type)
return type;
}
-int type_match(char* type)
+static int type_match(char* type)
{
char* t = type_remove_const(type);
@@ -160,39 +160,39 @@ int type_match(char* type)
return -1;
}
-char* type_print(char* type)
+static char* type_print(char* type)
{
int i=0;
while(type_table[i].name!=NULL)
{
if (strcmp(type_remove_const(type),type_table[i].name)==0)
- return type_table[i].print;
+ return type_table[i].print;
i++;
}
return NULL;
}
-int type_size(char* type)
+static int type_size(char* type)
{
int i=0;
while(type_table[i].name!=NULL)
{
if (strcmp(type_remove_const(type),type_table[i].name)==0)
- return type_table[i].size;
+ return type_table[i].size;
i++;
}
return 0;
}
-char* type_cast(char* type)
+static char* type_cast(char* type)
{
int i=0;
while(type_table[i].name!=NULL)
{
if (strcmp(type_remove_const(type),type_table[i].name)==0)
- return type_table[i].cast;
+ return type_table[i].cast;
i++;
}
return NULL;
@@ -257,7 +257,7 @@ int main()
fprintf(file_functable, "static void* functable[4096];\n");
fprintf(file_functable, "static void functable_init()\n{\n");
- fprintf(file_getprocaddr, "static struct { \n\tchar* name; \n\tint num;\n} \nget_proc_list[] = {\n");
+ fprintf(file_getprocaddr, "static struct {\n\tchar* name;\n\tint num;\n}\nget_proc_list[] = {\n");
cur = cur->xmlChildrenNode;
cur = cur->next;