1 |
– |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Filter MGF stream, removing entities that won't be understood |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
+ |
#include <stdlib.h> |
10 |
|
#include "parser.h" |
11 |
|
|
12 |
|
/* Number of entities for major versions */ |
41 |
|
} |
42 |
|
if (isint(argv[1])) { |
43 |
|
i = atoi(argv[1]); |
44 |
< |
if (i < 1 | i > MG_VMAJOR) { |
44 |
> |
if ((i < 1) | (i > MG_VMAJOR)) { |
45 |
|
fprintf(stderr, "%s: bad version number: %d\n", |
46 |
|
argv[0], i); |
47 |
|
exit(1); |
48 |
|
} |
49 |
|
for (en = nentlist[i-1]; en--; ) |
50 |
|
mg_ehand[en] = put_entity; |
51 |
+ |
mg_ehand[MG_E_INCLUDE] = NULL; /* expand include's */ |
52 |
|
} else |
53 |
|
for (cp1 = cp2 = argv[1]; *cp1; cp1 = cp2) { |
54 |
|
while (*cp2) { |