Rev 441 | Rev 444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 441 | Rev 442 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include "compat_string.h" |
32 | #include "compat_string.h" |
33 | 33 | ||
34 | 34 | ||
35 | Boolean fileHasExtension(StandardFileReply* sfr, const char* extension) { |
35 | Boolean fileHasExtension(StandardFileReply* sfr, const char* extension) { |
36 | char name[MAX_PATH + 1]; |
36 | char name[MAX_PATH + 1]; |
37 | // TODO: strcasecmp not defined in OpenWatcom 2.0 ? |
- | |
38 | return sfr->nFileExtension && !strcasecmp(myp2cstrcpy(name, sfr->sfFile.name) + sfr->nFileExtension - 1, extension); |
37 | return sfr->nFileExtension && !strcasecmp(myp2cstrcpy(name, sfr->sfFile.name) + sfr->nFileExtension - 1, extension); |
39 | } |
38 | } |
40 | 39 | ||
41 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
40 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
42 | OSType types[],int ntypes,const char *lpstrFilter,HWND hwndOwner){ |
41 | OSType types[],int ntypes,const char *lpstrFilter,HWND hwndOwner){ |