OLD | NEW |
1 /* | 1 /* |
2 * Program entry point, command line parsing | 2 * Program entry point, command line parsing |
3 * | 3 * |
4 * Copyright (C) 2001-2008 Peter Johnson | 4 * Copyright (C) 2001-2008 Peter Johnson |
5 * Copyright (C) 2007-2008 Samuel Thibault | 5 * Copyright (C) 2007-2008 Samuel Thibault |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 { "z", 0, opt_ignore, 0, | 217 { "z", 0, opt_ignore, 0, |
218 N_("Display source line with error message (ignored)"), NULL }, | 218 N_("Display source line with error message (ignored)"), NULL }, |
219 | 219 |
220 { "b", 0, opt_exe_handler, 0, | 220 { "b", 0, opt_exe_handler, 0, |
221 N_("Build a (very) basic .exe file"), NULL }, | 221 N_("Build a (very) basic .exe file"), NULL }, |
222 }; | 222 }; |
223 | 223 |
224 /* version message */ | 224 /* version message */ |
225 /*@observer@*/ static const char *version_msg[] = { | 225 /*@observer@*/ static const char *version_msg[] = { |
226 PACKAGE_STRING, | 226 PACKAGE_STRING, |
| 227 #if !defined(DONT_EMBED_BUILD_METADATA) || defined(OFFICIAL_BUILD) |
227 "Compiled on " __DATE__ ".", | 228 "Compiled on " __DATE__ ".", |
| 229 #endif |
228 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", | 230 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", |
229 "Run yasm --license for licensing overview and summary." | 231 "Run yasm --license for licensing overview and summary." |
230 }; | 232 }; |
231 | 233 |
232 /* help messages */ | 234 /* help messages */ |
233 /*@observer@*/ static const char *help_head = N_( | 235 /*@observer@*/ static const char *help_head = N_( |
234 "usage: tasm [option]* source [,object] [,listing] [,xref] \n" | 236 "usage: tasm [option]* source [,object] [,listing] [,xref] \n" |
235 "Options:\n"); | 237 "Options:\n"); |
236 /*@observer@*/ static const char *help_tail = N_( | 238 /*@observer@*/ static const char *help_tail = N_( |
237 "\n" | 239 "\n" |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 } | 994 } |
993 | 995 |
994 static void | 996 static void |
995 print_yasm_warning(const char *filename, unsigned long line, const char *msg) | 997 print_yasm_warning(const char *filename, unsigned long line, const char *msg) |
996 { | 998 { |
997 if (line) | 999 if (line) |
998 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg)
; | 1000 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg)
; |
999 else | 1001 else |
1000 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg); | 1002 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg); |
1001 } | 1003 } |
OLD | NEW |