Merge pull request #189 from YashasSamaga/i159-fix
fixes deletion of constants passed a compiler args during parse
This commit is contained in:
commit
8b8f8adbb5
@ -1209,7 +1209,7 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
} /* if */
|
} /* if */
|
||||||
strlcpy(str,argv[arg],i+1); /* str holds symbol name */
|
strlcpy(str,argv[arg],i+1); /* str holds symbol name */
|
||||||
i=atoi(ptr+1);
|
i=atoi(ptr+1);
|
||||||
add_constant(str,i,sGLOBAL,0);
|
add_builtin_constant(str,i,sGLOBAL,0);
|
||||||
} else {
|
} else {
|
||||||
strlcpy(str,argv[arg],sizeof(str)-2); /* -2 because default extension is ".p" */
|
strlcpy(str,argv[arg],sizeof(str)-2); /* -2 because default extension is ".p" */
|
||||||
set_extension(str,".p",FALSE);
|
set_extension(str,".p",FALSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user