Rev 6618 | Rev 7626 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6618 | Rev 7545 | ||
---|---|---|---|
Line 176... | Line 176... | ||
176 | { |
176 | { |
177 | int hold; |
177 | int hold; |
Line 178... | Line 178... | ||
178 | 178 | ||
179 | for(int i=0;i<=numfindpath;i++){ |
179 | for(int i=0;i<=numfindpath;i++){ |
- | 180 | sprintf((char *)string2,"%s%s",findpath[(firstflag==0?i:numfindpath-i)],filename); |
|
- | 181 | #ifndef _WIN32_ |
|
- | 182 | for(char* p=(char *)string2; *p; ++p) if(*p=='\\') *p='/'; |
|
180 | sprintf((char *)string2,"%s%s",findpath[(firstflag==0?i:numfindpath-i)],filename); |
183 | #endif |
181 | if((hold=loadinputfile((char *)string2))!=-2)break; |
184 | if((hold=loadinputfile((char *)string2))!=-2)break; |
182 | if(firstflag==2||(firstflag==0&&(i+1)==numfindpath))break; |
185 | if(firstflag==2||(firstflag==0&&(i+1)==numfindpath))break; |
183 | } |
186 | } |
184 | if(hold==-2){ |
187 | if(hold==-2){ |
Line 8598... | Line 8601... | ||
8598 | long filesize; |
8601 | long filesize; |
8599 | if(tok!=tk_string){ |
8602 | if(tok!=tk_string){ |
8600 | stringexpected(); |
8603 | stringexpected(); |
8601 | return(0); |
8604 | return(0); |
8602 | } |
8605 | } |
- | 8606 | #ifndef _WIN32_ |
|
- | 8607 | for(char* p=(char *)string3; *p; ++p) if(*p=='\\') *p='/'; |
|
- | 8608 | #endif |
|
8603 | filehandle=open((char *)string3,O_BINARY|O_RDONLY); |
8609 | filehandle=open((char *)string3,O_BINARY|O_RDONLY); |
8604 | if(filehandle==-1){ |
8610 | if(filehandle==-1){ |
8605 | unableopenfile((char *)string3); |
8611 | unableopenfile((char *)string3); |
8606 | return(0); |
8612 | return(0); |
8607 | } |
8613 | } |