Removed __NO_GETOPT, since the getopt stuff is fixed now.
This commit is contained in:
@@ -81,7 +81,6 @@ int main (int argc, char *argv[]) {
|
|||||||
char *fvar;
|
char *fvar;
|
||||||
|
|
||||||
UnProtectMemory();
|
UnProtectMemory();
|
||||||
#ifndef __NO_GETOPT
|
|
||||||
while((opt = getopt(argc, argv, "01:2:789ac:d:ef:g:hijk:lmno:p:r:s:tuv:wyz?")) != -1) {
|
while((opt = getopt(argc, argv, "01:2:789ac:d:ef:g:hijk:lmno:p:r:s:tuv:wyz?")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
/* Palette 0 disable */
|
/* Palette 0 disable */
|
||||||
@@ -331,18 +330,13 @@ int main (int argc, char *argv[]) {
|
|||||||
if (optopt == '?')
|
if (optopt == '?')
|
||||||
{
|
{
|
||||||
if (argv[optind] != NULL)
|
if (argv[optind] != NULL)
|
||||||
#else
|
|
||||||
optind = 1;
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
fvar=&fname;
|
fvar=&fname;
|
||||||
fvar[0] = strlen(argv[optind]);
|
fvar[0] = strlen(argv[optind]);
|
||||||
strncpy(&fvar[1], argv[optind],127);
|
strncpy(&fvar[1], argv[optind],127);
|
||||||
makeextension();
|
makeextension();
|
||||||
}
|
}
|
||||||
#ifndef __NO_GETOPT
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
zstart();
|
zstart();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user