35 |
|
|
36 |
|
int nproc = 1; /* number of processes */ |
37 |
|
|
38 |
– |
extern char *formstr(int f); /* string from format */ |
38 |
|
extern int setrtoutput(void); /* set output values */ |
39 |
|
|
40 |
|
int inform = 'a'; /* input format */ |
103 |
|
progname = argv[0] = fixargv0(argv[0]); |
104 |
|
/* feature check only? */ |
105 |
|
strcat(RFeatureList, RTRACE_FEATURES); |
106 |
< |
if (!strcmp(argv[1], "-features")) |
106 |
> |
if (argc > 1 && !strcmp(argv[1], "-features")) |
107 |
|
return feature_status(argc-2, argv+2); |
108 |
|
/* add trace notify function */ |
109 |
|
for (i = 0; addobjnotify[i] != NULL; i++) |
416 |
|
|
417 |
|
void |
418 |
|
wputs( /* warning output function */ |
419 |
< |
char *s |
419 |
> |
const char *s |
420 |
|
) |
421 |
|
{ |
422 |
|
int lasterrno = errno; |
427 |
|
|
428 |
|
void |
429 |
|
eputs( /* put string to stderr */ |
430 |
< |
char *s |
430 |
> |
const char *s |
431 |
|
) |
432 |
|
{ |
433 |
|
static int midline = 0; |