home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / LIBSRC.ZOO / libsrc / longlong / tm.h < prev    next >
Text File  |  1992-03-12  |  1KB  |  49 lines

  1. /* OS/2 specific */
  2.  
  3. #define OS2
  4.  
  5. #define GCC_INCLUDE_DIR ""
  6. #define GPLUSPLUS_INCLUDE_DIR ""
  7.  
  8. #include "i386gas.h"
  9.  
  10. #define _ANSI_H
  11.  
  12. #define USE_COLLECT
  13.  
  14. #define BIGGEST_FIELD_ALIGNMENT \
  15.   (maximum_field_alignment ? maximum_field_alignment : 32)
  16.  
  17. extern int maximum_field_alignment;
  18.  
  19. /* Code to handle #pragma directives.  The interface is a bit messy,
  20.    but there's no simpler way to do this while still using yylex.  */
  21. #define HANDLE_PRAGMA(FILE)                    \
  22.   do {                                \
  23.     while (c == ' ' || c == '\t')                \
  24.       c = getc (FILE);                        \
  25.     if (c == '\n' || c == EOF)                    \
  26.       {                                \
  27.     handle_pragma_token (0, 0);                \
  28.     return c;                        \
  29.       }                                \
  30.     ungetc (c, FILE);                        \
  31.     switch (yylex ())                        \
  32.       {                                \
  33.       case IDENTIFIER:                        \
  34.       case TYPENAME:                        \
  35.       case STRING:                        \
  36.       case CONSTANT:                        \
  37.     handle_pragma_token (token_buffer, yylval.ttype);    \
  38.     break;                            \
  39.       default:                            \
  40.     handle_pragma_token (token_buffer, 0);            \
  41.       }                                \
  42.     if (nextchar >= 0)                        \
  43.       c = nextchar, nextchar = -1;                \
  44.     else                            \
  45.       c = getc (FILE);                        \
  46.   } while (1)
  47.  
  48.  
  49.