Commit Graph

19 Commits

Author SHA1 Message Date
Andreas Jaeger 2da42df615 * addr2line.c: Convert to ISO C90 prototypes, change PTR, remove
unneeded (void *) casts.
	* ar.c: Likewise.
	* arlex.l: Likewise.
	* arparse.y: Likewise.
	* arsup.c: Likewise.
	* binemul.c: Likewise.
	* binemul.h: Likewise.
	* bucomm.c: Likewise.
	* bucomm.h: Likewise.
	* budbg.h: Likewise.
	* budemang.c: Likewise.
	* budemang.h: Likewise.
	* coffdump.c: Likewise.
	* coffgrok.c: Likewise.
	* cxxfilt.c: Likewise.
	* debug.c: Likewise.
	* debug.h: Likewise.
	* deflex.l: Likewise.
	* dlltool.c: Likewise.
	* dlltool.h: Likewise.
	* dllwrap.c: Likewise.
	* emul_aix.c: Likewise.
	* filemode.c: Likewise.
	* ieee.c: Likewise.
	* nlmconv.c: Likewise.
	* nlmconv.h: Likewise.
	* nlmheader.y: Likewise.
	* nm.c: Likewise.
	* prdbg.c: Likewise.
	* rclex.l: Likewise.
	* rcparse.y: Likewise.
	* rdcoff.c: Likewise.
	* rddbg.c: Likewise.
	* rename.c: Likewise.
	* resbin.c: Likewise.
	* rescoff.c: Likewise.
	* resrc.c: Likewise.
	* size.c: Likewise.
	* srconv.c: Likewise.
	* stabs.c: Likewise.
	* strings.c: Likewise.
	* sysdump.c: Likewise.
	* sysinfo.y: Likewise.
	* syslex.l: Likewise.
	* unwind-ia64.c: Likewise.
	* unwind-ia64.h: Likewise.
	* version.c: Likewise.
	* windres.c: Likewise.
	* windres.h: Likewise.
	* winduni.c: Likewise.
	* wrstabs.c: Likewise.
2003-09-14 12:20:17 +00:00
Danny Smith b9ae04920a * rcparse.y (res_text_field): New res_id variable.
(res_null_text): New static const struct res_id object,
	with empty unicode name field.
	(control): Pop parsing of optresidc up one level. Set
	res_text_field to $2 except for controls which do not accept
	a text field.  Set res_text_field to res_null_text for the
	special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
	(control_params): Adjust to use res_text_field rather
	than optresidc.
	(COMBOBOX): Add comment about discrepency between documented
	vs. observed default style.
	* resrc.c (define_control): Make first param const.
	* windres.h (define_control): Adjust prototype.

testsuite:

	* binutils-all/windres/checkbox.rc: New file.
	* binutils-all/windres/checkbox.rsd: New file.
	* binutils-all/windres/combobox.rc: New file.
	* binutils-all/windres/combobox.rsd: New file.
	* binutils-all/windres/edittext.rc: New file.
	* binutils-all/windres/edittext.rsd: New file.
	* binutils-all/windres/listbox.rc: New file.
	* binutils-all/windres/listbox.rsd: New file.
	* binutils-all/windres/scrollbar.rc: New file.
	* binutils-all/windres/scrollbar.rsd: New file.
2003-06-28 02:37:43 +00:00
Nick Clifton 7adbf450a7 Allow resource IDs to be strings or numbers.
Add a test for this.
2003-03-31 10:15:58 +00:00
Nick Clifton 85c09e8a4a Don't warn about ALT use with non-VIRTKEY. 2002-08-14 10:44:54 +00:00
Alan Modra 405c98a4e3 * rcparse.y: Remove newcmd rule. Move rcparse_discard_strings
call to rules that need no lookahead.  Check for no lookahead.

	* rclex.l (get_string): Correct "strings" list handling.
	* resrc.c (read_rc_file): Discard strings.
2002-05-05 23:19:32 +00:00
Nick Clifton ea91f8bb52 Define MEMFLAGS_DISCARDABLE by default for dialogs.
Add a test for this.
2002-04-16 08:13:03 +00:00
Nick Clifton 45b9982791 Allow two to five parameter in FONT statement of DIALOGEX resources. 2002-04-15 14:12:41 +00:00
Nick Clifton acfbab8a5f Regernated recently created expected output files using MSVC.
Set MEMFLAG_PURE by default - bug exposed by regenerated files.
2002-04-10 08:14:32 +00:00
Nick Clifton b62a12ca88 Add WS_CAPTION dialog style if CAPTION is specified.
Add testcase.
2002-04-09 17:23:19 +00:00
Nick Clifton 91eafb409b Don't add default dialog style when explicit style specified.
Print style even if it is 0.
Add testcase.
2002-04-09 15:59:13 +00:00
Nick Clifton c80b2f7704 Fix typo in BEDIT warning. 2002-04-09 15:23:38 +00:00
Nick Clifton df3baf66cb Apply patch from Bernd Herd to fix quoted class definitions inside dialogs. 2002-04-09 15:21:01 +00:00
H.J. Lu 3882b01078 Locale changes from Bruno Haible <haible@clisp.cons.org>. 2001-09-19 05:33:36 +00:00
DJ Delorie 95fd336c5c * rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
correct 10).
* resrc.c (write_rc_resource): Likewise.
* windres.h (SUBLANG_SHIFT): Define - as 10.
2001-07-17 01:19:19 +00:00
Nick Clifton 8c2bc6877d Fix typos in ChangeLogs and update copyright notices 2001-03-13 06:43:59 +00:00
DJ Delorie 9eb01b42f6 * Make comma after string after icon/control optional. 2000-10-12 17:47:35 +00:00
DJ Delorie 2104a50e3e * rcparse.y (control): ICON controls take an id as the first
parameter, not an optional string.  Also, call new convenience
function that takes res_id's.
* resrc.c (define_control): missing text means zero-length string,
not zero ID.
(define_icon_control): New.
* windres.h: declare define_icon_control.
2000-06-13 21:21:43 +00:00
DJ Delorie 1a62478879 * rclex.l: add code to suppress certain output from cpp, replace
all returns with MAYBE_RETURN
	(MAYBE_RETURN): new, implement the suppression by returning
	IGNORED_TOKEN as needed.
	(cpp_line): remember which file we're in, mark data from included
	*.h files for suppression.
	* rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1999-05-12 22:03:10 +00:00
Richard Henderson 252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00