Fix some -Wmissing-declarations by making functions static.

This commit is contained in:
Stefan Huehner 2005-06-15 18:10:39 +00:00 committed by Alexandre Julliard
parent e2dbc8044a
commit e546238c7e
5 changed files with 16 additions and 16 deletions

View File

@ -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];

View File

@ -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) {

View File

@ -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);

View File

@ -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")))

View File

@ -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)
{