OLD | NEW |
1 /* | 1 /* |
2 * Program entry point, command line parsing | 2 * Program entry point, command line parsing |
3 * | 3 * |
4 * Copyright (C) 2001-2007 Peter Johnson | 4 * Copyright (C) 2001-2007 Peter Johnson |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 N_("append argument to name of all external symbols"), N_("suffix") }, | 206 N_("append argument to name of all external symbols"), N_("suffix") }, |
207 #ifdef CMAKE_BUILD | 207 #ifdef CMAKE_BUILD |
208 { 'N', "plugin", 1, opt_plugin_handler, 0, | 208 { 'N', "plugin", 1, opt_plugin_handler, 0, |
209 N_("load plugin module"), N_("plugin") }, | 209 N_("load plugin module"), N_("plugin") }, |
210 #endif | 210 #endif |
211 }; | 211 }; |
212 | 212 |
213 /* version message */ | 213 /* version message */ |
214 /*@observer@*/ static const char *version_msg[] = { | 214 /*@observer@*/ static const char *version_msg[] = { |
215 PACKAGE_STRING, | 215 PACKAGE_STRING, |
216 #if !defined(DONT_EMBED_BUILD_METADATA) || defined(OFFICIAL_BUILD) | |
217 "Compiled on " __DATE__ ".", | |
218 #endif | |
219 "Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.", | 216 "Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.", |
220 "Run yasm --license for licensing overview and summary." | 217 "Run yasm --license for licensing overview and summary." |
221 }; | 218 }; |
222 | 219 |
223 /* help messages */ | 220 /* help messages */ |
224 /*@observer@*/ static const char *help_head = N_( | 221 /*@observer@*/ static const char *help_head = N_( |
225 "usage: yasm [option]* file\n" | 222 "usage: yasm [option]* file\n" |
226 "Options:\n"); | 223 "Options:\n"); |
227 /*@observer@*/ static const char *help_tail = N_( | 224 /*@observer@*/ static const char *help_tail = N_( |
228 "\n" | 225 "\n" |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 static void | 1384 static void |
1388 print_yasm_warning(const char *filename, unsigned long line, const char *msg) | 1385 print_yasm_warning(const char *filename, unsigned long line, const char *msg) |
1389 { | 1386 { |
1390 if (line) | 1387 if (line) |
1391 fprintf(errfile, fmt[ewmsg_style], filename, line, _("warning: "), | 1388 fprintf(errfile, fmt[ewmsg_style], filename, line, _("warning: "), |
1392 msg); | 1389 msg); |
1393 else | 1390 else |
1394 fprintf(errfile, fmt_noline[ewmsg_style], filename, _("warning: "), | 1391 fprintf(errfile, fmt_noline[ewmsg_style], filename, _("warning: "), |
1395 msg); | 1392 msg); |
1396 } | 1393 } |
OLD | NEW |