"Fossies" - the Fresh Open Source Software Archive

Member "wp2latex-3.82/sources.cc/atoms/include/common.h.in" (22 May 2019, 3658 Bytes) of package /linux/misc/wp2latex-3.82.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "common.h.in": 3.81_vs_3.82.

    1 #ifndef __Common_H_INCLUDED
    2 #define __Common_H_INCLUDED
    3 
    4 /******** Fixing some special features of compilers **********
    5 (c) 1997-2019 Jaroslav Fojtik
    6   if you don't use below mentionted compiler, please correct this items
    7   for your compiler and send me your correction to:
    8         fojtik@penguin.cz or JaFojtik@seznam.cz
    9 
   10 Outputs: 
   11   __Strict_Const_Procs      compiler is very touht on const arguments
   12   __string_already_used     the class string is used internally
   13   __Disable_NULL_printf     the printf("%s",NULL) crashes
   14   __Ellipsis_Expand_Short       ellipse ... convert all char and short arguments to int
   15   __Limited_Proc_Size       several old compilers have severe limitation of procedure code size <24kB
   16   __No_bool         Compiler do not support bool type
   17   NO_LVAL_CAST          Compiler cannot compile ((char *)ptr)++
   18   __FixNonTemplateFriend    Templates are supported on the obsolette basis, needed <> after operator
   19   __Mkdir_Has_1_arg     Mkdir is defined with 1 argument only
   20   explicit          for compilers that do not support this keyword redefine it to "private:"
   21 */
   22 
   23 @MEMSTREAMS@
   24 @ELLIPSIS_EXPAND_SHORT@
   25 @LVAL_CAST@
   26 
   27 #define __Have_stricmp  /*allways defined because of configure script*/
   28 @STRICMP@
   29 
   30 /* Define to 1 if you have the <values.h> header file. */
   31 #undef HAVE_VALUES_H
   32 
   33 
   34 #define _HAVE_VSNPRINTF
   35 
   36 
   37 #ifdef __unix
   38   #ifndef __UNIX__
   39     #define __UNIX__
   40   #endif
   41 #endif
   42 #ifdef unix
   43   #ifndef __UNIX__
   44     #define __UNIX__
   45   #endif
   46 #endif
   47 
   48 
   49 #ifdef __BORLANDC__
   50   #define __Mkdir_Has_1_arg
   51   #define LO_ENDIAN
   52   #ifdef __OS2__
   53     #define __Strict_Const_Procs
   54     #define __string_already_used
   55   #endif
   56   #define __FixNonTemplateFriend    //Borland C++ has templates implemented wrongly
   57   #if __BORLANDC__ < 0x0500
   58     #define mutable         // Mutable is not supportted
   59     #define __Limited_Proc_Size
   60     #define __No_bool
   61     #define explicit /* unsupported */
   62     #undef _HAVE_VSNPRINTF
   63   #endif
   64   #ifdef __WIN32__
   65     #define __Strict_Const_Procs
   66     #ifdef IN
   67       #undef IN
   68     #endif
   69     #define IN %
   70   #else
   71     typedef signed char  bool;
   72     #define true 1
   73     #define false 0
   74   #endif
   75 #endif
   76 
   77 
   78 #if defined(__EGC__) || defined(__GNUC__)
   79 
   80   #define PACKED  __attribute__((aligned(1))) __attribute__((packed))
   81   
   82   #if __GNUC__ >= 3
   83     #define __StrictSingUnsign
   84     #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ > 3)
   85       #define __FixNonTemplateFriend
   86     #endif
   87     #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || (__GNUC__ > 4)
   88       #define __Strict_Const_Procs
   89     #endif
   90   #else
   91     #undef _HAVE_VSNPRINTF
   92   #endif
   93   #ifndef __DJGPP__
   94     #ifndef __UNIX__
   95       #define __UNIX__
   96     #endif
   97   #else     //DJGPP
   98     #ifdef __UNIX__
   99       #undef __UNIX__
  100     #endif
  101   #endif
  102   #ifdef sun  
  103     #define __Disable_NULL_printf
  104   #endif
  105 #endif
  106 
  107 
  108 #ifndef __GNUC__
  109 #ifdef __hpux
  110   #ifndef __HPUXC__
  111     #define __HPUXC__
  112   #endif
  113 #endif
  114 
  115 
  116 #ifdef hpux
  117   #ifndef __HPUXC__
  118     #define __HPUXC__
  119   #endif
  120 #endif
  121 #endif
  122 
  123 
  124 #ifdef _MSC_VER
  125   #define __StrictSingUnsign
  126   #define __FixNonTemplateFriend
  127   #define __Mkdir_Has_1_arg
  128   #if _MSC_VER <= 800
  129     #define explicit private:
  130   #endif
  131   #if _MSC_VER >= 1400  
  132     #define __Strict_Const_Procs
  133   #endif
  134 #endif
  135 
  136 
  137 #ifdef __WATCOMC__
  138  #ifdef __MSDOS__
  139    #define __Mkdir_Has_1_arg
  140  #endif
  141 #endif
  142 
  143 
  144 #ifndef PACKED
  145  #define    PACKED      /**< Default definition of packed - nothing. */
  146 #endif
  147 
  148 
  149 typedef enum
  150 {
  151   StringsId = 0x100,
  152   SetsId =    0x200,
  153   ListsId =   0x300,
  154   MatrixId =  0x400,
  155   StackId =   0x500,
  156   IntervalId =0x600,
  157   RasterId =  0x700,
  158   DblListId = 0x800
  159 } TComponentId;
  160 
  161 
  162 #ifndef ERROR_HANDLER
  163   #define RaiseError(ErrNo,Instance)    {}; /**/
  164 #else
  165   void RaiseError(int ErrNo, void *Instance);
  166 #endif
  167 
  168 
  169 #endif