Ignore:
Timestamp:
Apr 9, 2008, 10:22:08 PM (17 years ago)
Author:
cinc
Message:

Portability patches for Windows, Linux, Darwin by Bird.

Location:
trunk/idl-compiler/parser_c
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/parser_c/classversion_parser.c

    r271 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
  • trunk/idl-compiler/parser_c/filestem_parser.c

    r307 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif  /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
  • trunk/idl-compiler/parser_c/hash_parser.c

    r308 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
     
    4548  Current token is a '#'.
    4649
    47   H:= '#' INT STRING INT     // Line info from the preprocessor
     50  H:= '#line' INT STRING INT // Line info from the preprocessor
     51  H:= '#' INT STRING INT     // Line info from the preprocessor (gcc short hand)
    4852 */
    4953void parseHash(void)
    5054{
     55  if (g_scanner_peek_next_token(gScanner) == G_TOKEN_IDENTIFIER
     56   && !strcmp(gScanner->next_value.v_identifier, "line"))
     57    getNextToken(); /* skip the line part. */
    5158
    5259  if(matchNext(G_TOKEN_INT))
  • trunk/idl-compiler/parser_c/instancevar_parser.c

    r271 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
  • trunk/idl-compiler/parser_c/interface_parser.c

    r309 r326  
    3737  a specialized parser function in another source file is called from here.
    3838 */
    39 #include <os2.h>
     39#ifdef __OS2__
     40# include <os2.h>
     41#endif /* __OS2__ */
     42
    4043#include <stdlib.h>
    4144#include <string.h>
     
    292295{
    293296  PSYMBOL pCurSymbol;
     297  GTokenValue value;
    294298
    295299  /* Parent interface */
     
    305309      exit(1);
    306310    }
    307   GTokenValue value=gScanner->value;
     311  value=gScanner->value;
    308312  /* Make sure it's the correct symbol */
    309313  pCurSymbol=value.v_symbol;
  • trunk/idl-compiler/parser_c/lineinfo_parser.c

    r306 r326  
    3939 */
    4040
    41 #include <os2.h>
     41#ifdef __OS2__
     42# include <os2.h>
     43#endif /* __OS2__ */
     44
    4245#include <stdio.h>
    4346#include <stdlib.h>
  • trunk/idl-compiler/parser_c/metaclass_parser.c

    r320 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
  • trunk/idl-compiler/parser_c/method_parser.c

    r271 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdlib.h>
    3639
  • trunk/idl-compiler/parser_c/override_parser.c

    r309 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639#include <stdlib.h>
  • trunk/idl-compiler/parser_c/typespec_parser.c

    r269 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif /* __OS2__ */
     37
    3538#include <stdio.h>
    3639
Note: See TracChangeset for help on using the changeset viewer.