home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / NewRoutineNames.dict < prev   
Encoding:
Text File  |  1994-11-14  |  7.7 KB  |  305 lines  |  [TEXT/MPS ]

  1. #
  2. #     File:        NewRoutineNames.dict
  3. #     Copyright:    © 1984-1994 by Apple Computer, Inc.
  4. #                 All rights reserved.
  5. #     Version:    Universal Interfaces 2.0a3  Tuesday, November 10, 1994
  6. #     Bugs?:        If you find a problem with this file, send the file and version
  7. #                 information (from above) and the problem description to:
  8. #                     Internet:    apple.bugs@applelink.apple.com
  9. #                     AppleLink:    APPLE.BUGS
  10. #
  11. #    Purpose:    This file was created to make it easier to update source code
  12. #                to use the new routine names.  PowerPC application bind to 
  13. #                system calls by name.  Therefore, any system routine names
  14. #                cannot change, or shipping applications would break. This was
  15. #                not a problem on classic 68K applications because system routine
  16. #                names were compiled out, only A-Traps were in the shipping app.
  17. #                Apple took the shift to PowerPC as an opportunity to define
  18. #                better names for system routines.
  19. #
  20. #     Usage:         You need to run each file in your source through the Canon tool with
  21. #                this file.  Below is an example. Be sure to change the file extension
  22. #                if your sources source file names end in something other than ".c"
  23. #
  24. #    Note:        1)The Canon tool does simple text replacement.  It has no concept of
  25. #                grammar, so it might do a replacement that is not necessary.  The
  26. #                example below shows all the changes the tool makes.  You should
  27. #                review these changes manually.
  28. #                2) The sample script below makes changes to your source files, and  
  29. #                generates a log (a diff to stdout) of those changes.  You many wish 
  30. #                to make a backup of your sources before running the script.
  31. #  
  32. #     Set Sources ""            # set the variable Sources to the path of the sources.  (Ex.  Set Sources "Hard Disk:Sources:")
  33. #    Set    NewRoutineNames    ""    # set the variable to be the full path of this file     (Ex.  Set NewRoutineNames "Hard Disk:NewRoutineNames.dict")
  34. #    Set Exit 0
  35. #    For i in `Files -f -r "{Sources}"≈.c`
  36. #         If `Exists -f "{i}"`
  37. #            Canon -s "{NewRoutineNames}" "{i}" > "{i}.can"
  38. #            Compare "{i}" "{i}.can"
  39. #            Rename -y "{i}.can" "{i}"
  40. #        End
  41. #    End
  42. #
  43.  
  44.  
  45. #################
  46. # AppleEvents
  47. #################
  48. AEPutKeyPtr        AEPutParamPtr
  49. AEPutKeyDesc    AEPutParamDesc
  50. AEGetKeyPtr        AEGetParamPtr
  51. AEGetKeyDesc    AEGetParamDesc
  52. AESizeOfKeyDesc    AESizeOfParam
  53. AEDeleteKeyDesc    AEDeleteParam
  54.  
  55.  
  56. #################
  57. # CodeFragments (types and constants)
  58. #################
  59. ConnectionID                    CFragConnectionID
  60. LoadFlags                        CFragLoadOptions
  61. SymClass                        CFragSymbolClass
  62. MemFragment                        CFragOldMemoryLocator
  63. DiskFragment                    CFragHFSDiskFlatLocator
  64. SegmentedFragment                CFragHFSSegmentedLocator
  65. FragmentLocator                    CFragHFSLocator    
  66. FragmentLocatorPtr                CFragHFSLocatorPtr
  67. InitBlock                        CFragInitBlock
  68. InitBlockPtr                    CFragInitBlockPtr
  69. ConnectionInitializationRoutine    CFragInitFunction
  70. ConnectionTerminationRoutine     CFragTermRoutine
  71. kPowerPCArch                    kPowerPCCFragArch
  72. kMotorola68KArch                kMotorola68KCFragArch
  73. kAnyArchType                    kAnyCFragArch
  74. kLoadLib                        kLoadCFrag
  75. kFindLib                        kFindCFrag
  76. kLoadNewCopy                    kNewCFragCopy
  77. kUseInPlace                        kInplaceCFrag
  78. kCodeSym                        kCodeCFragSymbol
  79. kDataSym                        kDataCFragSymbol
  80. kTVectSym                        kTVectorCFragSymbol
  81. kTOCSym                            kTOCCFragSymbol
  82. kGlueSym                        kGlueCFragSymbol
  83. kInMem                            kMemoryCFragLocator
  84. kOnDiskFlat                        kDataForkCFragLocator
  85. kOnDiskSegmented                kResourceCFragLocator
  86. kIsLib                            kImportLibraryCFrag
  87. kIsApp                            kApplicationCFrag
  88. kIsDropIn                        kDropInAdditionCFrag
  89. kFullLib                        kIsCompleteCFrag
  90. kUpdateLib                        kFirstCFragUpdate
  91. kCFMRsrcType                    kCFragResourceType
  92. kCFMRsrcID                        kCFragResourceID
  93. kSHLBFileType                    kCFragLibraryFileType
  94. kUnresolvedSymbolAddress        kUnresolvedCFragSymbolAddress
  95.  
  96.  
  97. #################
  98. # Controls
  99. #################
  100. SetCTitle        SetControlTitle
  101. GetCTitle        GetControlTitle
  102. UpdtControl        UpdateControls
  103. SetCtlValue        SetControlValue
  104. GetCtlValue        GetControlValue
  105. SetCtlMin        SetControlMinimum
  106. GetCtlMin        GetControlMinimum
  107. SetCtlMax        SetControlMaximum
  108. GetCtlMax        GetControlMaximum
  109. GetAuxCtl        GetAuxiliaryControlRecord
  110. SetCRefCon        SetControlReference    
  111. GetCRefCon        GetControlReference
  112. SetCtlAction    SetControlAction
  113. GetCtlAction    GetControlAction
  114. SetCtlColor        SetControlColor
  115. GetCVariant        GetControlVariant
  116.  
  117.  
  118. #################
  119. # CTBUtilities
  120. #################
  121. NuLookup        StandardNBP
  122. NuPLookup        CustomNBP
  123.  
  124.  
  125. #################
  126. # Dialogs
  127. #################
  128. DisposDialog    DisposeDialog
  129. UpdtDialog        UpdateDialog
  130. GetDItem        GetDialogItem
  131. SetDItem        SetDialogItem
  132. HideDItem        HideDialogItem
  133. ShowDItem        ShowDialogItem
  134. SelIText        SelectDialogItemText
  135. GetIText        GetDialogItemText
  136. SetIText        SetDialogItemText
  137. FindDItem        FindDialogItem
  138. NewCDialog        NewColorDialog
  139. GetAlrtStage    GetAlertStage
  140. ResetAlrtStage    ResetAlertStage
  141. DlgCut            DialogCut
  142. DlgCopy            DialogCopy
  143. DlgPaste        DialogPaste
  144. DlgDelete        DialogDelete
  145. SetDAFont        SetDialogFont
  146.  
  147.  
  148. #################
  149. # Events
  150. #################
  151. KeyTrans        KeyTranslate
  152.  
  153.  
  154. #################
  155. # Lists
  156. #################
  157. LDoDraw            LSetDrawingMode
  158. LFind            LGetCellDataLocation
  159.  
  160.  
  161. #################
  162. # Memory
  163. #################
  164. ApplicZone        ApplicationZone
  165. MFTempNewHandle    TempNewHandle
  166. MFMaxMem        TempMaxMem
  167. MFFreeMem        TempFreeMem
  168. MFTempHLock        TempHLock
  169. MFTempHUnlock    TempHUnlock
  170. MFTempDisposHandle    TempDisposeHandle
  171. MFTopMem        TempTopMem
  172. ResrvMem        ReserveMem
  173. DisposPtr        DisposePtr
  174. DisposHandle    DisposeHandle
  175. ReallocHandle    ReallocateHandle
  176.  
  177.  
  178. #################
  179. # Menus
  180. #################
  181. AddResMenu        AppendResMenu
  182. InsMenuItem        InsertMenuItem
  183. DelMenuItem        DeleteMenuItem
  184. SetItem            SetMenuItemText
  185. GetItem            GetMenuItemText
  186. GetMHandle        GetMenuHandle
  187. DelMCEntries    DeleteMCEntries
  188. DispMCInfo        DisposeMCInfo
  189.  
  190.  
  191. #################
  192. # OSUtils
  193. #################
  194. LongDate2Secs    LongDateToSeconds
  195. LongSecs2Date    LongSecondsToDate
  196. IUMetric        IsMetric
  197. Date2Secs        DateToSeconds
  198. Secs2Date        SecondsToDate
  199.  
  200.  
  201. #################
  202. # PictUtils
  203. #################
  204. DisposPictInfo    DisposePictInfo
  205.  
  206.  
  207. #################
  208. # Quickdraw
  209. #################
  210. DisposPixMap    DisposePixMap
  211. DisposPixPat    DisposePixPat
  212. DisposCTable    DisposeCTable
  213. DisposCCursor    DisposeCCursor
  214. DisposCIcon        DisposeCIcon
  215. DisposGDevice    DisposeGDevice
  216.  
  217.  
  218. #################
  219. # QuickdrawText
  220. #################
  221. NPixel2Char        PixelToChar
  222. NChar2Pixel        CharToPixel
  223. NDrawJust        DrawJustified
  224. NMeasureJust    MeasureJustified
  225. NPortionText    PortionLine
  226.  
  227.  
  228. #################
  229. # QuickTime
  230. #################
  231. ClockGetTime    GetClockTime
  232.  
  233. #################
  234. # Resources
  235. #################
  236. SizeResource    GetResourceSizeOnDisk
  237. MaxSizeRsrc        GetMaxResourceSize
  238. RmveResource    RemoveResource
  239.  
  240.  
  241. #################
  242. # Script
  243. #################
  244. SetSysJust        SetSysDirection
  245. GetSysJust        GetSysDirection
  246. Font2Script        FontToScript
  247. GetEnvirons        GetScriptManagerVariable
  248. SetEnvirons        SetScriptManagerVariable
  249. IUGetIntl        GetIntlResource
  250. IUSetIntl        SetIntlResource
  251. IUClearCache    ClearIntlResourceCache
  252. IUGetItlTable    GetIntlResourceTable
  253.  
  254.  
  255. #################
  256. # TextEdit
  257. #################
  258. TESetJust        TESetAlignment
  259. TextBox            TETextBox
  260. TEStylNew        TEStyleNew
  261. SetStylHandle    TESetStyleHandle
  262. SetStyleHandle    TESetStyleHandle
  263. GetStylHandle    TEGetStyleHandle
  264. GetStyleHandle    TEGetStyleHandle
  265. TEStylPaste        TEStylePaste
  266. GetStylScrap    TEGetStyleScrapHandle
  267. GetStyleScrap    TEGetStyleScrapHandle
  268. SetStylScrap    TEUseStyleScrap
  269. SetStyleScrap    TEUseStyleScrap
  270. SetClikLoop        TESetClickLoop
  271. TEGetScrapLen    TEGetScrapLength
  272. TESetScrapLen    TESetScrapLength
  273. SetWordBreak    TESetWordBreak
  274. TEStylInsert    TEStyleInsert
  275.  
  276.  
  277. #################
  278. # TextUtils
  279. #################
  280. FormatX2Str        ExtendedToString
  281. UprString        UpperString
  282. String2Date        StringToDate
  283. String2Time        StringToTime
  284. FormatX2Str        ExtendedToString
  285. FormatStr2X        StringToExtended
  286. Str2Format        StringToFormatRec
  287. Format2Str        FormatRecToString
  288. IUDatePString    DateString
  289. IUTimePString    TimeString
  290. IULDateString    LongDateString
  291. IULTimeString    LongTimeString
  292. IUCompPString    CompareString
  293. IUEqualPString    IdenticalString
  294. IUMagPString    CompareText
  295. IUMagIDPString    IdenticalText
  296. IULangOrder        LanguageOrder
  297. IUTextOrder        TextOrder
  298. IUStringOrder    StringOrder
  299.