show only .0 files in get file dialog */
| 915 | |
| 916 | /* show only <pid-plname>.0 files in get file dialog */ |
| 917 | pascal Boolean |
| 918 | basenameFileFilter(ParmBlkPtr pPB) |
| 919 | { |
| 920 | unsigned char *pC; |
| 921 | |
| 922 | if (!(pC = (unsigned char *) pPB->fileParam.ioNamePtr)) |
| 923 | return true; |
| 924 | |
| 925 | if ((*pC < 4) || (*pC > 28)) /* save/ 1name .0 */ |
| 926 | return true; |
| 927 | |
| 928 | if ((pC[*pC - 1] == '.') && (pC[*pC] == '0')) /* bingo! */ |
| 929 | return false; |
| 930 | |
| 931 | return true; |
| 932 | } |
| 933 | |
| 934 | static void |
| 935 | beginRecover() |
nothing calls this directly
no outgoing calls
no test coverage detected