home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a009 / 5.ddi / INCLUDE.LIF / RESERVED.CH < prev    next >
Encoding:
Text File  |  1991-04-14  |  17.0 KB  |  322 lines

  1. /***
  2. *   Reserved.ch
  3. *   Header file to check for reserved function names.
  4. *   Copyright (c) 1991 Nantucket Corp.  All rights reserved.
  5. *
  6. *   Clipper 5.0 defines a number of new functions that didn't
  7. *   exist in previous releases. This header file offers an easy
  8. *   way to check your programs to see if they define functions
  9. *   or procedures whose names collide with those of standard
  10. *   Clipper functions.
  11. *
  12. *   This header simply causes a compiler error to be generated
  13. *   if such a collision is detected, it doesn't correct the
  14. *   problem! To rectify the situation you'll have to decide
  15. *   whether you really mean to redefine the function. If not,
  16. *   change the name of the offending function in your code.
  17. *   
  18. *   To use this header, first make sure that the compiler is
  19. *   able to find it, either by copying it into your working
  20. *   directory or by putting it in one of the directories
  21. *   specified in the INCLUDE environment variable. Then
  22. *   compile each of your programs using the following command
  23. *   line option:
  24. *
  25. *      /ureserved.ch
  26. *
  27. *   Example:
  28. *
  29. *      clipper myprog /ureserved.ch
  30. *
  31. *
  32. *   A .CLP file can be used if desired. Example:
  33. *
  34. *      clipper @prglist /ureserved.ch
  35. *
  36. *   
  37. *   IMPORTANT: the preprocessor can only check names for exact
  38. *   equivalence to the reserved names. The compiler itself,
  39. *   however, treats names as equivalent if the first ten
  40. *   characters match. If you have a function or procedure that
  41. *   that collides with a reserved name because of the ten
  42. *   character rule, this header may not catch it. As an aid,
  43. *   here is a list of the standard functions whose names are
  44. *   ten or more characters in length:
  45. *
  46. *   DBCLEARFILTER
  47. *   DBCLEARINDEX
  48. *   DBCLEARRELATION
  49. *   DBCLOSEALL
  50. *   DBCLOSEAREA
  51. *   DBCOMMITALL
  52. *   DBCREATEINDEX
  53. *   DBGOBOTTOM
  54. *   DBRELATION
  55. *   DBSELECTAREA
  56. *   DBSETDRIVER
  57. *   DBSETFILTER
  58. *   DBSETINDEX
  59. *   DBSETORDER
  60. *   DBSETRELATION
  61. *   DBUNLOCKALL
  62. *   DEVOUTPICT
  63. *   ERRORBLOCK
  64. *   ERRORLEVEL
  65. *   FIELDBLOCK
  66. *   FIELDWBLOCK
  67. *   GETAPPLYKEY
  68. *   GETDOSETKEY
  69. *   GETPOSTVALIDATE
  70. *   GETPREVALIDATE
  71. *   MEMVARBLOCK
  72. *   RANGECHECK
  73. *   READINSERT
  74. *   RESTSCREEN
  75. *   SAVESCREEN
  76. *   TBCOLUMNNEW
  77. *   TBROWSENEW
  78. *
  79. */
  80.  
  81.  
  82. // This keeps the compiler from generating an object file.
  83. // (This header would make for a bad object file.)
  84. #error (Ignore this error...)
  85.  
  86.  
  87. // include Std.ch so normal commands won't give errors
  88. #include "Std.ch"
  89.  
  90.  
  91. // translate all variations of FUNCTION and PROCEDURE to
  92. // simply PROC <name>
  93.  
  94. #xcommand FUNCTION <name> [( <params,...> )]                            ;
  95.        => PROC <name>
  96.  
  97. #xcommand FUNCTIO  <name> [( <params,...> )]                            ;
  98.        => PROC <name>
  99.  
  100. #xcommand FUNCTI   <name> [( <params,...> )]                            ;
  101.        => PROC <name>
  102.  
  103. #xcommand FUNCT    <name> [( <params,...> )]                            ;
  104.        => PROC <name>
  105.  
  106. #xcommand FUNC     <name> [( <params,...> )]                            ;
  107.        => PROC <name>
  108.  
  109.  
  110. #xcommand PROCEDURE <name> [( <params,...> )]                           ;
  111.        => PROC <name>
  112.  
  113. #xcommand PROCEDUR  <name> [( <params,...> )]                           ;
  114.        => PROC <name>
  115.  
  116. #xcommand PROCEDU   <name> [( <params,...> )]                           ;
  117.        => PROC <name>
  118.  
  119. #xcommand PROCED    <name> [( <params,...> )]                           ;
  120.        => PROC <name>
  121.  
  122. #xcommand PROCE     <name> [( <params,...> )]                           ;
  123.        => PROC <name>
  124.  
  125.  
  126. // These functions are reserved but not "built in" to the compiler
  127. // If you redefine one of these, you'll probably wish you hadn't.
  128.  
  129. #xcommand PROC ACHOICE         => PROC _ACHOICE         ; #error ACHOICE
  130. #xcommand PROC ACLONE          => PROC _ACLONE          ; #error ACLONE
  131. #xcommand PROC ACOPY           => PROC _ACOPY           ; #error ACOPY
  132. #xcommand PROC ADEL            => PROC _ADEL            ; #error ADEL
  133. #xcommand PROC ADIR            => PROC _ADIR            ; #error ADIR
  134. #xcommand PROC AEVAL           => PROC _AEVAL           ; #error AEVAL
  135. #xcommand PROC AFIELDS         => PROC _AFIELDS         ; #error AFIELDS
  136. #xcommand PROC AFILL           => PROC _AFILL           ; #error AFILL
  137. #xcommand PROC AINS            => PROC _AINS            ; #error AINS
  138. #xcommand PROC ALERT           => PROC _ALERT           ; #error ALERT
  139. #xcommand PROC ALIAS           => PROC _ALIAS           ; #error ALIAS
  140. #xcommand PROC ALLTRIM         => PROC _ALLTRIM         ; #error ALLTRIM
  141. #xcommand PROC ALTD            => PROC _ALTD            ; #error ALTD
  142. #xcommand PROC ARRAY           => PROC _ARRAY           ; #error ARRAY
  143. #xcommand PROC ASCAN           => PROC _ASCAN           ; #error ASCAN
  144. #xcommand PROC ASIZE           => PROC _ASIZE           ; #error ASIZE
  145. #xcommand PROC ASORT           => PROC _ASORT           ; #error ASORT
  146. #xcommand PROC ATAIL           => PROC _ATAIL           ; #error ATAIL
  147. #xcommand PROC BIN2I           => PROC _BIN2I           ; #error BIN2I
  148. #xcommand PROC BIN2L           => PROC _BIN2L           ; #error BIN2L
  149. #xcommand PROC BIN2W           => PROC _BIN2W           ; #error BIN2W
  150. #xcommand PROC CURDIR          => PROC _CURDIR          ; #error CURDIR
  151. #xcommand PROC DBAPPEND        => PROC _DBAPPEND        ; #error DBAPPEND
  152. #xcommand PROC DBCLEARFILTER   => PROC _DBCLEARFILTER   ; #error DBCLEARFILTER
  153. #xcommand PROC DBCLEARINDEX    => PROC _DBCLEARINDEX    ; #error DBCLEARINDEX
  154. #xcommand PROC DBCLEARRELATION => PROC _DBCLEARRELATION ; #error DBCLEARRELATION
  155. #xcommand PROC DBCLOSEALL      => PROC _DBCLOSEALL      ; #error DBCLOSEALL
  156. #xcommand PROC DBCLOSEAREA     => PROC _DBCLOSEAREA     ; #error DBCLOSEAREA
  157. #xcommand PROC DBCOMMIT        => PROC _DBCOMMIT        ; #error DBCOMMIT
  158. #xcommand PROC DBCOMMITALL     => PROC _DBCOMMITALL     ; #error DBCOMMITALL
  159. #xcommand PROC DBCREATE        => PROC _DBCREATE        ; #error DBCREATE
  160. #xcommand PROC DBCREATEINDEX   => PROC _DBCREATEINDEX   ; #error DBCREATEINDEX
  161. #xcommand PROC DBDELETE        => PROC _DBDELETE        ; #error DBDELETE
  162. #xcommand PROC DBEDIT          => PROC _DBEDIT          ; #error DBEDIT
  163. #xcommand PROC DBEVAL          => PROC _DBEVAL          ; #error DBEVAL
  164. #xcommand PROC DBFILTER        => PROC _DBFILTER        ; #error DBFILTER
  165. #xcommand PROC DBGOBOTTOM      => PROC _DBGOBOTTOM      ; #error DBGOBOTTOM
  166. #xcommand PROC DBGOTO          => PROC _DBGOTO          ; #error DBGOTO
  167. #xcommand PROC DBGOTOP         => PROC _DBGOTOP         ; #error DBGOTOP
  168. #xcommand PROC DBRECALL        => PROC _DBRECALL        ; #error DBRECALL
  169. #xcommand PROC DBREINDEX       => PROC _DBREINDEX       ; #error DBREINDEX
  170. #xcommand PROC DBRELATION      => PROC _DBRELATION      ; #error DBRELATION
  171. #xcommand PROC DBRSELECT       => PROC _DBRSELECT       ; #error DBRSELECT
  172. #xcommand PROC DBSEEK          => PROC _DBSEEK          ; #error DBSEEK
  173. #xcommand PROC DBSELECTAREA    => PROC _DBSELECTAREA    ; #error DBSELECTAREA
  174. #xcommand PROC DBSETDRIVER     => PROC _DBSETDRIVER     ; #error DBSETDRIVER
  175. #xcommand PROC DBSETFILTER     => PROC _DBSETFILTER     ; #error DBSETFILTER
  176. #xcommand PROC DBSETINDEX      => PROC _DBSETINDEX      ; #error DBSETINDEX
  177. #xcommand PROC DBSETORDER      => PROC _DBSETORDER      ; #error DBSETORDER
  178. #xcommand PROC DBSETRELATION   => PROC _DBSETRELATION   ; #error DBSETRELATION
  179. #xcommand PROC DBSKIP          => PROC _DBSKIP          ; #error DBSKIP
  180. #xcommand PROC DBSTRUCT        => PROC _DBSTRUCT        ; #error DBSTRUCT
  181. #xcommand PROC DBUNLOCK        => PROC _DBUNLOCK        ; #error DBUNLOCK
  182. #xcommand PROC DBUNLOCKALL     => PROC _DBUNLOCKALL     ; #error DBUNLOCKALL
  183. #xcommand PROC DBUSEAREA       => PROC _DBUSEAREA       ; #error DBUSEAREA
  184. #xcommand PROC DESCEND         => PROC _DESCEND         ; #error DESCEND
  185. #xcommand PROC DEVOUT          => PROC _DEVOUT          ; #error DEVOUT
  186. #xcommand PROC DEVOUTPICT      => PROC _DEVOUTPICT      ; #error DEVOUTPICT
  187. #xcommand PROC DIRECTORY       => PROC _DIRECTORY       ; #error DIRECTORY
  188. #xcommand PROC DISKSPACE       => PROC _DISKSPACE       ; #error DISKSPACE
  189. #xcommand PROC DISPBEGIN       => PROC _DISPBEGIN       ; #error DISPBEGIN
  190. #xcommand PROC DISPBOX         => PROC _DISPBOX         ; #error DISPBOX
  191. #xcommand PROC DISPEND         => PROC _DISPEND         ; #error DISPEND
  192. #xcommand PROC DISPOUT         => PROC _DISPOUT         ; #error DISPOUT
  193. #xcommand PROC DOSERROR        => PROC _DOSERROR        ; #error DOSERROR
  194. #xcommand PROC ERRORBLOCK      => PROC _ERRORBLOCK      ; #error ERRORBLOCK
  195. #xcommand PROC ERRORLEVEL      => PROC _ERRORLEVEL      ; #error ERRORLEVEL
  196. #xcommand PROC ERRORNEW        => PROC _ERRORNEW        ; #error ERRORNEW
  197. #xcommand PROC FCLOSE          => PROC _FCLOSE          ; #error FCLOSE
  198. #xcommand PROC FCREATE         => PROC _FCREATE         ; #error FCREATE
  199. #xcommand PROC FERASE          => PROC _FERASE          ; #error FERASE
  200. #xcommand PROC FERROR          => PROC _FERROR          ; #error FERROR
  201. #xcommand PROC FIELDBLOCK      => PROC _FIELDBLOCK      ; #error FIELDBLOCK
  202. #xcommand PROC FIELDGET        => PROC _FIELDGET        ; #error FIELDGET
  203. #xcommand PROC FIELDPOS        => PROC _FIELDPOS        ; #error FIELDPOS
  204. #xcommand PROC FIELDPUT        => PROC _FIELDPUT        ; #error FIELDPUT
  205. #xcommand PROC FIELDWBLOCK     => PROC _FIELDWBLOCK     ; #error FIELDWBLOCK
  206. #xcommand PROC FILE            => PROC _FILE            ; #error FILE
  207. #xcommand PROC FOPEN           => PROC _FOPEN           ; #error FOPEN
  208. #xcommand PROC FREAD           => PROC _FREAD           ; #error FREAD
  209. #xcommand PROC FREADSTR        => PROC _FREADSTR        ; #error FREADSTR
  210. #xcommand PROC FRENAME         => PROC _FRENAME         ; #error FRENAME
  211. #xcommand PROC FSEEK           => PROC _FSEEK           ; #error FSEEK
  212. #xcommand PROC FWRITE          => PROC _FWRITE          ; #error FWRITE
  213. #xcommand PROC GETACTIVE       => PROC _GETACTIVE       ; #error GETACTIVE
  214. #xcommand PROC GETAPPLYKEY     => PROC _GETAPPLYKEY     ; #error GETAPPLYKEY
  215. #xcommand PROC GETDOSETKEY     => PROC _GETDOSETKEY     ; #error GETDOSETKEY
  216. #xcommand PROC GETE            => PROC _GETE            ; #error GETE
  217. #xcommand PROC GETENV          => PROC _GETENV          ; #error GETENV
  218. #xcommand PROC GETNEW          => PROC _GETNEW          ; #error GETNEW
  219. #xcommand PROC GETPOSTVALIDATE => PROC _GETPOSTVALIDATE ; #error GETPOSTVALIDATE
  220. #xcommand PROC GETPREVALIDATE  => PROC _GETPREVALIDATE  ; #error GETPREVALIDATE
  221. #xcommand PROC GETREADER       => PROC _GETREADER       ; #error GETREADER
  222. #xcommand PROC HARDCR          => PROC _HARDCR          ; #error HARDCR
  223. #xcommand PROC HEADER          => PROC _HEADER          ; #error HEADER
  224. #xcommand PROC I2BIN           => PROC _I2BIN           ; #error I2BIN
  225. #xcommand PROC INDEXEXT        => PROC _INDEXEXT        ; #error INDEXEXT
  226. #xcommand PROC INDEXKEY        => PROC _INDEXKEY        ; #error INDEXKEY
  227. #xcommand PROC INDEXORD        => PROC _INDEXORD        ; #error INDEXORD
  228. #xcommand PROC ISALPHA         => PROC _ISALPHA         ; #error ISALPHA
  229. #xcommand PROC ISCOLOR         => PROC _ISCOLOR         ; #error ISCOLOR
  230. #xcommand PROC ISDIGIT         => PROC _ISDIGIT         ; #error ISDIGIT
  231. #xcommand PROC ISLOWER         => PROC _ISLOWER         ; #error ISLOWER
  232. #xcommand PROC ISPRINTER       => PROC _ISPRINTER       ; #error ISPRINTER
  233. #xcommand PROC ISUPPER         => PROC _ISUPPER         ; #error ISUPPER
  234. #xcommand PROC L2BIN           => PROC _L2BIN           ; #error L2BIN
  235. #xcommand PROC LASTKEY         => PROC _LASTKEY         ; #error LASTKEY
  236. #xcommand PROC LEFT            => PROC _LEFT            ; #error LEFT
  237. #xcommand PROC LUPDATE         => PROC _LUPDATE         ; #error LUPDATE
  238. #xcommand PROC MAXCOL          => PROC _MAXCOL          ; #error MAXCOL
  239. #xcommand PROC MAXROW          => PROC _MAXROW          ; #error MAXROW
  240. #xcommand PROC MEMOEDIT        => PROC _MEMOEDIT        ; #error MEMOEDIT
  241. #xcommand PROC MEMOLINE        => PROC _MEMOLINE        ; #error MEMOLINE
  242. #xcommand PROC MEMOREAD        => PROC _MEMOREAD        ; #error MEMOREAD
  243. #xcommand PROC MEMORY          => PROC _MEMORY          ; #error MEMORY
  244. #xcommand PROC MEMOTRAN        => PROC _MEMOTRAN        ; #error MEMOTRAN
  245. #xcommand PROC MEMOWRIT        => PROC _MEMOWRIT        ; #error MEMOWRIT
  246. #xcommand PROC MEMVARBLOCK     => PROC _MEMVARBLOCK     ; #error MEMVARBLOCK
  247. #xcommand PROC MLCOUNT         => PROC _MLCOUNT         ; #error MLCOUNT
  248. #xcommand PROC MLCTOPOS        => PROC _MLCTOPOS        ; #error MLCTOPOS
  249. #xcommand PROC MLPOS           => PROC _MLPOS           ; #error MLPOS
  250. #xcommand PROC MPOSTOLC        => PROC _MPOSTOLC        ; #error MPOSTOLC
  251. #xcommand PROC NETERR          => PROC _NETERR          ; #error NETERR
  252. #xcommand PROC NETNAME         => PROC _NETNAME         ; #error NETNAME
  253. #xcommand PROC NEXTKEY         => PROC _NEXTKEY         ; #error NEXTKEY
  254. #xcommand PROC NOSNOW          => PROC _NOSNOW          ; #error NOSNOW
  255. #xcommand PROC OS              => PROC _OS              ; #error OS
  256. #xcommand PROC OUTERR          => PROC _OUTERR          ; #error OUTERR
  257. #xcommand PROC OUTSTD          => PROC _OUTSTD          ; #error OUTSTD
  258. #xcommand PROC PAD             => PROC _PAD             ; #error PAD
  259. #xcommand PROC PADC            => PROC _PADC            ; #error PADC
  260. #xcommand PROC PADL            => PROC _PADL            ; #error PADL
  261. #xcommand PROC PADR            => PROC _PADR            ; #error PADR
  262. #xcommand PROC PROCLINE        => PROC _PROCLINE        ; #error PROCLINE
  263. #xcommand PROC PROCNAME        => PROC _PROCNAME        ; #error PROCNAME
  264. #xcommand PROC QOUT            => PROC _QOUT            ; #error QOUT
  265. #xcommand PROC QQOUT           => PROC _QQOUT           ; #error QQOUT
  266. #xcommand PROC RANGECHECK      => PROC _RANGECHECK      ; #error RANGECHECK
  267. #xcommand PROC RAT             => PROC _RAT             ; #error RAT
  268. #xcommand PROC READEXIT        => PROC _READEXIT        ; #error READEXIT
  269. #xcommand PROC READINSERT      => PROC _READINSERT      ; #error READINSERT
  270. #xcommand PROC READKEY         => PROC _READKEY         ; #error READKEY
  271. #xcommand PROC READMODAL       => PROC _READMODAL       ; #error READMODAL
  272. #xcommand PROC READVAR         => PROC _READVAR         ; #error READVAR
  273. #xcommand PROC RECSIZE         => PROC _RECSIZE         ; #error RECSIZE
  274. #xcommand PROC RESTSCREEN      => PROC _RESTSCREEN      ; #error RESTSCREEN
  275. #xcommand PROC RIGHT           => PROC _RIGHT           ; #error RIGHT
  276. #xcommand PROC SAVESCREEN      => PROC _SAVESCREEN      ; #error SAVESCREEN
  277. #xcommand PROC SCROLL          => PROC _SCROLL          ; #error SCROLL
  278. #xcommand PROC SET             => PROC _SET             ; #error SET
  279. #xcommand PROC SETBLINK        => PROC _SETBLINK        ; #error SETBLINK
  280. #xcommand PROC SETCANCEL       => PROC _SETCANCEL       ; #error SETCANCEL
  281. #xcommand PROC SETCOLOR        => PROC _SETCOLOR        ; #error SETCOLOR
  282. #xcommand PROC SETCURSOR       => PROC _SETCURSOR       ; #error SETCURSOR
  283. #xcommand PROC SETKEY          => PROC _SETKEY          ; #error SETKEY
  284. #xcommand PROC SETMODE         => PROC _SETMODE         ; #error SETMODE
  285. #xcommand PROC SETPRC          => PROC _SETPRC          ; #error SETPRC
  286. #xcommand PROC SOUNDEX         => PROC _SOUNDEX         ; #error SOUNDEX
  287. #xcommand PROC STRTRAN         => PROC _STRTRAN         ; #error STRTRAN
  288. #xcommand PROC STUFF           => PROC _STUFF           ; #error STUFF
  289. #xcommand PROC TBCOLUMNNEW     => PROC _TBCOLUMNNEW     ; #error TBCOLUMNNEW
  290. #xcommand PROC TBROWSEDB       => PROC _TBROWSEDB       ; #error TBROWSEDB
  291. #xcommand PROC TBROWSENEW      => PROC _TBROWSENEW      ; #error TBROWSENEW
  292. #xcommand PROC TONE            => PROC _TONE            ; #error TONE
  293. #xcommand PROC TRANSFORM       => PROC _TRANSFORM       ; #error TRANSFORM
  294. #xcommand PROC UPDATED         => PROC _UPDATED         ; #error UPDATED
  295. #xcommand PROC USED            => PROC _USED            ; #error USED
  296. #xcommand PROC VERSION         => PROC _VERSION         ; #error VERSION
  297.  
  298.  
  299. // These functions are Clipper functions supplied in source code
  300. // in the SAMPLE directory. If you redefine one of these, you're
  301. // probably glad you did.
  302.  
  303. #xcommand PROC AMPM            => PROC _AMPM            ; #error AMPM
  304. #xcommand PROC BROWSE          => PROC _BROWSE          ; #error BROWSE
  305. #xcommand PROC DAYS            => PROC _DAYS            ; #error DAYS
  306. #xcommand PROC DBF             => PROC _DBF             ; #error DBF
  307. #xcommand PROC ELAPTIME        => PROC _ELAPTIME        ; #error ELAPTIME
  308. #xcommand PROC FKLABEL         => PROC _FKLABEL         ; #error FKLABEL
  309. #xcommand PROC FKMAX           => PROC _FKMAX           ; #error FKMAX
  310. #xcommand PROC LENNUM          => PROC _LENNUM          ; #error LENNUM
  311. #xcommand PROC MOD             => PROC _MOD             ; #error MOD
  312. #xcommand PROC SECS            => PROC _SECS            ; #error SECS
  313. #xcommand PROC STRZERO         => PROC _STRZERO         ; #error STRZERO
  314. #xcommand PROC TSTRING         => PROC _TSTRING         ; #error TSTRING
  315.  
  316.  
  317. // This is something you would presumably want to redefine
  318. // (so we've commented it out here).
  319.  
  320. //#xcommand PROC ERRORSYS      => PROC _ERRORSYS        ; #error ERRORSYS
  321.  
  322.