"Fossies" - the Fresh Open Source Software Archive

Member "c_count-7.20/system.h" (22 Nov 2002, 1490 Bytes) of package /linux/privat/c_count-7.20.tgz:


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. For more information about "system.h" see the Fossies "Dox" file reference documentation.

    1 /* $Id: system.h,v 7.13 2002/11/22 22:36:55 tom Exp $ */
    2 
    3 #ifdef HAVE_CONFIG_H
    4 
    5 # include "config.h"
    6 # define SYS_UNIX 1
    7 
    8 #else
    9     /* provide values for non-UNIX systems */
   10 # if defined(vms)
   11 #  include <stsdef.h>
   12 #  define SYS_VMS 1
   13 #  define EXIT_SUCCESS (STS$M_INHIB_MSG | STS$K_SUCCESS)
   14 #  define EXIT_FAILURE (STS$M_INHIB_MSG | STS$K_ERROR)
   15 # endif
   16 
   17 # if defined(MSDOS) || defined(__MSDOS__)
   18 #  define SYS_MSDOS 1
   19 # endif
   20 
   21 # if !defined(SYS_VMS) || !defined(SYS_MSDOS) || defined(WIN32)
   22 #  define SYS_UNIX 1        /* assume we're autoconfiguring */
   23 # endif
   24 
   25 #define HAVE_STRCHR 1
   26 
   27 #endif /* HAVE_CONFIG_H */
   28 
   29 #ifndef HAVE_GETOPT_H
   30 #define HAVE_GETOPT_H 0
   31 #endif
   32 
   33 #ifndef HAVE_MALLOC_H
   34 #define HAVE_MALLOC_H 0
   35 #endif
   36 
   37 #ifndef HAVE_STDLIB_H
   38 #define HAVE_STDLIB_H 1
   39 #endif
   40 
   41 #ifndef HAVE_STRING_H
   42 #define HAVE_STRING_H 1
   43 #endif
   44 
   45 #ifndef SYS_MSDOS
   46 #define SYS_MSDOS 0
   47 #endif
   48 
   49 #ifndef SYS_UNIX
   50 #define SYS_UNIX 0
   51 #endif
   52 
   53 #ifndef SYS_VMS
   54 #define SYS_VMS 0
   55 #endif
   56 
   57 #ifndef HAVE_GETOPT_HEADER
   58 #define HAVE_GETOPT_HEADER 0
   59 #endif
   60 
   61 #ifndef PRINT_ROUNDS_DOWN
   62 #define PRINT_ROUNDS_DOWN 0
   63 #endif
   64 
   65 #ifdef lint
   66 #define typeCalloc(type,elts) (type *)(elts)
   67 #else
   68 #define typeCalloc(type,elts) (type *)calloc(elts,sizeof(type))
   69 #endif
   70 
   71 #ifndef TRUE
   72 #define TRUE  (1)
   73 #define FALSE (0)
   74 #endif
   75 
   76 #undef EOS
   77 #define EOS '\0'
   78 
   79     /* On VMS and MSDOS we can fake wildcards by embedding a directory
   80      * scanning loop...
   81      */
   82 #if !SYS_UNIX
   83 extern int has_wildcard(char *);
   84 extern int expand_wildcard(char *, int);
   85 #endif