Commit e546238c authored by Stefan Huehner's avatar Stefan Huehner Committed by Alexandre Julliard

Fix some -Wmissing-declarations by making functions static.

parent e2dbc804
...@@ -64,13 +64,13 @@ static const char* help = ...@@ -64,13 +64,13 @@ static const char* help =
"To force processing of all resources, use the -f flag.\n" "To force processing of all resources, use the -f flag.\n"
"To process a particular file, use the -i/-o options.\n"; "To process a particular file, use the -i/-o options.\n";
void usage(void) static void usage(void)
{ {
printf(help); printf(help);
exit(1); exit(1);
} }
int insert_hexdump (FILE* outfile, FILE* infile) static int insert_hexdump (FILE* outfile, FILE* infile)
{ {
int i, c; int i, c;
...@@ -86,14 +86,14 @@ int insert_hexdump (FILE* outfile, FILE* infile) ...@@ -86,14 +86,14 @@ int insert_hexdump (FILE* outfile, FILE* infile)
return 1; return 1;
} }
int hex2bin(char c) static int hex2bin(char c)
{ {
if (!isxdigit(c)) return -1024; if (!isxdigit(c)) return -1024;
if (isdigit(c)) return c - '0'; if (isdigit(c)) return c - '0';
return toupper(c) - 'A' + 10; return toupper(c) - 'A' + 10;
} }
int extract_hexdump (FILE* outfile, FILE* infile) static int extract_hexdump (FILE* outfile, FILE* infile)
{ {
int byte, c; int byte, c;
...@@ -110,7 +110,7 @@ int extract_hexdump (FILE* outfile, FILE* infile) ...@@ -110,7 +110,7 @@ int extract_hexdump (FILE* outfile, FILE* infile)
return 1; return 1;
} }
const char* parse_marker(const char *line, time_t* last_updated) static const char* parse_marker(const char *line, time_t* last_updated)
{ {
static char res_file_name[PATH_MAX], *rpos, *wpos; static char res_file_name[PATH_MAX], *rpos, *wpos;
struct stat st; struct stat st;
...@@ -125,7 +125,7 @@ const char* parse_marker(const char *line, time_t* last_updated) ...@@ -125,7 +125,7 @@ const char* parse_marker(const char *line, time_t* last_updated)
return res_file_name; return res_file_name;
} }
int process_resources(const char* input_file_name, const char* specific_file_name, static int process_resources(const char* input_file_name, const char* specific_file_name,
int inserting, int force_processing, int verbose) int inserting, int force_processing, int verbose)
{ {
char buffer[2048], tmp_file_name[PATH_MAX]; char buffer[2048], tmp_file_name[PATH_MAX];
......
...@@ -54,13 +54,13 @@ typedef struct { ...@@ -54,13 +54,13 @@ typedef struct {
#include "poppack.h" #include "poppack.h"
void usage(char **argv) static void usage(char **argv)
{ {
fprintf(stderr, "%s foo.ttf ppem enc dpi def_char avg_width\n", argv[0]); fprintf(stderr, "%s foo.ttf ppem enc dpi def_char avg_width\n", argv[0]);
return; return;
} }
int lookup_charset(int enc) static int lookup_charset(int enc)
{ {
/* FIXME: make winelib app and use TranslateCharsetInfo */ /* FIXME: make winelib app and use TranslateCharsetInfo */
switch(enc) { switch(enc) {
......
...@@ -80,7 +80,7 @@ int is_void(type_t *t, var_t *v) ...@@ -80,7 +80,7 @@ int is_void(type_t *t, var_t *v)
return 0; return 0;
} }
void write_guid(const char *guid_prefix, const char *name, UUID *uuid) static void write_guid(const char *guid_prefix, const char *name, UUID *uuid)
{ {
if (!uuid) return; if (!uuid) return;
fprintf(header, "DEFINE_GUID(%s_%s, 0x%08lx, 0x%04x, 0x%04x, 0x%02x,0x%02x, 0x%02x," fprintf(header, "DEFINE_GUID(%s_%s, 0x%08lx, 0x%04x, 0x%04x, 0x%02x,0x%02x, 0x%02x,"
...@@ -713,25 +713,25 @@ void write_forward(type_t *iface) ...@@ -713,25 +713,25 @@ void write_forward(type_t *iface)
} }
} }
void write_iface_guid(type_t *iface) static void write_iface_guid(type_t *iface)
{ {
UUID *uuid = get_attrp(iface->attrs, ATTR_UUID); UUID *uuid = get_attrp(iface->attrs, ATTR_UUID);
write_guid("IID", iface->name, uuid); write_guid("IID", iface->name, uuid);
} }
void write_dispiface_guid(type_t *iface) static void write_dispiface_guid(type_t *iface)
{ {
UUID *uuid = get_attrp(iface->attrs, ATTR_UUID); UUID *uuid = get_attrp(iface->attrs, ATTR_UUID);
write_guid("DIID", iface->name, uuid); write_guid("DIID", iface->name, uuid);
} }
void write_coclass_guid(class_t *cocl) static void write_coclass_guid(class_t *cocl)
{ {
UUID *uuid = get_attrp(cocl->attrs, ATTR_UUID); UUID *uuid = get_attrp(cocl->attrs, ATTR_UUID);
write_guid("CLSID", cocl->name, uuid); write_guid("CLSID", cocl->name, uuid);
} }
void write_com_interface(type_t *iface) static void write_com_interface(type_t *iface)
{ {
if (!iface->funcs && !iface->ref) { if (!iface->funcs && !iface->ref) {
yywarning("%s has no methods", iface->name); yywarning("%s has no methods", iface->name);
...@@ -793,7 +793,7 @@ void write_com_interface(type_t *iface) ...@@ -793,7 +793,7 @@ void write_com_interface(type_t *iface)
fprintf(header,"\n#endif /* __%s_INTERFACE_DEFINED__ */\n\n", iface->name); fprintf(header,"\n#endif /* __%s_INTERFACE_DEFINED__ */\n\n", iface->name);
} }
void write_rpc_interface(type_t *iface) static void write_rpc_interface(type_t *iface)
{ {
unsigned long ver = get_attrv(iface->attrs, ATTR_VERSION); unsigned long ver = get_attrv(iface->attrs, ATTR_VERSION);
char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE); char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
......
...@@ -141,7 +141,7 @@ static void write_formatstring( int proc ) ...@@ -141,7 +141,7 @@ static void write_formatstring( int proc )
print_proxy( "\n"); print_proxy( "\n");
} }
static void init_proxy() static void init_proxy(void)
{ {
if (proxy) return; if (proxy) return;
if(!(proxy = fopen(proxy_name, "w"))) if(!(proxy = fopen(proxy_name, "w")))
......
...@@ -124,7 +124,7 @@ static void write_typeformatstring(void) ...@@ -124,7 +124,7 @@ static void write_typeformatstring(void)
} }
unsigned int get_required_stack_size(type_t *type) static unsigned int get_required_stack_size(type_t *type)
{ {
switch(type->type) switch(type->type)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment