version 1.5, 2017/08/11 19:34:24 |
version 1.6, 2017/08/11 20:49:26 |
|
|
|
|
setlocale(LC_ALL, ""); |
setlocale(LC_ALL, ""); |
|
|
|
if (pledge("stdio rpath wpath cpath", NULL) == -1) |
|
err(1, "pledge"); |
|
|
while ((ch = getopt(argc, argv, "dl:o:")) != -1) { |
while ((ch = getopt(argc, argv, "dl:o:")) != -1) { |
switch (ch) { |
switch (ch) { |
case 'd': |
case 'd': |
|
|
if (error != 0) |
if (error != 0) |
return error; |
return error; |
|
|
|
if (outfile != NULL) { |
|
if (pledge("stdio wpath cpath", NULL) == -1) |
|
err(1, "pledge"); |
|
|
|
error = generate(outfile, label, 1); |
|
if (error != 0) |
|
return error; |
|
} |
|
|
if (dump) { |
if (dump) { |
|
if (pledge("stdio", NULL) == -1) |
|
err(1, "pledge"); |
|
|
int fidx = -1, oidx = -1; |
int fidx = -1, oidx = -1; |
|
|
TAILQ_FOREACH(it, &iobjq, it_symb) |
TAILQ_FOREACH(it, &iobjq, it_symb) |
|
|
} |
} |
|
|
return 0; |
return 0; |
} |
|
|
|
if (outfile != NULL) { |
|
error = generate(outfile, label, 1); |
|
if (error != 0) |
|
return error; |
|
} |
} |
|
|
return 0; |
return 0; |