Commit Graph

64 Commits

Author SHA1 Message Date
Alexandre Julliard b53773cff2 tools: Move the output buffer functions to the common header.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-10 22:00:17 +01:00
Alexandre Julliard 7f0943dde6 wrc: Convert resource output to the standard output buffer functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-10 22:00:17 +01:00
Alexandre Julliard 952d849e48 wrc: Move write_resfile() into genres.c and remove writeres.c.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-10 22:00:17 +01:00
Alexandre Julliard 1226595b16 wrc: Remove the no longer used resource C name.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-10 22:00:17 +01:00
Alexandre Julliard 923461f3d8 wrc: Windows file formats are always little-endian.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-11 17:36:17 +01:00
Alexandre Julliard 55701c6672 tools: Add a helper function to create temp files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 21:38:11 +02:00
Alexandre Julliard 1e173eaa8c wrc: Use asserts instead of explicit internal error.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-24 21:55:18 +02:00
Alexandre Julliard fe888bbbb6 wrc: Avoid converting Unicode strings back to Ansi.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-07 10:34:59 +01:00
Alexandre Julliard 499d772cb6 wrc: Simplify the put_string() helper function.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-07 08:26:11 +01:00
Alexandre Julliard 358b4ad99a wrc: Add a helper function to terminate the resource data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-07 08:16:19 +01:00
Alexandre Julliard 4b2d797d6e wrc: Don't map version block names to the target language.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-01 17:48:26 +01:00
Dmitry Timoshkov d8607c57b0 wrc: Fix generation of custom dialog control data.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-01 19:12:22 -07:00
Michael Stefaniuc e697a639e0 wrc: Remove a wrong comment.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:27:54 +01:00
Alexandre Julliard 865f23b503 wrc: Avoid locale- or Unicode-dependent case conversions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:08 +09:00
Alexandre Julliard e8076eeced wrc: Only allow control key characters ^A to ^Z.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:33:52 +09:00
Alexandre Julliard 22cb2beb1c wrc: Don't convert class and menu names to uppercase in resource data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:33:42 +09:00
André Hentschel 9b810cd6e8 wrc: Remove duplicate code (PVS-Studio). 2014-10-28 14:05:52 +09:00
Alexandre Julliard 03167b4369 wrc: Allow specifying the default message font in dialogs by setting DS_SETFONT. 2014-04-15 21:03:55 +02:00
Alexandre Julliard 98de631eb1 wrc: Define WINE_UNICODE_API directly in the source. 2013-10-28 14:20:58 +01:00
Alexandre Julliard 811da88cfc wrc: Fix parsing of virtkey accelerators. 2012-01-30 12:46:20 +01:00
Francois Gouget 1a512846e2 wrc: Add a trailing '\n' to the error() calls. 2012-01-27 18:05:54 +01:00
Alexandre Julliard ceadc43c78 wrc: Add support for translating accelerators through po files. 2012-01-24 18:10:32 +01:00
Alexandre Julliard df45a347ac wrc: Store location information in strings. 2010-12-30 13:08:30 +01:00
Alexandre Julliard 5fabc5cca7 wrc: Copy the strmake utility function from winegcc. 2010-12-30 12:27:13 +01:00
Alexandre Julliard 82f910eb62 wrc: Merge the menu and menuex structures. 2010-01-04 12:41:16 +01:00
Alexandre Julliard 1b305dd2df wrc: Merge the menuitem and menuitemex structures. 2010-01-04 12:31:22 +01:00
Alexandre Julliard 0fb8203654 wrc: Merge the dialog and dialogex structures. 2010-01-04 12:23:37 +01:00
Alexandre Julliard be7558fc30 wrc: Print a warning when encountering utf8 strings in non-utf8 codepage. 2009-08-20 15:33:03 +02:00
Francois Gouget 8a18e0e43a Assorted spelling fixes. 2008-04-07 13:36:18 +02:00
Austin English 90f89fa74d tools: Spelling fixes. 2008-01-18 12:52:09 +01:00
Francois Gouget 7e92283678 wrc: Modify the error, warning and tracing functions to behave like all the other Wine tracing methods, that is to not append a '\n' to the message. 2007-10-19 11:46:11 +02:00
Francois Gouget ef998ea6cb Assorted spelling fixes. 2006-10-16 11:33:38 +02:00
Alexandre Julliard fce74f7411 wrc: Get rid of xmalloc casts. 2006-08-26 21:42:01 +02:00
Alexandre Julliard fba0897ee7 wrc: xmalloc shouldn't initialize to zero, do that explicitly where needed. 2006-08-26 21:42:00 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Marcus Meissner 2d7e976eed Fixed signedness warnings. 2005-07-10 17:45:53 +00:00
Alexandre Julliard 52788d1f1c Added support for HTML resource type. 2005-06-30 20:58:52 +00:00
Stefan Huehner 4d11eba003 Fix some -Wsign-compare warnings. 2005-06-30 18:10:08 +00:00
Alexandre Julliard 38964fd852 Removed an unused function. 2004-12-07 14:48:46 +00:00
Eric Pouech 763aff61a0 Another couple of missing static definitions. 2004-12-06 16:44:32 +00:00
Eric Frias 741844c6ea Fixed error writing control IDs in dialogex on sparc. 2004-11-21 15:38:00 +00:00
Daniel Marmier 4034ff36c0 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-14 01:19:27 +00:00
Steven Edwards 14e3b19cd0 Fixes for building with w32api headers on Mingw. 2003-08-22 05:05:56 +00:00
Alexandre Julliard f22ba0560d Added support for #pragma code_page.
Fixed a few bugs in language handling.
Added error message when Ansi->Unicode conversion in the current
codepage loses information.
2002-08-15 21:57:36 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Ulrich Weigand b5533c1dc6 - Fixed a byteorder conversion problem with message tables.
- Carefully read and write (possibly) misaligned data elements
  to avoid crashes on architectures where this is not allowed.
2001-01-02 20:46:28 +00:00
François Gouget 44a182229b winuser.h now requires that we include winbase.h first. 2000-12-19 04:53:20 +00:00
Alexandre Julliard 1d1f5f3eed Added codepage translation based on the language id (based on a patch
by Junichi Kuchinishi <jkuchi@mahoroba.ne.jp>).
2000-10-24 21:29:28 +00:00
Bertho Stultiens 24b5050a7f - Bugfix: Macro expansion of strings would assert an internal error
or a segfault due to a lacking '\0' in the expansion.
- Bugfix: Prevent buffer overflow in reallocation of macro expansion
  buffers.
- Bugfix: Wrc's version information was not passed as numerical to the
  preprocessor due to an error in the definition of the macro.
- Relaxed the newline constraint in global LANGUAGE statements, which
  was introduced in version 1.1.3, so that some fancy preprocessor
  constructs can work.
- Removed the gcc-style #line handling from the resource-parser to the
  resource-scanner so that it is possible to include files at any stage
  of the source, independent of the parser-state.
- Bugfix: Stringtables were not correctly searched for duplicates
  because the language comparison disregarded the sublanguage.
- Eliminated a repetitive warning when writing stringtables with zero
  length string entries. These are perfectly valid (but make no sense:-).
  Warnings are now only generated during parse in pedantic mode.
2000-07-08 11:49:29 +00:00