wrc: Display a warning in pedantic mode when using memory options in 32-bit resources.

This commit is contained in:
Alexandre Julliard 2010-07-22 10:43:08 +02:00
parent 7cb044d3d8
commit 0fbe445871

View file

@ -1708,15 +1708,22 @@ loadmemopts
} }
; ;
lamo : tPRELOAD { $$ = new_int(WRC_MO_PRELOAD); } lamo : tPRELOAD { $$ = new_int(WRC_MO_PRELOAD);
| tMOVEABLE { $$ = new_int(WRC_MO_MOVEABLE); } if (win32 && pedantic) parser_warning("PRELOAD is ignored in 32-bit mode\n"); }
| tDISCARDABLE { $$ = new_int(WRC_MO_DISCARDABLE); } | tMOVEABLE { $$ = new_int(WRC_MO_MOVEABLE);
| tPURE { $$ = new_int(WRC_MO_PURE); } if (win32 && pedantic) parser_warning("MOVEABLE is ignored in 32-bit mode\n"); }
| tDISCARDABLE { $$ = new_int(WRC_MO_DISCARDABLE);
if (win32 && pedantic) parser_warning("DISCARDABLE is ignored in 32-bit mode\n"); }
| tPURE { $$ = new_int(WRC_MO_PURE);
if (win32 && pedantic) parser_warning("PURE is ignored in 32-bit mode\n"); }
; ;
lama : tLOADONCALL { $$ = new_int(~WRC_MO_PRELOAD); } lama : tLOADONCALL { $$ = new_int(~WRC_MO_PRELOAD);
| tFIXED { $$ = new_int(~WRC_MO_MOVEABLE); } if (win32 && pedantic) parser_warning("LOADONCALL is ignored in 32-bit mode\n"); }
| tIMPURE { $$ = new_int(~WRC_MO_PURE); } | tFIXED { $$ = new_int(~WRC_MO_MOVEABLE);
if (win32 && pedantic) parser_warning("FIXED is ignored in 32-bit mode\n"); }
| tIMPURE { $$ = new_int(~WRC_MO_PURE);
if (win32 && pedantic) parser_warning("IMPURE is ignored in 32-bit mode\n"); }
; ;
/* ------------------------------ Win32 options ------------------------------ */ /* ------------------------------ Win32 options ------------------------------ */