Print this page
make: translate using gettext, rather than the unmaintainable catgets
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/make/bin/globals.cc
+++ new/usr/src/cmd/make/bin/globals.cc
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 /*
27 27 * globals.cc
28 28 *
29 29 * This declares all global variables
30 30 */
31 31
32 32 /*
33 33 * Included files
34 34 */
35 35 #include <nl_types.h>
36 36 #include <mk/defs.h>
37 37 #include <sys/stat.h>
38 38
39 39 /*
40 40 * Defined macros
41 41 */
42 42
43 43 /*
44 44 * typedefs & structs
45 45 */
46 46
47 47 /*
48 48 * Global variables used by make only
49 49 */
50 50 FILE *dependency_report_file;
51 51
52 52 /*
53 53 * Global variables used by make
54 54 */
55 55 Boolean allrules_read=false;
56 56 Name posix_name;
57 57 Name svr4_name;
58 58 Boolean sdot_target; /* used to identify s.m(/M)akefile */
59 59 Boolean all_parallel;
60 60 Boolean assign_done;
61 61 int foo;
62 62 Boolean build_failed_seen;
63 63 Name built_last_make_run;
64 64 Name c_at;
65 65 Boolean cleanup;
66 66 Boolean close_report;
67 67 Boolean command_changed;
68 68 Boolean commands_done;
69 69 Chain conditional_targets;
70 70 Name conditionals;
71 71 Boolean continue_after_error; /* `-k' */
72 72 Property current_line;
73 73 Name current_make_version;
74 74 Name current_target;
75 75 short debug_level;
76 76 Cmd_line default_rule;
77 77 Name default_rule_name;
78 78 Name default_target_to_build;
79 79 Name dmake_group;
80 80 Name dmake_max_jobs;
81 81 Name dmake_mode;
82 82 DMake_mode dmake_mode_type;
83 83 Name dmake_output_mode;
84 84 DMake_output_mode output_mode = txt1_mode;
85 85 Name dmake_odir;
86 86 Name dmake_rcfile;
87 87 Name done;
88 88 Name dot;
89 89 Name dot_keep_state;
90 90 Name dot_keep_state_file;
91 91 Name empty_name;
92 92 Boolean fatal_in_progress;
93 93 int file_number;
94 94 #if 0
95 95 Boolean filter_stderr; /* `-X' */
96 96 #endif
97 97 Name force;
98 98 Name ignore_name;
99 99 Boolean ignore_errors; /* `-i' */
100 100 Boolean ignore_errors_all; /* `-i' */
101 101 Name init;
102 102 int job_msg_id;
103 103 Boolean keep_state;
104 104 Name make_state;
105 105 timestruc_t make_state_before;
106 106 Dependency makefiles_used;
107 107 Name makeflags;
108 108 // Boolean make_state_locked; // Moved to lib/mksh
109 109 Name make_version;
110 110 char mbs_buffer2[(MAXPATHLEN * MB_LEN_MAX)];
111 111 char *mbs_ptr;
112 112 char *mbs_ptr2;
113 113 Boolean depinfo_already_read = false;
114 114 Boolean no_action_was_taken = true; /* true if we've not **
115 115 ** run any command */
116 116
117 117 Boolean no_parallel = false;
118 118 Name no_parallel_name;
119 119 Name not_auto;
120 120 Boolean only_parallel;
121 121 Boolean parallel;
122 122 Name parallel_name;
123 123 Name localhost_name;
124 124 int parallel_process_cnt;
125 125 Percent percent_list;
126 126 Dyntarget dyntarget_list;
127 127 Name plus;
128 128 Name pmake_machinesfile;
129 129 Name precious;
130 130 Name primary_makefile;
131 131 Boolean quest; /* `-q' */
132 132 short read_trace_level;
133 133 Boolean reading_dependencies = false;
134 134 Name recursive_name;
135 135 int recursion_level;
136 136 short report_dependencies_level = 0; /* -P */
137 137 Boolean report_pwd;
138 138 Boolean rewrite_statefile;
139 139 Running running_list;
140 140 char *sccs_dir_path;
141 141 Name sccs_get_name;
142 142 Name sccs_get_posix_name;
143 143 Cmd_line sccs_get_rule;
144 144 Cmd_line sccs_get_org_rule;
145 145 Cmd_line sccs_get_posix_rule;
146 146 Name get_name;
147 147 Cmd_line get_rule;
148 148 Name get_posix_name;
149 149 Cmd_line get_posix_rule;
150 150 Boolean all_precious;
151 151 Boolean silent_all; /* `-s' */
↓ open down ↓ |
151 lines elided |
↑ open up ↑ |
152 152 Boolean report_cwd; /* `-w' */
153 153 Boolean silent; /* `-s' */
154 154 Name silent_name;
155 155 char *stderr_file = NULL;
156 156 char *stdout_file = NULL;
157 157 Boolean stdout_stderr_same;
158 158 Dependency suffixes;
159 159 Name suffixes_name;
160 160 Name sunpro_dependencies;
161 161 Boolean target_variants;
162 - const char *tmpdir = NOCATGETS("/tmp");
163 - const char *temp_file_directory = NOCATGETS(".");
162 + const char *tmpdir = "/tmp";
163 + const char *temp_file_directory = ".";
164 164 Name temp_file_name;
165 165 short temp_file_number;
166 166 time_t timing_start;
167 167 wchar_t *top_level_target;
168 168 Boolean touch; /* `-t' */
169 169 Boolean trace_reader; /* `-D' */
170 170 Boolean build_unconditional; /* `-u' */
171 171 pathpt vroot_path = VROOT_DEFAULT;
172 172 Name wait_name;
173 173 wchar_t wcs_buffer2[MAXPATHLEN];
174 174 wchar_t *wcs_ptr;
175 175 wchar_t *wcs_ptr2;
176 - nl_catd catd;
177 176 long int hostid;
178 177
179 178 /*
180 179 * File table of contents
181 180 */
182 181
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX