From e546238c7e7ab81e8e52f3908e349ca48f93dde9 Mon Sep 17 00:00:00 2001 From: Stefan Huehner Date: Wed, 15 Jun 2005 18:10:39 +0000 Subject: [PATCH] Fix some -Wmissing-declarations by making functions static. --- tools/bin2res.c | 12 ++++++------ tools/sfnt2fnt.c | 4 ++-- tools/widl/header.c | 12 ++++++------ tools/widl/proxy.c | 2 +- tools/widl/server.c | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/bin2res.c b/tools/bin2res.c index 5e8fa0651ad..7a45f65505d 100644 --- a/tools/bin2res.c +++ b/tools/bin2res.c @@ -64,13 +64,13 @@ static const char* help = "To force processing of all resources, use the -f flag.\n" "To process a particular file, use the -i/-o options.\n"; -void usage(void) +static void usage(void) { printf(help); exit(1); } -int insert_hexdump (FILE* outfile, FILE* infile) +static int insert_hexdump (FILE* outfile, FILE* infile) { int i, c; @@ -86,14 +86,14 @@ int insert_hexdump (FILE* outfile, FILE* infile) return 1; } -int hex2bin(char c) +static int hex2bin(char c) { if (!isxdigit(c)) return -1024; if (isdigit(c)) return c - '0'; return toupper(c) - 'A' + 10; } -int extract_hexdump (FILE* outfile, FILE* infile) +static int extract_hexdump (FILE* outfile, FILE* infile) { int byte, c; @@ -110,7 +110,7 @@ int extract_hexdump (FILE* outfile, FILE* infile) 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; struct stat st; @@ -125,7 +125,7 @@ const char* parse_marker(const char *line, time_t* last_updated) 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) { char buffer[2048], tmp_file_name[PATH_MAX]; diff --git a/tools/sfnt2fnt.c b/tools/sfnt2fnt.c index 13c3a7f89c6..eee3de4469b 100644 --- a/tools/sfnt2fnt.c +++ b/tools/sfnt2fnt.c @@ -54,13 +54,13 @@ typedef struct { #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]); return; } -int lookup_charset(int enc) +static int lookup_charset(int enc) { /* FIXME: make winelib app and use TranslateCharsetInfo */ switch(enc) { diff --git a/tools/widl/header.c b/tools/widl/header.c index 212e42a4426..21475658601 100644 --- a/tools/widl/header.c +++ b/tools/widl/header.c @@ -80,7 +80,7 @@ int is_void(type_t *t, var_t *v) 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; 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) } } -void write_iface_guid(type_t *iface) +static void write_iface_guid(type_t *iface) { UUID *uuid = get_attrp(iface->attrs, ATTR_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); 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); 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) { yywarning("%s has no methods", iface->name); @@ -793,7 +793,7 @@ void write_com_interface(type_t *iface) 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); char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE); diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index a1c8c2431b4..69913a837ee 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -141,7 +141,7 @@ static void write_formatstring( int proc ) print_proxy( "\n"); } -static void init_proxy() +static void init_proxy(void) { if (proxy) return; if(!(proxy = fopen(proxy_name, "w"))) diff --git a/tools/widl/server.c b/tools/widl/server.c index 5854fd94af1..1c48e25c743 100644 --- a/tools/widl/server.c +++ b/tools/widl/server.c @@ -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) { -- 2.11.4.GIT