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) | |
228 "Compiled on " __DATE__ ".", | |
229 #endif | |
230 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", | 227 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", |
231 "Run yasm --license for licensing overview and summary." | 228 "Run yasm --license for licensing overview and summary." |
232 }; | 229 }; |
233 | 230 |
234 /* help messages */ | 231 /* help messages */ |
235 /*@observer@*/ static const char *help_head = N_( | 232 /*@observer@*/ static const char *help_head = N_( |
236 "usage: tasm [option]* source [,object] [,listing] [,xref] \n" | 233 "usage: tasm [option]* source [,object] [,listing] [,xref] \n" |
237 "Options:\n"); | 234 "Options:\n"); |
238 /*@observer@*/ static const char *help_tail = N_( | 235 /*@observer@*/ static const char *help_tail = N_( |
239 "\n" | 236 "\n" |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 } | 991 } |
995 | 992 |
996 static void | 993 static void |
997 print_yasm_warning(const char *filename, unsigned long line, const char *msg) | 994 print_yasm_warning(const char *filename, unsigned long line, const char *msg) |
998 { | 995 { |
999 if (line) | 996 if (line) |
1000 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg)
; | 997 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg)
; |
1001 else | 998 else |
1002 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg); | 999 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg); |
1003 } | 1000 } |
OLD | NEW |