74
75 #define false BOOLEAN_false
76 #define true BOOLEAN_true
77
78 typedef enum {
79 false = 0,
80 true = 1,
81 failed = 0,
82 succeeded = 1
83 } Boolean;
84 #define BOOLEAN(expr) ((expr) ? true : false)
85
86 /*
87 * Some random constants (in an enum so dbx knows their values)
88 */
89 enum {
90 update_delay = 30, /* time between rstat checks */
91 #ifdef sun386
92 ar_member_name_len = 14,
93 #else
94 #if defined(SUN5_0) || defined(linux)
95 ar_member_name_len = 1024,
96 #else
97 ar_member_name_len = 15,
98 #endif
99 #endif
100
101 hashsize = 2048 /* size of hash table */
102 };
103
104
105 /*
106 * Symbols that defines all the different char constants make uses
107 */
108 enum {
109 ampersand_char = '&',
110 asterisk_char = '*',
111 at_char = '@',
112 backquote_char = '`',
113 backslash_char = '\\',
114 bar_char = '|',
115 braceleft_char = '{',
116 braceright_char = '}',
117 bracketleft_char = '[',
118 bracketright_char = ']',
933
934 private:
935 // tree root
936 entry *root;
937 };
938
939 /*
940 * extern declarations for all global variables.
941 * The actual declarations are in globals.cc
942 */
943 extern char char_semantics[];
944 extern wchar_t char_semantics_char[];
945 extern Macro_list cond_macro_list;
946 extern Boolean conditional_macro_used;
947 extern Boolean do_not_exec_rule; /* `-n' */
948 extern Boolean dollarget_seen;
949 extern Boolean dollarless_flag;
950 extern Name dollarless_value;
951 extern char **environ;
952 extern Envvar envvar;
953 #if defined(SUN5_0) || defined(HP_UX) || defined(linux)
954 extern int exit_status;
955 #endif
956 extern wchar_t *file_being_read;
957 /* Variable gnu_style=true if env. var. SUN_MAKE_COMPAT_MODE=GNU (RFE 4866328) */
958 extern Boolean gnu_style;
959 extern Name_set hashtab;
960 extern Name host_arch;
961 extern Name host_mach;
962 extern int line_number;
963 extern char *make_state_lockfile;
964 extern Boolean make_word_mentioned;
965 extern Makefile_type makefile_type;
966 extern char mbs_buffer[];
967 extern Name path_name;
968 extern Boolean posix;
969 extern Name query;
970 extern Boolean query_mentioned;
971 extern Name hat;
972 extern Boolean reading_environment;
973 extern Name shell_name;
974 extern Boolean svr4;
975 extern Name target_arch;
|
74
75 #define false BOOLEAN_false
76 #define true BOOLEAN_true
77
78 typedef enum {
79 false = 0,
80 true = 1,
81 failed = 0,
82 succeeded = 1
83 } Boolean;
84 #define BOOLEAN(expr) ((expr) ? true : false)
85
86 /*
87 * Some random constants (in an enum so dbx knows their values)
88 */
89 enum {
90 update_delay = 30, /* time between rstat checks */
91 #ifdef sun386
92 ar_member_name_len = 14,
93 #else
94 ar_member_name_len = 1024,
95 #endif
96
97 hashsize = 2048 /* size of hash table */
98 };
99
100
101 /*
102 * Symbols that defines all the different char constants make uses
103 */
104 enum {
105 ampersand_char = '&',
106 asterisk_char = '*',
107 at_char = '@',
108 backquote_char = '`',
109 backslash_char = '\\',
110 bar_char = '|',
111 braceleft_char = '{',
112 braceright_char = '}',
113 bracketleft_char = '[',
114 bracketright_char = ']',
929
930 private:
931 // tree root
932 entry *root;
933 };
934
935 /*
936 * extern declarations for all global variables.
937 * The actual declarations are in globals.cc
938 */
939 extern char char_semantics[];
940 extern wchar_t char_semantics_char[];
941 extern Macro_list cond_macro_list;
942 extern Boolean conditional_macro_used;
943 extern Boolean do_not_exec_rule; /* `-n' */
944 extern Boolean dollarget_seen;
945 extern Boolean dollarless_flag;
946 extern Name dollarless_value;
947 extern char **environ;
948 extern Envvar envvar;
949 extern int exit_status;
950 extern wchar_t *file_being_read;
951 /* Variable gnu_style=true if env. var. SUN_MAKE_COMPAT_MODE=GNU (RFE 4866328) */
952 extern Boolean gnu_style;
953 extern Name_set hashtab;
954 extern Name host_arch;
955 extern Name host_mach;
956 extern int line_number;
957 extern char *make_state_lockfile;
958 extern Boolean make_word_mentioned;
959 extern Makefile_type makefile_type;
960 extern char mbs_buffer[];
961 extern Name path_name;
962 extern Boolean posix;
963 extern Name query;
964 extern Boolean query_mentioned;
965 extern Name hat;
966 extern Boolean reading_environment;
967 extern Name shell_name;
968 extern Boolean svr4;
969 extern Name target_arch;
|