| 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) |
| 216 "Compiled on " __DATE__ ".", | 217 "Compiled on " __DATE__ ".", |
| 218 #endif |
| 217 "Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.", | 219 "Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.", |
| 218 "Run yasm --license for licensing overview and summary." | 220 "Run yasm --license for licensing overview and summary." |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 /* help messages */ | 223 /* help messages */ |
| 222 /*@observer@*/ static const char *help_head = N_( | 224 /*@observer@*/ static const char *help_head = N_( |
| 223 "usage: yasm [option]* file\n" | 225 "usage: yasm [option]* file\n" |
| 224 "Options:\n"); | 226 "Options:\n"); |
| 225 /*@observer@*/ static const char *help_tail = N_( | 227 /*@observer@*/ static const char *help_tail = N_( |
| 226 "\n" | 228 "\n" |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 static void | 1387 static void |
| 1386 print_yasm_warning(const char *filename, unsigned long line, const char *msg) | 1388 print_yasm_warning(const char *filename, unsigned long line, const char *msg) |
| 1387 { | 1389 { |
| 1388 if (line) | 1390 if (line) |
| 1389 fprintf(errfile, fmt[ewmsg_style], filename, line, _("warning: "), | 1391 fprintf(errfile, fmt[ewmsg_style], filename, line, _("warning: "), |
| 1390 msg); | 1392 msg); |
| 1391 else | 1393 else |
| 1392 fprintf(errfile, fmt_noline[ewmsg_style], filename, _("warning: "), | 1394 fprintf(errfile, fmt_noline[ewmsg_style], filename, _("warning: "), |
| 1393 msg); | 1395 msg); |
| 1394 } | 1396 } |
| OLD | NEW |