|
Lines 110-124
Link Here
|
| 110 |
int ch, len; |
110 |
int ch, len; |
| 111 |
char *p; |
111 |
char *p; |
| 112 |
char *kernfile; |
112 |
char *kernfile; |
|
|
113 |
struct includepath* ipath; |
| 113 |
int printmachine; |
114 |
int printmachine; |
| 114 |
|
115 |
|
| 115 |
printmachine = 0; |
116 |
printmachine = 0; |
| 116 |
kernfile = NULL; |
117 |
kernfile = NULL; |
| 117 |
while ((ch = getopt(argc, argv, "Cd:gmpVx:")) != -1) |
118 |
SLIST_INIT(&includepath); |
|
|
119 |
while ((ch = getopt(argc, argv, "CI:d:gmpVx:")) != -1) |
| 118 |
switch (ch) { |
120 |
switch (ch) { |
| 119 |
case 'C': |
121 |
case 'C': |
| 120 |
filebased = 1; |
122 |
filebased = 1; |
| 121 |
break; |
123 |
break; |
|
|
124 |
case 'I': |
| 125 |
ipath = (struct includepath *) \ |
| 126 |
calloc(1, sizeof (struct includepath)); |
| 127 |
if (ipath == NULL) |
| 128 |
err(EXIT_FAILURE, "calloc"); |
| 129 |
ipath->path = optarg; |
| 130 |
SLIST_INSERT_HEAD(&includepath, ipath, path_next); |
| 131 |
break; |
| 122 |
case 'm': |
132 |
case 'm': |
| 123 |
printmachine = 1; |
133 |
printmachine = 1; |
| 124 |
break; |
134 |
break; |