/* windres.h -- header file for windres program.
- Copyright 1997, 1998 Free Software Foundation, Inc.
+ Copyright 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
This file is part of GNU Binutils.
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-#include <ansidecl.h>
+#include "ansidecl.h"
/* This is the header file for the windres program. It defines
structures and declares functions used within the program. */
struct res_coff_info coff_info;
};
+#define SUBLANG_SHIFT 10
+
/* Memory flags in the memflags field of a struct res_resource. */
#define MEMFLAG_MOVEABLE 0x10
/* Font weight. */
unsigned short weight;
/* Whether the font is italic. */
- unsigned short italic;
+ unsigned char italic;
+ /* Character set. */
+ unsigned char charset;
};
/* Window style flags, from the winsup Defines.h header file. These
short index;
/* Length of font information. */
unsigned long length;
- /* Font information. */
+ /* Font information. */
const unsigned char *data;
};
/* Function declarations. */
extern struct res_directory *read_rc_file
- PARAMS ((const char *, const char *, const char *, int));
-extern struct res_directory *read_res_file PARAMS ((const char *));
-extern struct res_directory *read_coff_rsrc
- PARAMS ((const char *, const char *));
-extern void write_rc_file
- PARAMS ((const char *, const struct res_directory *));
-extern void write_res_file
- PARAMS ((const char *, const struct res_directory *));
+ (const char *, const char *, const char *, int, int);
+extern struct res_directory *read_res_file (const char *);
+extern struct res_directory *read_coff_rsrc (const char *, const char *);
+extern void write_rc_file (const char *, const struct res_directory *);
+extern void write_res_file (const char *, const struct res_directory *);
extern void write_coff_file
- PARAMS ((const char *, const char *, const struct res_directory *));
+ (const char *, const char *, const struct res_directory *);
extern struct res_resource *bin_to_res
- PARAMS ((struct res_id, const unsigned char *, unsigned long, int));
-extern struct bindata *res_to_bin PARAMS ((const struct res_resource *, int));
+ (struct res_id, const unsigned char *, unsigned long, int);
+extern struct bindata *res_to_bin (const struct res_resource *, int);
extern FILE *open_file_search
- PARAMS ((const char *, const char *, const char *, char **));
+ (const char *, const char *, const char *, char **);
-extern PTR res_alloc PARAMS ((size_t));
-extern PTR reswr_alloc PARAMS ((size_t));
+extern void *res_alloc (size_t);
+extern void *reswr_alloc (size_t);
/* Resource ID handling. */
-extern int res_id_cmp PARAMS ((struct res_id, struct res_id));
-extern void res_id_print PARAMS ((FILE *, struct res_id, int));
-extern void res_ids_print PARAMS ((FILE *, int, const struct res_id *));
-extern void res_string_to_id PARAMS ((struct res_id *, const char *));
+extern int res_id_cmp (struct res_id, struct res_id);
+extern void res_id_print (FILE *, struct res_id, int);
+extern void res_ids_print (FILE *, int, const struct res_id *);
+extern void res_string_to_id (struct res_id *, const char *);
/* Manipulation of the resource tree. */
extern struct res_resource *define_resource
- PARAMS ((struct res_directory **, int, const struct res_id *, int));
+ (struct res_directory **, int, const struct res_id *, int);
extern struct res_resource *define_standard_resource
- PARAMS ((struct res_directory **, int, struct res_id, int, int));
+ (struct res_directory **, int, struct res_id, int, int);
-extern int extended_dialog PARAMS ((const struct dialog *));
-extern int extended_menu PARAMS ((const struct menu *));
+extern int extended_dialog (const struct dialog *);
+extern int extended_menu (const struct menu *);
/* Communication between the rc file support and the parser and lexer. */
extern FILE *yyin;
extern char *rc_filename;
extern int rc_lineno;
-extern int yyparse PARAMS ((void));
-extern int yylex PARAMS ((void));
-extern void yyerror PARAMS ((const char *));
-extern void rcparse_warning PARAMS ((const char *));
-extern void rcparse_set_language PARAMS ((int));
-extern void rcparse_discard_strings PARAMS ((void));
-extern void rcparse_rcdata PARAMS ((void));
-extern void rcparse_normal PARAMS ((void));
+
+extern int yyparse (void);
+extern int yylex (void);
+extern void yyerror (const char *);
+extern void rcparse_warning (const char *);
+extern void rcparse_set_language (int);
+extern void rcparse_discard_strings (void);
+extern void rcparse_rcdata (void);
+extern void rcparse_normal (void);
extern void define_accelerator
- PARAMS ((struct res_id, const struct res_res_info *, struct accelerator *));
+ (struct res_id, const struct res_res_info *, struct accelerator *);
extern void define_bitmap
- PARAMS ((struct res_id, const struct res_res_info *, const char *));
+ (struct res_id, const struct res_res_info *, const char *);
extern void define_cursor
- PARAMS ((struct res_id, const struct res_res_info *, const char *));
+ (struct res_id, const struct res_res_info *, const char *);
extern void define_dialog
- PARAMS ((struct res_id, const struct res_res_info *, const struct dialog *));
+ (struct res_id, const struct res_res_info *, const struct dialog *);
extern struct dialog_control *define_control
- PARAMS ((const char *, unsigned long, unsigned long, unsigned long,
- unsigned long, unsigned long, unsigned long, unsigned long,
- unsigned long));
+ (const struct res_id, unsigned long, unsigned long, unsigned long,
+ unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
+extern struct dialog_control *define_icon_control
+ (struct res_id, unsigned long, unsigned long, unsigned long, unsigned long,
+ unsigned long, unsigned long, struct rcdata_item *, struct dialog_ex *);
extern void define_font
- PARAMS ((struct res_id, const struct res_res_info *, const char *));
+ (struct res_id, const struct res_res_info *, const char *);
extern void define_icon
- PARAMS ((struct res_id, const struct res_res_info *, const char *));
+ (struct res_id, const struct res_res_info *, const char *);
extern void define_menu
- PARAMS ((struct res_id, const struct res_res_info *, struct menuitem *));
+ (struct res_id, const struct res_res_info *, struct menuitem *);
extern struct menuitem *define_menuitem
- PARAMS ((const char *, int, unsigned long, unsigned long, unsigned long,
- struct menuitem *));
+ (const char *, int, unsigned long, unsigned long, unsigned long,
+ struct menuitem *);
extern void define_messagetable
- PARAMS ((struct res_id, const struct res_res_info *, const char *));
+ (struct res_id, const struct res_res_info *, const char *);
extern void define_rcdata
- PARAMS ((struct res_id, const struct res_res_info *, struct rcdata_item *));
+ (struct res_id, const struct res_res_info *, struct rcdata_item *);
extern struct rcdata_item *define_rcdata_string
- PARAMS ((const char *, unsigned long));
-extern struct rcdata_item *define_rcdata_number PARAMS ((unsigned long, int));
+ (const char *, unsigned long);
+extern struct rcdata_item *define_rcdata_number (unsigned long, int);
extern void define_stringtable
- PARAMS ((const struct res_res_info *, unsigned long, const char *));
+ (const struct res_res_info *, unsigned long, const char *);
extern void define_user_data
- PARAMS ((struct res_id, struct res_id, const struct res_res_info *,
- struct rcdata_item *));
+ (struct res_id, struct res_id, const struct res_res_info *,
+ struct rcdata_item *);
extern void define_user_file
- PARAMS ((struct res_id, struct res_id, const struct res_res_info *,
- const char *));
+ (struct res_id, struct res_id, const struct res_res_info *, const char *);
extern void define_versioninfo
- PARAMS ((struct res_id, int, struct fixed_versioninfo *,
- struct ver_info *));
+ (struct res_id, int, struct fixed_versioninfo *, struct ver_info *);
extern struct ver_info *append_ver_stringfileinfo
- PARAMS ((struct ver_info *, const char *, struct ver_stringinfo *));
+ (struct ver_info *, const char *, struct ver_stringinfo *);
extern struct ver_info *append_ver_varfileinfo
- PARAMS ((struct ver_info *, const char *, struct ver_varinfo *));
+ (struct ver_info *, const char *, struct ver_varinfo *);
extern struct ver_stringinfo *append_verval
- PARAMS ((struct ver_stringinfo *, const char *, const char *));
+ (struct ver_stringinfo *, const char *, const char *);
extern struct ver_varinfo *append_vertrans
- PARAMS ((struct ver_varinfo *, unsigned long, unsigned long));
+ (struct ver_varinfo *, unsigned long, unsigned long);