- Timestamp:
- Oct 25, 2014, 7:11:49 PM (11 years ago)
- Location:
- branches/libc-0.6/src/emx/src/emxomf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/src/emxomf/emxomf.c
r3919 r3920 197 197 of the input file or a library name plus module name: 198 198 library(module). */ 199 staticconst char *error_fname;199 const char *error_fname; 200 200 201 201 /* The output directory. This is set by the -O option. */ … … 405 405 static int unknown_stabs = FALSE; 406 406 407 /* Supress certain warnings if this variable is TRUE (-q option). */408 static int quiet = FALSE;407 /* Warning level (-q & -v options). */ 408 int warning_level = 1; 409 409 410 410 /* The libreq_head variable contains a pointer to the head of the list … … 603 603 { 604 604 s_pszComplainedFor = error_fname; 605 warning ("Input file '%s' has more HLL debug types than we can index in PUBDEF and EXTDEF records.", error_fname); 605 if (warning_level >= 1) 606 warning("Input file '%s' has more HLL debug types than we can index in PUBDEF and EXTDEF records.", 607 error_fname); 606 608 } 607 609 hll_type = 0; … … 1846 1848 { 1847 1849 ok = FALSE; 1848 if ( !quiet)1850 if (warning_level > 0) 1849 1851 warning ("Internal PC-relative relocation ignored"); 1850 1852 } … … 4240 4242 break; 4241 4243 case 'q': 4242 quiet = TRUE;4244 warning_level--; 4243 4245 break; 4244 4246 case 'O': … … 4260 4262 unknown_stabs = TRUE; 4261 4263 break; 4264 case 'v': 4265 warning_level++; 4266 break; 4262 4267 case 'x': 4263 4268 opt_x = TRUE; -
branches/libc-0.6/src/emx/src/emxomf/emxomf.h
r806 r3920 49 49 extern int *tt_boundary; 50 50 extern int hll_version; 51 extern const char *error_fname; 52 extern int warning_level; -
branches/libc-0.6/src/emx/src/emxomf/stabshll.c
r3067 r3920 403 403 va_list args; 404 404 405 va_start (args, pszFormat); 406 fprintf (stderr, "emxomf warning: "); 407 vfprintf (stderr, pszFormat, args); 408 va_end (args); 409 fputc ('\n', stderr); 410 411 412 if (parse_ptr && parse_start && parse_ptr >= parse_start) 413 { 414 if (parse_pindex && *parse_pindex >= 0 && *parse_pindex < sym_count) 415 fprintf (stderr, "emxomf info: parsing sym no.%d type=%d at char '%c' in position %d:\n%s\n", 416 *parse_pindex, sym_ptr[*parse_pindex].n_type, 417 *parse_ptr, parse_ptr - parse_start, parse_start); 418 else 419 fprintf (stderr, "emxomf info: parsing '%c' at position %d:\n%s\n", 420 *parse_ptr, parse_ptr - parse_start, parse_start); 405 if (warning_level < 2) 406 { 407 static const char *s_pszComplainedFor = NULL; 408 if (warning_level == 1 && s_pszComplainedFor == error_fname) 409 { 410 s_pszComplainedFor = error_fname; 411 fprintf (stderr, "emxomf warning: debug info conversion issues for '%s'. (-v for details.)\n", error_fname); 412 } 413 } 414 else 415 { 416 va_start(args, pszFormat); 417 fprintf (stderr, "emxomf warning: "); 418 vfprintf (stderr, pszFormat, args); 419 va_end (args); 420 fputc ('\n', stderr); 421 422 if (parse_ptr && parse_start && parse_ptr >= parse_start) 423 { 424 if (parse_pindex && *parse_pindex >= 0 && *parse_pindex < sym_count) 425 fprintf (stderr, "emxomf info: parsing sym no.%d type=%d at char '%c' in position %d:\n%s\n", 426 *parse_pindex, sym_ptr[*parse_pindex].n_type, 427 *parse_ptr, parse_ptr - parse_start, parse_start); 428 else 429 fprintf (stderr, "emxomf info: parsing '%c' at position %d:\n%s\n", 430 *parse_ptr, parse_ptr - parse_start, parse_start); 431 } 421 432 } 422 433 }
Note:
See TracChangeset
for help on using the changeset viewer.