Rev 9680 | Rev 9705 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9680 | Rev 9702 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | char *stubfile=NULL; |
34 | char *stubfile=NULL; |
35 | char *winstub=NULL; |
35 | char *winstub=NULL; |
36 | FILE *hout=NULL; |
36 | FILE *hout=NULL; |
37 | const char *namestartupfile="startup.h--"; |
37 | const char *namestartupfile="startup.h--"; |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | char outext[4]="kex"; |
39 | char outext[4] = "com"; |
40 | short extflag=TRUE;//ðàñøèðåíèå ìîæíî ïðèñâîèòü |
40 | short extflag=TRUE;//ðàñøèðåíèå ìîæíî ïðèñâîèòü |
41 | //int scrsize; |
41 | //int scrsize; |
42 | unsigned char gwarning=FALSE; |
42 | unsigned char gwarning=FALSE; |
43 | unsigned char sobj=FALSE; |
43 | unsigned char sobj=FALSE; |
Line 299... | Line 299... | ||
299 | 299 | ||
300 | rawfilename=rawext=NULL; |
300 | rawfilename=rawext=NULL; |
Line 301... | Line 301... | ||
301 | LoadIni((char *)"c--.ini"); |
301 | LoadIni((char *)"c--.ini"); |
302 | 302 | ||
303 | for(count=1;count |
303 | for(count=1;count |
304 | //if(argv[count][0]=='/'||argv[count][0]=='-'){ |
304 | if(argv[count][0]=='/'||argv[count][0]=='-'){ |
305 | if(argv[count][0]=='-'){ |
305 | //if(argv[count][0]=='-'){ |
306 | if(SelectComand(argv[count]+1,&count)==c_end) BadCommandLine(argv[count]); |
306 | if(SelectComand(argv[count]+1,&count)==c_end) BadCommandLine(argv[count]); |
307 | } |
307 | } |
308 | else{ |
308 | else{ |
Line 1719... | Line 1719... | ||
1719 | 1719 | ||
1720 | FILE *CreateOutPut(char *ext,char *mode) |
1720 | FILE *CreateOutPut(char *ext,char *mode) |
1721 | { |
1721 | { |
1722 | char buf[256]; |
1722 | char buf[256]; |
- | 1723 | FILE *diskout; |
|
1723 | FILE *diskout; |
1724 | if(!ext && strlen(ext)) { |
- | 1725 | sprintf(buf,"%s.%s",rawfilename,ext); |
|
- | 1726 | } else { |
|
- | 1727 | strcpy(buf, rawfilename); |
|
- | 1728 | } |
|
1724 | sprintf(buf,"%s.%s",rawfilename,ext); |
1729 | |
1725 | if((diskout=fopen(buf,mode))==NULL){ |
1730 | if((diskout=fopen(buf,mode))==NULL){ |
1726 | ErrOpenFile(buf); |
1731 | ErrOpenFile(buf); |
1727 | exit(e_notcreateoutput); |
1732 | exit(e_notcreateoutput); |
1728 | } |
1733 | } |