adsmigr.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. #ifndef _adsmigr_h
  13. #define _adsmigr_h 1
  14. #define ads_malloc acad_malloc
  15. #define ads_free acad_free
  16. #define ads__msize acad__msize
  17. #define ads_realloc acad_realloc
  18. #define ads_calloc acad_calloc
  19. #define ads_strdup acad__strdup
  20. // aced related #defines.
  21. //
  22. #define ads_getappname acedGetAppName
  23. #define ads_update acedUpdate
  24. #define ads_command MustSwitchTo_acedCommandC_or_acedCommandS - - !
  25. #define ads_cmd MustSwitchTo_acedCmdC_or_acedCmdS
  26. #define ads_regfunc acedRegFunc
  27. #define ads_usrbrk acedUsrBrk
  28. #define ads_defun acedDefun
  29. #define ads_setfunhelp acedSetFunHelp
  30. #define ads_undef acedUndef
  31. #define ads_getfuncode acedGetFunCode
  32. #define ads_getargs acedGetArgs
  33. #define ads_retlist acedRetList
  34. #define ads_retval acedRetVal
  35. #define ads_retpoint acedRetPoint
  36. #define ads_retstr acedRetStr
  37. #define ads_retname acedRetName
  38. #define ads_retint acedRetInt
  39. #define ads_retreal acedRetReal
  40. #define ads_rett acedRetT
  41. #define ads_retnil acedRetNil
  42. #define ads_retvoid acedRetVoid
  43. #define ads_entsel acedEntSel
  44. #define ads_nentsel acedNEntSel
  45. #define ads_nentselp acedNEntSelP
  46. #define ads_ssget acedSSGet
  47. #define ads_ssgetfirst acedSSGetFirst
  48. #define ads_sssetfirst acedSSSetFirst
  49. #define ads_ssfree acedSSFree
  50. #define ads_sslength acedSSLength
  51. #define ads_ssadd acedSSAdd
  52. #define ads_ssdel acedSSDel
  53. #define ads_ssmemb acedSSMemb
  54. #define ads_ssname acedSSName
  55. #define ads_ssnamex acedSSNameX
  56. #define ads_ssGetKwordCallbackPtr acedSSGetKwordCallbackPtr
  57. #define ads_ssSetKwordCallbackPtr acedSSSetKwordCallbackPtr
  58. #define ads_ssGetOtherCallbackPtr acedSSGetOtherCallbackPtr
  59. #define ads_ssSetOtherCallbackPtr acedSSSetOtherCallbackPtr
  60. #define ads_setvar acedSetVar
  61. #define ads_initget acedInitGet
  62. #define ads_getsym acedGetSym
  63. #define ads_putsym acedPutSym
  64. #define ads_help acedHelp
  65. #define ads_fnsplit acedFNSplit
  66. #define ads_trans acedTrans
  67. #define ads_arxloaded acedArxLoaded
  68. #define ads_arxload acedArxLoad
  69. #define ads_arxunload acedArxUnload
  70. #define ads_invoke acedInvoke
  71. #define ads_getvar acedGetVar
  72. #define ads_findfile acedFindFile
  73. #define ads_findtrustedfile acedFindTrustedFile
  74. #define ads_agetenv acedGetEnv
  75. #define ads_asetenv acedSetEnv
  76. #define ads_getenv acedGetEnv
  77. #define ads_setenv acedSetEnv
  78. #define ads_agetcfg acedGetCfg
  79. #define ads_asetcfg acedSetCfg
  80. #define ads_getcfg acedGetCfg
  81. #define ads_setcfg acedSetCfg
  82. #define ads_getstring acedGetString
  83. #define ads_menucmd acedMenuCmd
  84. #define ads_prompt acedPrompt
  85. #define ads_alert acedAlert
  86. #define ads_getangle acedGetAngle
  87. #define ads_getcorner acedGetCorner
  88. #define ads_getdist acedGetDist
  89. #define ads_getorient acedGetOrient
  90. #define ads_getpoint acedGetPoint
  91. #define ads_getint acedGetInt
  92. #define ads_getkword acedGetKword
  93. #define ads_getreal acedGetReal
  94. #define ads_getinput acedGetInput
  95. #define ads_vports acedVports
  96. #define ads_textscr acedTextScr
  97. #define ads_graphscr acedGraphScr
  98. #define ads_textpage acedTextPage
  99. #define ads_redraw acedRedraw
  100. #define ads_osnap acedOsnap
  101. #define ads_grread acedGrRead
  102. #define ads_grtext acedGrText
  103. #define ads_grdraw acedGrDraw
  104. #define ads_grvecs acedGrVecs
  105. #define ads_xformss acedXformSS
  106. #define ads_draggen acedDragGen
  107. #define ads_setview acedSetView
  108. #define ads_getfiled acedGetFileD
  109. #define ads_textbox acedTextBox
  110. #define ads_tablet acedTablet
  111. #define ads_getcname acedGetCName
  112. // AcDb related #defines that are available to ObjectDBX
  113. // applications.
  114. #define ads_xdroom acdbXdRoom
  115. #define ads_xdsize acdbXdSize
  116. /* NOTE that the result is the SECOND argument,
  117. consistent with ADS usage. The standard C ones require <string.h> */
  118. #ifdef __STDC__
  119. #define ads_name_set(from, to) (memcpy(to, from, sizeof(ads_name)))
  120. #define ads_point_set(from,to) (memcpy(to, from, sizeof(ads_point)))
  121. #else
  122. #define ads_name_set(from, to) (*(to)= *(from), (to)[1]=(from)[1])
  123. #define ads_point_set(from, to) (*(to)= *(from), (to)[1]=(from)[1], (to)[2]=(from)[2])
  124. #endif /* !__STDC__ */
  125. /* Define null value for ads_names. These values are NOT guaranteed valid;
  126. that is, there is no actual guarantee (such as C gives with NULL) that the
  127. system will never under any circumstances generate the values as valid data.
  128. The correct values will be created as part of the Lisp reinitialization
  129. project, if we go through with that one, and will then be inserted here.
  130. */
  131. #define ads_name_clear(name) name[0] = name[1] = 0
  132. #define ads_name_nil(name) (name[0] == 0 && name[1] == 0)
  133. #define ads_name_equal(name1, name2) (name1[0]==name2[0] \
  134. && name1[1]==name2[1])
  135. // AcDb related #defines that are not currently available
  136. // to ObjectDBX applications. 7/14/98
  137. #define ads_entdel acdbEntDel
  138. #define ads_entgetx acdbEntGetX
  139. #define ads_entget acdbEntGet
  140. #define ads_entlast acdbEntLast
  141. #define ads_entnext acdbEntNext
  142. #define ads_entupd acdbEntUpd
  143. #define ads_entmod acdbEntMod
  144. #define ads_entmake acdbEntMake
  145. #define ads_entmakex acdbEntMakeX
  146. #define ads_tblnext acdbTblNext
  147. #define ads_tblsearch acdbTblSearch
  148. #define ads_namedobjdict acdbNamedObjDict
  149. #define ads_dictsearch acdbDictSearch
  150. #define ads_dictnext acdbDictNext
  151. #define ads_dictrename acdbDictRename
  152. #define ads_dictremove acdbDictRemove
  153. #define ads_dictadd acdbDictAdd
  154. #define ads_tblobjname acdbTblObjName
  155. #define ads_handent acdbHandEnt
  156. #define ads_inters acdbInters
  157. #define ads_snvalid acdbSNValid
  158. #define ads_xstrsave acdbXStrSave
  159. #define ads_xstrcase acdbXStrCase
  160. #define ads_regapp acdbRegApp
  161. #define ads_fail acdbFail
  162. #define ads_angtos acdbAngToS
  163. #define ads_rangtos acdbRawAngToS
  164. #define ads_rtos acdbRToS
  165. #define ads_angtof acdbAngToF
  166. #define ads_rangtof acdbRawAngToF
  167. #define ads_distof acdbDisToF
  168. // Obsolete: we don't save as r12 anymore, so the xsave12 arg
  169. // is ignored.
  170. #define ads_regappx(appname, xsave12) acdbRegApp(appname)
  171. // Functions that are now in acutil dll
  172. #define ads_printf acutPrintf
  173. #define ads_cvunit acutCvUnit
  174. #define ads_wcmatch acutWcMatch
  175. #define ads_angle acutAngle
  176. #define ads_distance acutDistance
  177. #define ads_polar acutPolar
  178. #define ads_isalpha acutIsAlpha
  179. #define ads_isupper acutIsUpper
  180. #define ads_islower acutIsLower
  181. #define ads_isdigit acutIsDigit
  182. #define ads_isxdigit acutIsXDigit
  183. #define ads_isspace acutIsSpace
  184. #define ads_ispunct acutIsPunct
  185. #define ads_isalnum acutIsAlNum
  186. #define ads_isprint acutIsPrint
  187. #define ads_isgraph acutIsGraph
  188. #define ads_iscntrl acutIsCntrl
  189. #define ads_toupper acutToUpper
  190. #define ads_tolower acutToLower
  191. #define ads_newrb acutNewRb
  192. #define ads_relrb acutRelRb
  193. #define ads_buildlist acutBuildList
  194. #endif // !adsmigr_h