Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: third_party/yasm/patched-yasm/frontends/tasm/tasm.c

Issue 11364046: Update Yasm to 1.2.0 (Yasm Part 1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
15 * 15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS'' 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS''
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 #include <util.h> 28 #include <util.h>
29 /*@unused@*/ RCSID("$Id: tasm.c 1523 2006-05-06 16:11:56Z peter $");
30 29
31 #include <ctype.h> 30 #include <ctype.h>
32 #include <libyasm/compat-queue.h> 31 #include <libyasm/compat-queue.h>
33 #include <libyasm/bitvect.h> 32 #include <libyasm/bitvect.h>
34 #include <libyasm.h> 33 #include <libyasm.h>
35 34
36 #ifdef HAVE_LIBGEN_H 35 #ifdef HAVE_LIBGEN_H
37 #include <libgen.h> 36 #include <libgen.h>
38 #endif 37 #endif
39 38
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 N_("No debug info"), NULL }, 216 N_("No debug info"), NULL },
218 { "z", 0, opt_ignore, 0, 217 { "z", 0, opt_ignore, 0,
219 N_("Display source line with error message (ignored)"), NULL }, 218 N_("Display source line with error message (ignored)"), NULL },
220 219
221 { "b", 0, opt_exe_handler, 0, 220 { "b", 0, opt_exe_handler, 0,
222 N_("Build a (very) basic .exe file"), NULL }, 221 N_("Build a (very) basic .exe file"), NULL },
223 }; 222 };
224 223
225 /* version message */ 224 /* version message */
226 /*@observer@*/ static const char *version_msg[] = { 225 /*@observer@*/ static const char *version_msg[] = {
227 PACKAGE_NAME " " PACKAGE_INTVER "." PACKAGE_BUILD, 226 PACKAGE_STRING,
228 "Compiled on " __DATE__ ".", 227 "Compiled on " __DATE__ ".",
229 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.", 228 "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.",
230 "Run yasm --license for licensing overview and summary." 229 "Run yasm --license for licensing overview and summary."
231 }; 230 };
232 231
233 /* help messages */ 232 /* help messages */
234 /*@observer@*/ static const char *help_head = N_( 233 /*@observer@*/ static const char *help_head = N_(
235 "usage: tasm [option]* source [,object] [,listing] [,xref] \n" 234 "usage: tasm [option]* source [,object] [,listing] [,xref] \n"
236 "Options:\n"); 235 "Options:\n");
237 /*@observer@*/ static const char *help_tail = N_( 236 /*@observer@*/ static const char *help_tail = N_(
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 } 992 }
994 993
995 static void 994 static void
996 print_yasm_warning(const char *filename, unsigned long line, const char *msg) 995 print_yasm_warning(const char *filename, unsigned long line, const char *msg)
997 { 996 {
998 if (line) 997 if (line)
999 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg) ; 998 fprintf(errfile, "*%s* %s(%lu) %s\n", _("Warning"), filename, line, msg) ;
1000 else 999 else
1001 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg); 1000 fprintf(errfile, "*%s* %s %s\n", _("Warning"), filename, msg);
1002 } 1001 }
OLDNEW
« no previous file with comments | « third_party/yasm/README.chromium ('k') | third_party/yasm/patched-yasm/frontends/tasm/tasm-options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698