* rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
[deliverable/binutils-gdb.git] / binutils / windres.h
CommitLineData
252b5132 1/* windres.h -- header file for windres program.
bfb6c1ab 2 Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2011
b09a7772 3 Free Software Foundation, Inc.
252b5132 4 Written by Ian Lance Taylor, Cygnus Support.
4a594fce 5 Rewritten by Kai Tietz, Onevision.
252b5132
RH
6
7 This file is part of GNU Binutils.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
32866df7 11 the Free Software Foundation; either version 3 of the License, or
252b5132
RH
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
b43b5d5f
NC
21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 02110-1301, USA. */
252b5132 23
e9792343 24#include "ansidecl.h"
252b5132
RH
25
26/* This is the header file for the windres program. It defines
27 structures and declares functions used within the program. */
28
29#include "winduni.h"
4a594fce 30#include "windint.h"
252b5132 31
751d21b5
DD
32extern int verbose;
33
252b5132
RH
34/* Function declarations. */
35
4a594fce
NC
36extern rc_res_directory *read_rc_file (const char *, const char *, const char *, int, int);
37extern rc_res_directory *read_res_file (const char *);
38extern rc_res_directory *read_coff_rsrc (const char *, const char *);
39extern void write_rc_file (const char *, const rc_res_directory *);
40extern void write_res_file (const char *, const rc_res_directory *);
41extern void write_coff_file (const char *, const char *, const rc_res_directory *);
252b5132 42
4a594fce
NC
43extern rc_res_resource *bin_to_res (windres_bfd *, rc_res_id, const bfd_byte *,
44 rc_uint_type);
45extern rc_uint_type res_to_bin (windres_bfd *, rc_uint_type, const rc_res_resource *);
252b5132 46
4a594fce 47extern FILE *open_file_search (const char *, const char *, const char *, char **);
252b5132 48
4a594fce
NC
49extern void *res_alloc (rc_uint_type);
50extern void *reswr_alloc (rc_uint_type);
252b5132
RH
51
52/* Resource ID handling. */
53
4a594fce
NC
54extern int res_id_cmp (rc_res_id, rc_res_id);
55extern void res_id_print (FILE *, rc_res_id, int);
56extern void res_ids_print (FILE *, int, const rc_res_id *);
57extern void res_string_to_id (rc_res_id *, const char *);
58extern void res_unistring_to_id (rc_res_id *, const unichar *);
252b5132
RH
59
60/* Manipulation of the resource tree. */
61
4a594fce
NC
62extern rc_res_resource *define_resource (rc_res_directory **, int, const rc_res_id *,
63 int);
64extern rc_res_resource *define_standard_resource (rc_res_directory **, int, rc_res_id,
65 rc_uint_type, int);
252b5132 66
4a594fce
NC
67extern int extended_dialog (const rc_dialog *);
68extern int extended_menu (const rc_menu *);
252b5132
RH
69
70/* Communication between the rc file support and the parser and lexer. */
71
72extern int yydebug;
252b5132
RH
73extern char *rc_filename;
74extern int rc_lineno;
7adbf450 75
2da42df6
AJ
76extern int yyparse (void);
77extern int yylex (void);
78extern void yyerror (const char *);
79extern void rcparse_warning (const char *);
80extern void rcparse_set_language (int);
81extern void rcparse_discard_strings (void);
82extern void rcparse_rcdata (void);
83extern void rcparse_normal (void);
252b5132 84
4a594fce
NC
85extern void define_accelerator (rc_res_id, const rc_res_res_info *, rc_accelerator *);
86extern void define_bitmap (rc_res_id, const rc_res_res_info *, const char *);
87extern void define_cursor (rc_res_id, const rc_res_res_info *, const char *);
88extern void define_dialog (rc_res_id, const rc_res_res_info *, const rc_dialog *);
89extern rc_dialog_control *define_control (const rc_res_id, rc_uint_type, rc_uint_type,
90 rc_uint_type, rc_uint_type, rc_uint_type,
91 const rc_res_id, rc_uint_type, rc_uint_type);
92extern rc_dialog_control *define_icon_control (rc_res_id, rc_uint_type, rc_uint_type,
93 rc_uint_type, rc_uint_type, rc_uint_type,
94 rc_uint_type, rc_rcdata_item *,
95 rc_dialog_ex *);
96extern void define_font (rc_res_id, const rc_res_res_info *, const char *);
97extern void define_icon (rc_res_id, const rc_res_res_info *, const char *);
98extern void define_menu (rc_res_id, const rc_res_res_info *, rc_menuitem *);
99extern rc_menuitem *define_menuitem (const unichar *, rc_uint_type, rc_uint_type,
100 rc_uint_type, rc_uint_type, rc_menuitem *);
101extern void define_messagetable (rc_res_id, const rc_res_res_info *, const char *);
102extern void define_rcdata (rc_res_id, const rc_res_res_info *, rc_rcdata_item *);
103extern void define_rcdata_file (rc_res_id, const rc_res_res_info *, const char *);
104extern rc_rcdata_item *define_rcdata_string (const char *, rc_uint_type);
105extern rc_rcdata_item *define_rcdata_unistring (const unichar *, rc_uint_type);
106extern rc_rcdata_item *define_rcdata_number (rc_uint_type, int);
81472056 107extern void define_stringtable (const rc_res_res_info *, rc_uint_type, const unichar *, int);
4a594fce
NC
108extern void define_user_data (rc_res_id, rc_res_id, const rc_res_res_info *, rc_rcdata_item *);
109extern void define_toolbar (rc_res_id, rc_res_res_info *, rc_uint_type ,rc_uint_type ,rc_toolbar_item *);
110extern void define_user_file (rc_res_id, rc_res_id, const rc_res_res_info *, const char *);
111extern void define_versioninfo (rc_res_id, rc_uint_type, rc_fixed_versioninfo *, rc_ver_info *);
bfb6c1ab
NC
112extern rc_ver_info *append_ver_stringfileinfo (rc_ver_info *, rc_ver_stringtable *);
113extern rc_ver_stringtable *append_ver_stringtable (rc_ver_stringtable *, const char *, rc_ver_stringinfo *);
4a594fce
NC
114extern rc_ver_info *append_ver_varfileinfo (rc_ver_info *, const unichar *, rc_ver_varinfo *);
115extern rc_ver_stringinfo *append_verval (rc_ver_stringinfo *, const unichar *, const unichar *);
116extern rc_ver_varinfo *append_vertrans (rc_ver_varinfo *, rc_uint_type, rc_uint_type);
117
118extern bfd *windres_open_as_binary (const char *, int);
c6998d15 119extern void windres_add_include_dir (const char *);
4a594fce
NC
120
121extern int wr_printcomment (FILE *, const char *, ...);
122extern int wr_print (FILE *, const char *, ...);
123#define wr_print_flush(FP) wr_print ((FP),NULL)
This page took 0.505834 seconds and 4 git commands to generate.