- removed bad makefiles;
 - fixed output filename bug;
 - restored the processing of command line switches in windows style.

git-svn-id: svn://kolibrios.org@9702 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2022-02-08 17:16:25 +00:00
parent b22d5729d4
commit a6ec339a43
9 changed files with 34 additions and 573 deletions

View File

@@ -36,7 +36,7 @@ char *winstub=NULL;
FILE *hout=NULL;
const char *namestartupfile="startup.h--";
char outext[4]="kex";
char outext[4] = "com";
short extflag=TRUE;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//int scrsize;
unsigned char gwarning=FALSE;
@@ -226,7 +226,7 @@ void CheckUndefClassProc();
void ParseObjCommand(int cmd);
#ifdef _KOS_
extern "C"{
extern "C" {
void con_set_title(char* title);
}
#endif
@@ -301,8 +301,8 @@ unsigned char pari=FALSE;
LoadIni((char *)"c--.ini");
for(count=1;count<argc;count++){ //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//if(argv[count][0]=='/'||argv[count][0]=='-'){
if(argv[count][0]=='-'){
if(argv[count][0]=='/'||argv[count][0]=='-'){
//if(argv[count][0]=='-'){
if(SelectComand(argv[count]+1,&count)==c_end) BadCommandLine(argv[count]);
}
else{
@@ -1721,7 +1721,12 @@ FILE *CreateOutPut(char *ext,char *mode)
{
char buf[256];
FILE *diskout;
sprintf(buf,"%s.%s",rawfilename,ext);
if(!ext && strlen(ext)) {
sprintf(buf,"%s.%s",rawfilename,ext);
} else {
strcpy(buf, rawfilename);
}
if((diskout=fopen(buf,mode))==NULL){
ErrOpenFile(buf);
exit(e_notcreateoutput);