Print this page
make: unifdef for other OSes (undefined)

*** 41,74 **** #include <sys/types.h> /* time_t, caddr_t */ #include <vroot/vroot.h> /* pathpt */ #include <sys/time.h> /* timestruc_t */ #include <errno.h> /* errno */ - #if defined (HP_UX) || defined (linux) - #define MAXNAMELEN 256 - #define RW_NO_OVERLOAD_WCHAR 1 /* Rogue Wave, belongs in <rw/compiler.h> */ - #else #include <wctype.h> #include <widec.h> - #endif - #if defined (linux) - /* - * Definition of wchar functions. - */ - # include <wctype.h> - # include <wchar.h> - # define wsdup(x) wcsdup(x) - # define wschr(x,y) wcschr(x,y) - # define wscat(x,y) wcscat(x,y) - # define wsrchr(x,y) wcsrchr(x,y) - # define wslen(x) wcslen(x) - # define wscpy(x,y) wcscpy(x,y) - # define wsncpy(x,y,z) wcsncpy(x,y,z) - # define wscmp(x,y) wcscmp(x,y) - # define wsncmp(x,y,z) wcsncmp(x,y,z) - #endif /* * A type and some utilities for boolean values */ --- 41,53 ----
*** 86,101 **** /* * Some random constants (in an enum so dbx knows their values) */ enum { update_delay = 30, /* time between rstat checks */ - #ifdef sun386 - ar_member_name_len = 14, - #else ar_member_name_len = 1024, - #endif - hashsize = 2048 /* size of hash table */ }; /* --- 65,75 ----
*** 392,404 **** /* * Magic values for the timestamp stored with each name object */ - #if defined (linux) - typedef struct timespec timestruc_t; - #endif extern const timestruc_t file_no_time; extern const timestruc_t file_doesnt_exist; extern const timestruc_t file_is_dir; extern const timestruc_t file_min_time; --- 366,375 ----
*** 459,473 **** /* * The list for $? is stored as a structured list that * is translated into a string iff it is referenced. * This is why some macro values need a daemon. */ - #if defined(HP_UX) || defined(linux) - Daemon daemon; - #else Daemon daemon:2; - #endif }; struct _Macro_list { struct _Macro_list *next; char *macro_name; --- 430,440 ----
*** 489,514 **** struct { timestruc_t time; /* Modification */ int stat_errno; /* error from "stat" */ off_t size; /* Of file */ mode_t mode; /* Of file */ - #if defined(HP_UX) || defined(linux) - Boolean is_file; - Boolean is_dir; - Boolean is_sym_link; - Boolean is_precious; - enum sccs_stat has_sccs; - #else Boolean is_file:1; Boolean is_dir:1; Boolean is_sym_link:1; Boolean is_precious:1; #ifdef NSE Boolean is_derived_src:1; #endif enum sccs_stat has_sccs:2; - #endif } stat; /* * Count instances of :: definitions for this target */ short colon_splits; --- 456,473 ----
*** 540,558 **** */ Boolean being_expanded:1; /* * This name is a magic name that the reader must know about */ - #if defined(HP_UX) || defined(linux) - Special special_reader; - Doname state; - Separator colons; - #else Special special_reader:5; Doname state:3; Separator colons:3; - #endif Boolean has_depe_list_expanded:1; Boolean suffix_scan_done:1; Boolean has_complained:1; /* For sccs */ /* * This target has been built during this make run --- 499,511 ----
*** 763,777 **** }; #define PROPERTY_HEAD_SIZE (sizeof (struct _Property)-sizeof (union Body)) struct _Property { struct _Property *next; - #if defined(HP_UX) || defined(linux) - Property_id type; - #else Property_id type:4; - #endif union Body body; }; /* Structure for dynamic "ascii" arrays */ struct ASCII_Dyn_Array { --- 716,726 ----