The TBalias statement in FB allows old Toolbox names to be kept and applied to new functions when introduced by Apple. The idea must have been to save programmers a minute or two updating function names, a task otherwise tiresomely required every few years. The TBalias feature is now Considered Harmful and will not be supported by FBtoC. You may have already upgraded your project to use the correct (Apple's official) Toolbox names. If not, be prepared for FBtoC error messages indicating dodgy names:
... Unknown statement in line 6 of untitled 6: RmveResource( resH ) ^
The simple, recommended, and only, workaround is to replace each occurrence in your code of the fossil RmveResource by RemoveResource.
Some Toolbox functions that were commonly aliased in old FB code are listed below:
FB, FBtoC and C | FB-only alias |
GetIntlResource | IUGetIntl |
MemError | MemErr |
DisposeHandle | DisposHandle |
DisposePtr | DisposPtr |
AppendResMenu | AddResMenu |
GetMenuHandle | GetMHandle |
CountMenuItems | CountMItems |
EnableMenuItem | EnableItem |
DisableMenuItem | DisableItem |
GetControlValue | GetCtlValue |
GetControlReference | GetCRefcon |
PBReadSync | PBRead |
PBCatMoveSync | CatMove |
PBHCreateSync | HCreate |
PBFlushVolSync | FlushVol |
AEPutParamDesc | AEPutKeyDesc |
SecondsToDate | Secs2Date |
LongSecondsToDate | LongSecs2Date |
RemoveResource | RmveResource |