Reactos

[WINHLP32] Sync with Wine Staging 3.3. CORE-14434

+431 -46
+2 -2
base/applications/winhlp32/CMakeLists.txt
··· 13 13 macro.c 14 14 macro.lex.yy.c 15 15 winhelp.c 16 - winhelp.h) 16 + precomp.h) 17 17 18 18 add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico) 19 19 add_executable(winhlp32 ${SOURCE} string.c rsrc.rc) 20 20 set_module_type(winhlp32 win32gui) 21 21 target_link_libraries(winhlp32 wine) 22 22 add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll) 23 - add_pch(winhlp32 winhelp.h SOURCE) 23 + add_pch(winhlp32 precomp.h SOURCE) 24 24 add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
+9
base/applications/winhlp32/callback.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 19 */ 20 20 21 + #define WIN32_LEAN_AND_MEAN 22 + 23 + #include <stdio.h> 24 + 25 + #include "windows.h" 21 26 #include "winhelp.h" 27 + 28 + #include "wine/debug.h" 29 + 30 + WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 22 31 23 32 static WORD CALLBACK WHD_GetFSError(void) 24 33 {
+12
base/applications/winhlp32/hlpfile.c
··· 20 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 21 21 */ 22 22 23 + #include <stdarg.h> 24 + #include <stdio.h> 25 + #include <string.h> 26 + 27 + #include "windef.h" 28 + #include "winbase.h" 29 + #include "wingdi.h" 30 + #include "winuser.h" 23 31 #include "winhelp.h" 32 + 33 + #include "wine/debug.h" 34 + 35 + WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 24 36 25 37 static inline unsigned short GET_USHORT(const BYTE* buffer, unsigned i) 26 38 {
+2
base/applications/winhlp32/hlpfile.h
··· 20 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 21 21 */ 22 22 23 + #pragma once 24 + 23 25 struct tagHelpFile; 24 26 25 27 typedef struct
+10 -1
base/applications/winhlp32/macro.c
··· 19 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 20 20 */ 21 21 22 + #define WIN32_LEAN_AND_MEAN 23 + 24 + #include <stdio.h> 25 + 26 + #include "windows.h" 27 + #include "commdlg.h" 28 + #include "shellapi.h" 22 29 #include "winhelp.h" 23 30 24 - #include <shellapi.h> 31 + #include "wine/debug.h" 32 + 33 + WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 25 34 26 35 /**************************************************/ 27 36 /* Macro table */
+7
base/applications/winhlp32/macro.h
··· 19 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 20 20 */ 21 21 22 + #pragma once 23 + 24 + #include <stdarg.h> 25 + 26 + #include "windef.h" 27 + #include "winbase.h" 28 + 22 29 struct lexret { 23 30 LPCSTR proto; 24 31 BOOL bool;
+1 -5
base/applications/winhlp32/macro.lex.l
··· 20 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 21 21 */ 22 22 %} 23 - %option noinput nounput never-interactive 8bit 23 + %option noinput nounput never-interactive 8bit noyywrap 24 24 %x quote 25 25 %{ 26 26 #include "config.h" ··· 367 367 { 368 368 return lex_data ? lex_data->window : Globals.active_win; 369 369 } 370 - 371 - #ifndef yywrap 372 - int yywrap(void) { return 1; } 373 - #endif
+18 -9
base/applications/winhlp32/macro.lex.yy.c
··· 333 333 334 334 /* Begin user sect3 */ 335 335 336 + #define yywrap() 1 337 + #define YY_SKIP_YYWRAP 338 + 336 339 typedef unsigned char YY_CHAR; 337 340 338 341 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; ··· 494 497 #define YY_NO_INPUT 1 495 498 496 499 #line 26 "macro.lex.l" 497 - #include <config.h> 500 + #include "config.h" 501 + #include <assert.h> 502 + #include <stdarg.h> 498 503 499 504 #define YY_NO_UNISTD_H 505 + #include "windef.h" 506 + #include "winbase.h" 507 + #include "wingdi.h" 508 + #include "winuser.h" 500 509 #include "winhelp.h" 501 510 511 + #include "wine/debug.h" 512 + 513 + WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 514 + 502 515 struct lex_data { 503 516 LPCSTR macroptr; 504 517 LPSTR strptr; ··· 515 528 #define YY_INPUT(buf,result,max_size)\ 516 529 if ((result = *lex_data->macroptr ? 1 : 0)) buf[0] = *lex_data->macroptr++; 517 530 518 - #line 537 "macro.lex.yy.c" 531 + #line 532 "macro.lex.yy.c" 519 532 520 533 #define INITIAL 0 521 534 #define quote 1 ··· 699 712 #line 58 "macro.lex.l" 700 713 701 714 702 - #line 726 "macro.lex.yy.c" 715 + #line 716 "macro.lex.yy.c" 703 716 704 717 if ( !(yy_init) ) 705 718 { ··· 867 880 #line 108 "macro.lex.l" 868 881 ECHO; 869 882 YY_BREAK 870 - #line 894 "macro.lex.yy.c" 883 + #line 884 "macro.lex.yy.c" 871 884 case YY_STATE_EOF(INITIAL): 872 885 yyterminate(); 873 886 ··· 1825 1838 1826 1839 #define YYTABLES_NAME "yytables" 1827 1840 1828 - #line 108 "macro.lex.l" 1841 + #line 107 "macro.lex.l" 1829 1842 1830 1843 1831 1844 ··· 2090 2103 return lex_data ? lex_data->window : Globals.active_win; 2091 2104 } 2092 2105 2093 - #ifndef yywrap 2094 - int yywrap(void) { return 1; } 2095 - #endif 2096 -
+323
base/applications/winhlp32/macro.lex.yy.h
··· 1 + #ifndef yyHEADER_H 2 + #define yyHEADER_H 1 3 + #define yyIN_HEADER 1 4 + 5 + #line 6 "macro.lex.yy.h" 6 + 7 + #line 8 "macro.lex.yy.h" 8 + 9 + #define YY_INT_ALIGNED short int 10 + 11 + /* A lexical scanner generated by flex */ 12 + 13 + #define FLEX_SCANNER 14 + #define YY_FLEX_MAJOR_VERSION 2 15 + #define YY_FLEX_MINOR_VERSION 5 16 + #define YY_FLEX_SUBMINOR_VERSION 37 17 + #if YY_FLEX_SUBMINOR_VERSION > 0 18 + #define FLEX_BETA 19 + #endif 20 + 21 + /* First, we deal with platform-specific or compiler-specific issues. */ 22 + 23 + /* begin standard C headers. */ 24 + #include <stdio.h> 25 + #include <string.h> 26 + #include <errno.h> 27 + #include <stdlib.h> 28 + 29 + /* end standard C headers. */ 30 + 31 + /* flex integer type definitions */ 32 + 33 + #ifndef FLEXINT_H 34 + #define FLEXINT_H 35 + 36 + /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ 37 + 38 + #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 39 + 40 + /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 41 + * if you want the limit (max/min) macros for int types. 42 + */ 43 + #ifndef __STDC_LIMIT_MACROS 44 + #define __STDC_LIMIT_MACROS 1 45 + #endif 46 + 47 + #include <inttypes.h> 48 + typedef int8_t flex_int8_t; 49 + typedef uint8_t flex_uint8_t; 50 + typedef int16_t flex_int16_t; 51 + typedef uint16_t flex_uint16_t; 52 + typedef int32_t flex_int32_t; 53 + typedef uint32_t flex_uint32_t; 54 + #else 55 + typedef signed char flex_int8_t; 56 + typedef short int flex_int16_t; 57 + typedef int flex_int32_t; 58 + typedef unsigned char flex_uint8_t; 59 + typedef unsigned short int flex_uint16_t; 60 + typedef unsigned int flex_uint32_t; 61 + 62 + /* Limits of integral types. */ 63 + #ifndef INT8_MIN 64 + #define INT8_MIN (-128) 65 + #endif 66 + #ifndef INT16_MIN 67 + #define INT16_MIN (-32767-1) 68 + #endif 69 + #ifndef INT32_MIN 70 + #define INT32_MIN (-2147483647-1) 71 + #endif 72 + #ifndef INT8_MAX 73 + #define INT8_MAX (127) 74 + #endif 75 + #ifndef INT16_MAX 76 + #define INT16_MAX (32767) 77 + #endif 78 + #ifndef INT32_MAX 79 + #define INT32_MAX (2147483647) 80 + #endif 81 + #ifndef UINT8_MAX 82 + #define UINT8_MAX (255U) 83 + #endif 84 + #ifndef UINT16_MAX 85 + #define UINT16_MAX (65535U) 86 + #endif 87 + #ifndef UINT32_MAX 88 + #define UINT32_MAX (4294967295U) 89 + #endif 90 + 91 + #endif /* ! C99 */ 92 + 93 + #endif /* ! FLEXINT_H */ 94 + 95 + #ifdef __cplusplus 96 + 97 + /* The "const" storage-class-modifier is valid. */ 98 + #define YY_USE_CONST 99 + 100 + #else /* ! __cplusplus */ 101 + 102 + /* C99 requires __STDC__ to be defined as 1. */ 103 + #if defined (__STDC__) 104 + 105 + #define YY_USE_CONST 106 + 107 + #endif /* defined (__STDC__) */ 108 + #endif /* ! __cplusplus */ 109 + 110 + #ifdef YY_USE_CONST 111 + #define yyconst const 112 + #else 113 + #define yyconst 114 + #endif 115 + 116 + /* Size of default input buffer. */ 117 + #ifndef YY_BUF_SIZE 118 + #define YY_BUF_SIZE 16384 119 + #endif 120 + 121 + #ifndef YY_TYPEDEF_YY_BUFFER_STATE 122 + #define YY_TYPEDEF_YY_BUFFER_STATE 123 + typedef struct yy_buffer_state *YY_BUFFER_STATE; 124 + #endif 125 + 126 + #ifndef YY_TYPEDEF_YY_SIZE_T 127 + #define YY_TYPEDEF_YY_SIZE_T 128 + typedef size_t yy_size_t; 129 + #endif 130 + 131 + extern yy_size_t yyleng; 132 + 133 + extern FILE *yyin, *yyout; 134 + 135 + #ifndef YY_STRUCT_YY_BUFFER_STATE 136 + #define YY_STRUCT_YY_BUFFER_STATE 137 + struct yy_buffer_state 138 + { 139 + FILE *yy_input_file; 140 + 141 + char *yy_ch_buf; /* input buffer */ 142 + char *yy_buf_pos; /* current position in input buffer */ 143 + 144 + /* Size of input buffer in bytes, not including room for EOB 145 + * characters. 146 + */ 147 + yy_size_t yy_buf_size; 148 + 149 + /* Number of characters read into yy_ch_buf, not including EOB 150 + * characters. 151 + */ 152 + yy_size_t yy_n_chars; 153 + 154 + /* Whether we "own" the buffer - i.e., we know we created it, 155 + * and can realloc() it to grow it, and should free() it to 156 + * delete it. 157 + */ 158 + int yy_is_our_buffer; 159 + 160 + /* Whether this is an "interactive" input source; if so, and 161 + * if we're using stdio for input, then we want to use getc() 162 + * instead of fread(), to make sure we stop fetching input after 163 + * each newline. 164 + */ 165 + int yy_is_interactive; 166 + 167 + /* Whether we're considered to be at the beginning of a line. 168 + * If so, '^' rules will be active on the next match, otherwise 169 + * not. 170 + */ 171 + int yy_at_bol; 172 + 173 + int yy_bs_lineno; /**< The line count. */ 174 + int yy_bs_column; /**< The column count. */ 175 + 176 + /* Whether to try to fill the input buffer when we reach the 177 + * end of it. 178 + */ 179 + int yy_fill_buffer; 180 + 181 + int yy_buffer_status; 182 + 183 + }; 184 + #endif /* !YY_STRUCT_YY_BUFFER_STATE */ 185 + 186 + void yyrestart (FILE *input_file ); 187 + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); 188 + YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); 189 + void yy_delete_buffer (YY_BUFFER_STATE b ); 190 + void yy_flush_buffer (YY_BUFFER_STATE b ); 191 + void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); 192 + void yypop_buffer_state (void ); 193 + 194 + YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); 195 + YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); 196 + YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); 197 + 198 + void *yyalloc (yy_size_t ); 199 + void *yyrealloc (void *,yy_size_t ); 200 + void yyfree (void * ); 201 + 202 + /* Begin user sect3 */ 203 + 204 + #define yywrap() 1 205 + #define YY_SKIP_YYWRAP 206 + 207 + extern int yylineno; 208 + 209 + extern char *yytext; 210 + #define yytext_ptr yytext 211 + 212 + #ifdef YY_HEADER_EXPORT_START_CONDITIONS 213 + #define INITIAL 0 214 + #define quote 1 215 + 216 + #endif 217 + 218 + #ifndef YY_NO_UNISTD_H 219 + /* Special case for "unistd.h", since it is non-ANSI. We include it way 220 + * down here because we want the user's section 1 to have been scanned first. 221 + * The user has a chance to override it with an option. 222 + */ 223 + #include <unistd.h> 224 + #endif 225 + 226 + #ifndef YY_EXTRA_TYPE 227 + #define YY_EXTRA_TYPE void * 228 + #endif 229 + 230 + /* Accessor methods to globals. 231 + These are made visible to non-reentrant scanners for convenience. */ 232 + 233 + int yylex_destroy (void ); 234 + 235 + int yyget_debug (void ); 236 + 237 + void yyset_debug (int debug_flag ); 238 + 239 + YY_EXTRA_TYPE yyget_extra (void ); 240 + 241 + void yyset_extra (YY_EXTRA_TYPE user_defined ); 242 + 243 + FILE *yyget_in (void ); 244 + 245 + void yyset_in (FILE * in_str ); 246 + 247 + FILE *yyget_out (void ); 248 + 249 + void yyset_out (FILE * out_str ); 250 + 251 + yy_size_t yyget_leng (void ); 252 + 253 + char *yyget_text (void ); 254 + 255 + int yyget_lineno (void ); 256 + 257 + void yyset_lineno (int line_number ); 258 + 259 + /* Macros after this point can all be overridden by user definitions in 260 + * section 1. 261 + */ 262 + 263 + #ifndef YY_SKIP_YYWRAP 264 + #ifdef __cplusplus 265 + extern "C" int yywrap (void ); 266 + #else 267 + extern int yywrap (void ); 268 + #endif 269 + #endif 270 + 271 + #ifndef yytext_ptr 272 + static void yy_flex_strncpy (char *,yyconst char *,int ); 273 + #endif 274 + 275 + #ifdef YY_NEED_STRLEN 276 + static int yy_flex_strlen (yyconst char * ); 277 + #endif 278 + 279 + #ifndef YY_NO_INPUT 280 + 281 + #endif 282 + 283 + /* Amount of stuff to slurp up with each read. */ 284 + #ifndef YY_READ_BUF_SIZE 285 + #define YY_READ_BUF_SIZE 8192 286 + #endif 287 + 288 + /* Number of entries by which start-condition stack grows. */ 289 + #ifndef YY_START_STACK_INCR 290 + #define YY_START_STACK_INCR 25 291 + #endif 292 + 293 + /* Default declaration of generated scanner - a define so the user can 294 + * easily add parameters. 295 + */ 296 + #ifndef YY_DECL 297 + #define YY_DECL_IS_OURS 1 298 + 299 + extern int yylex (void); 300 + 301 + #define YY_DECL int yylex (void) 302 + #endif /* !YY_DECL */ 303 + 304 + /* yy_get_previous_state - get the state just before the EOB char was reached */ 305 + 306 + #undef YY_NEW_FILE 307 + #undef YY_FLUSH_BUFFER 308 + #undef yy_set_bol 309 + #undef yy_new_buffer 310 + #undef yy_set_interactive 311 + #undef YY_DO_BEFORE_ACTION 312 + 313 + #ifdef YY_DECL_IS_OURS 314 + #undef YY_DECL_IS_OURS 315 + #undef YY_DECL 316 + #endif 317 + 318 + #line 107 "macro.lex.l" 319 + 320 + 321 + #line 322 "macro.lex.yy.h" 322 + #undef yyIN_HEADER 323 + #endif /* yyHEADER_H */
+20
base/applications/winhlp32/precomp.h
··· 1 + 2 + #ifndef _WINHELP_PRECOMP_H_ 3 + #define _WINHELP_PRECOMP_H_ 4 + 5 + #include <assert.h> 6 + #include <stdio.h> 7 + 8 + #define NONAMELESSUNION 9 + #define NONAMELESSSTRUCT 10 + 11 + #include <windows.h> 12 + 13 + #include <wine/debug.h> 14 + 15 + #include "winhelp.h" 16 + #include "hlpfile.h" 17 + #include "macro.h" 18 + #include "winhelp_res.h" 19 + 20 + #endif /* !_WINHELP_PRECOMP_H_ */
-3
base/applications/winhlp32/rsrc.rc
··· 19 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 20 20 */ 21 21 22 - #include <windef.h> 23 - #include <winuser.h> 24 - 25 22 #include "winhelp_res.h" 26 23 27 24 LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+20 -2
base/applications/winhlp32/winhelp.c
··· 22 22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 23 23 */ 24 24 25 + #include <assert.h> 26 + #include <stdio.h> 27 + #include <string.h> 28 + #include <stdarg.h> 29 + #include <stdlib.h> 30 + 31 + #define NONAMELESSUNION 32 + 33 + #include "windef.h" 34 + #include "winbase.h" 35 + #include "wingdi.h" 36 + #include "winuser.h" 37 + #include "commdlg.h" 25 38 #include "winhelp.h" 39 + #include "winhelp_res.h" 40 + #include "shellapi.h" 41 + #include "richedit.h" 42 + #include "commctrl.h" 26 43 27 - #include <richedit.h> 28 - #include <commctrl.h> 44 + #include "wine/debug.h" 45 + 46 + WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 29 47 30 48 WINHELP_GLOBALS Globals = {3, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, {{{NULL,NULL}},0}, NULL}; 31 49
+3 -23
base/applications/winhlp32/winhelp.h
··· 20 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 21 21 */ 22 22 23 - #ifndef _WINHELP_H_ 24 - #define _WINHELP_H_ 23 + #pragma once 25 24 26 25 #define MAX_LANGUAGE_NUMBER 255 27 26 #define MAX_STRING_LEN 255 ··· 35 34 36 35 #ifndef RC_INVOKED 37 36 38 - #include <assert.h> 39 37 #include <stdarg.h> 40 - #include <stdio.h> 41 - 42 - #define WIN32_NO_STATUS 43 - #define _INC_WINDOWS 44 - #define COM_NO_WINDOWS_H 45 - 46 - #define NONAMELESSUNION 47 - #define NONAMELESSSTRUCT 48 - 49 - #include <windef.h> 50 - #include <winbase.h> 51 - #include <wingdi.h> 52 - #include <winuser.h> 53 - #include <commdlg.h> 54 38 55 39 #include "hlpfile.h" 40 + #include "windef.h" 41 + #include "winbase.h" 56 42 #include "macro.h" 57 - 58 - #include <wine/debug.h> 59 - WINE_DEFAULT_DEBUG_CHANNEL(winhelp); 60 - 61 43 #include "winhelp_res.h" 62 44 63 45 typedef struct tagHelpButton ··· 206 188 207 189 /* Buttons */ 208 190 #define WH_FIRST_BUTTON 500 209 - 210 - #endif /* _WINHELP_H_ */
+3
base/applications/winhlp32/winhelp_res.h
··· 1 1 #pragma once 2 2 3 + #include <windef.h> 4 + #include <winuser.h> 5 + 3 6 #define MNID_FILE_OPEN 0x101 4 7 #define MNID_FILE_PRINT 0x104 5 8 #define MNID_FILE_SETUP 0x106
+1 -1
media/doc/README.WINE
··· 238 238 reactos/base/applications/iexplore # Synced to WineStaging-3.3 239 239 reactos/base/applications/notepad # Forked at Wine-20041201 240 240 reactos/base/applications/regedit # Out of sync 241 - reactos/base/applications/winhlp32 # Synced to Wine-3.0 241 + reactos/base/applications/winhlp32 # Synced to WineStaging-3.3 242 242 reactos/base/applications/wordpad # Synced to WineStaging-1.9.16 243 243 reactos/base/applications/write # Synced to WineStaging-2.9 244 244 reactos/base/services/rpcss # Synced to WineStaging-1.9.16