sqlp.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef GRASS_SQLPDEFS_H
  2. #define GRASS_SQLPDEFS_H
  3. int my_yyinput(char *buf, int max_size);
  4. void yyerror(const char *s);
  5. int yyparse();
  6. int yywrap();
  7. int sqpSaveStr(SQLPVALUE * st, char *c);
  8. void sqpInitValue(SQLPVALUE * val);
  9. void sqpCopyValue(SQLPVALUE * from, SQLPVALUE * to);
  10. SQLPSTMT *sqpInitStmt(void);
  11. int sqpFreeStmt(SQLPSTMT * st);
  12. int sqpPrintStmt(SQLPSTMT * st);
  13. int sqpAllocCol(SQLPSTMT * st, int n);
  14. int sqpAllocVal(SQLPSTMT * st, int n);
  15. int sqpAllocCom(SQLPSTMT * st, int n);
  16. int sqpInitParser(SQLPSTMT * st);
  17. void sqpCommand(int command);
  18. void sqpTable(char *table);
  19. void sqpColumn(char *column);
  20. void sqpColumnDef(char *column, int type, int width, int decimals);
  21. void sqpValue(char *strval, int intval, double dblval, int type);
  22. void sqpAssignment(char *column, char *strval, int intval, double dblval,
  23. SQLPNODE * expr, int type);
  24. void sqpOrderColumn(char *col, int dir);
  25. int sqpOperatorCode(char *);
  26. char *sqpOperatorName(int);
  27. SQLPNODE *sqpNewNode(void);
  28. SQLPNODE *sqpNewExpressionNode(int oper, SQLPNODE * left, SQLPNODE * right);
  29. SQLPNODE *sqpNewColumnNode(char *name);
  30. SQLPNODE *sqpNewValueNode(char *strval, int intval, double dblval, int type);
  31. void sqpFreeNode(SQLPNODE *);
  32. #endif