Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.3 KiB

  1. //--------------------------------------------------------------------
  2. // Microsoft OLE-DB Query
  3. //
  4. // Copyright 1997 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // @doc
  7. //
  8. // @module mssql.h |
  9. //
  10. // Contains utility functions for constructing, debugging and manipulating DNA query trees.
  11. //
  12. // @devnote Must include:
  13. //
  14. // @rev 0 | 01-Aug-95 | mikeu | Created
  15. //
  16. #ifndef _MSSQL_H_INC
  17. #define _MSSQL_H_INC
  18. //#include "colname.h"
  19. //package is in use
  20. #define YYAPI_PACKAGE 1 // package is in use
  21. #define YYAPI_TOKENNAME yychar
  22. #define YYAPI_TOKENTYPE int
  23. #define YYAPI_TOKENEME(t) (t)
  24. #define YYAPI_TOKENNONE -2
  25. //# define YYAPI_TOKENSTR yyGetTokenStr /
  26. //yyitos is defined by yacc. does correct thing for unicode or ansi
  27. #define YYAPI_TOKENSTR(t) (yyitos(t,yyitoa,10)) // string representation of the token
  28. #define YYAPI_VALUENAME yylval
  29. #define YYAPI_VALUETYPE DBCOMMANDTREE *
  30. #define YYAPI_VALUEOF(v) v
  31. #define YYAPI_CALLAFTERYYLEX(t)
  32. #define YYNEAR
  33. #define YYPASCAL
  34. #define YYSTATIC static
  35. #define YYLEX m_yylex.yylex
  36. #define YYPARSEPROTO
  37. #define YYSTYPE DBCOMMANDTREE *
  38. #undef YYPARSER
  39. #define YYPARSER MSSQLParser
  40. #undef YYLEXER
  41. #define YYLEXER MSSQLLexer
  42. #undef YY_CHAR
  43. #define YY_CHAR TCHAR
  44. #ifndef YYERROR_VERBOSE
  45. #define YYERROR_VERBOSE 1
  46. #endif
  47. #define MONSQL_PARSE_ERROR 1
  48. #define MONSQL_CITEXTTOSELECTTREE_FAILED MONSQL_PARSE_ERROR+1
  49. #define MONSQL_PARSE_STACK_OVERFLOW MONSQL_CITEXTTOSELECTTREE_FAILED+1
  50. #define MONSQL_CANNOT_BACKUP_PARSER MONSQL_PARSE_STACK_OVERFLOW+1
  51. #define MONSQL_SEMI_COLON MONSQL_CANNOT_BACKUP_PARSER+1
  52. #define MONSQL_ORDINAL_OUT_OF_RANGE MONSQL_SEMI_COLON+1
  53. #define MONSQL_VIEW_NOT_DEFINED MONSQL_ORDINAL_OUT_OF_RANGE+1
  54. #define MONSQL_BUILTIN_VIEW MONSQL_VIEW_NOT_DEFINED+1
  55. #define MONSQL_COLUMN_NOT_DEFINED MONSQL_BUILTIN_VIEW+1
  56. #define MONSQL_OUT_OF_MEMORY MONSQL_COLUMN_NOT_DEFINED+1
  57. #define MONSQL_SELECT_STAR MONSQL_OUT_OF_MEMORY+1
  58. #define MONSQL_OR_NOT MONSQL_SELECT_STAR+1
  59. #define MONSQL_CANNOT_CONVERT MONSQL_OR_NOT+1
  60. #define MONSQL_OUT_OF_RANGE MONSQL_CANNOT_CONVERT+1
  61. #define MONSQL_RELATIVE_INTERVAL MONSQL_OUT_OF_RANGE+1
  62. #define MONSQL_NOT_COLUMN_OF_VIEW MONSQL_RELATIVE_INTERVAL+1
  63. #define MONSQL_BUILTIN_PROPERTY MONSQL_NOT_COLUMN_OF_VIEW+1
  64. #define MONSQL_WEIGHT_OUT_OF_RANGE MONSQL_BUILTIN_PROPERTY+1
  65. #define MONSQL_MATCH_STRING MONSQL_WEIGHT_OUT_OF_RANGE+1
  66. #define MONSQL_PROPERTY_NAME_IN_VIEW MONSQL_MATCH_STRING+1
  67. #define MONSQL_VIEW_ALREADY_DEFINED MONSQL_PROPERTY_NAME_IN_VIEW+1
  68. #define MONSQL_INVALID_CATALOG MONSQL_VIEW_ALREADY_DEFINED+1
  69. #endif /* _MSSQL_H_INC */