GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sql.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <grass/sqlp.h>
Include dependency graph for sql.c:

Go to the source code of this file.

Macros

#define SQLP_MAIN
 

Functions

int sqpSaveStr (SQLPVALUE *val, char *c)
 
void sqpInitValue (SQLPVALUE *val)
 
void sqpCopyValue (SQLPVALUE *from, SQLPVALUE *to)
 
int sqpInitParser (SQLPSTMT *st)
 
void sqpCommand (int command)
 
void sqpTable (char *tbl)
 
void sqpColumn (char *col)
 
void sqpColumnDef (char *col, int type, int width, int decimals)
 
void sqpValue (char *strval, int intval, double dblval, int type)
 
void sqpAssignment (char *col, char *strval, int intval, double dblval, SQLPNODE *expval, int type)
 
void sqpOrderColumn (char *col, int dir)
 
SQLPNODE * sqpNewNode (void)
 
SQLPNODE * sqpNewExpressionNode (int oper, SQLPNODE *left, SQLPNODE *right)
 
SQLPNODE * sqpNewColumnNode (char *name)
 
SQLPNODE * sqpNewValueNode (char *strval, int intval, double dblval, int type)
 
void sqpFreeNode (SQLPNODE *np)
 
int sqpOperatorCode (char *oper)
 
char * sqpOperatorName (int oper)
 

Macro Definition Documentation

#define SQLP_MAIN

Definition at line 31 of file sql.c.

Function Documentation

void sqpAssignment ( char *  col,
char *  strval,
int  intval,
double  dblval,
SQLPNODE *  expval,
int  type 
)

Definition at line 162 of file sql.c.

References NULL, sqpAllocCol(), sqpAllocVal(), sqpSaveStr(), and dialogs::type.

Referenced by yyparse().

void sqpColumn ( char *  col)

Definition at line 102 of file sql.c.

References sqpAllocCol(), and sqpSaveStr().

Referenced by yyparse().

void sqpColumnDef ( char *  col,
int  type,
int  width,
int  decimals 
)

Definition at line 114 of file sql.c.

References sqpAllocCol(), sqpSaveStr(), dialogs::type, and dialogs::width.

Referenced by yyparse().

void sqpCommand ( int  command)

Definition at line 90 of file sql.c.

References render::command.

Referenced by yyparse().

void sqpCopyValue ( SQLPVALUE *  from,
SQLPVALUE *  to 
)

Definition at line 61 of file sql.c.

References free().

void sqpFreeNode ( SQLPNODE *  np)

Definition at line 260 of file sql.c.

References free().

Referenced by sqpFreeStmt().

int sqpInitParser ( SQLPSTMT *  st)

Definition at line 75 of file sql.c.

References NULL.

void sqpInitValue ( SQLPVALUE *  val)

Definition at line 53 of file sql.c.

References NULL.

SQLPNODE* sqpNewColumnNode ( char *  name)

Definition at line 231 of file sql.c.

References sqpNewNode().

Referenced by yyparse().

SQLPNODE* sqpNewExpressionNode ( int  oper,
SQLPNODE *  left,
SQLPNODE *  right 
)

Definition at line 217 of file sql.c.

References sqpNewNode().

Referenced by yyparse().

SQLPNODE* sqpNewNode ( void  )

Definition at line 209 of file sql.c.

Referenced by sqpNewColumnNode(), sqpNewExpressionNode(), and sqpNewValueNode().

SQLPNODE* sqpNewValueNode ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 243 of file sql.c.

References sqpNewNode(), and dialogs::type.

Referenced by yyparse().

int sqpOperatorCode ( char *  oper)

Definition at line 280 of file sql.c.

References free().

Referenced by yyparse().

char* sqpOperatorName ( int  oper)

Definition at line 326 of file sql.c.

void sqpOrderColumn ( char *  col,
int  dir 
)

Definition at line 200 of file sql.c.

Referenced by yyparse().

int sqpSaveStr ( SQLPVALUE *  val,
char *  c 
)

Definition at line 41 of file sql.c.

Referenced by sqpAssignment(), sqpColumn(), sqpColumnDef(), and sqpValue().

void sqpTable ( char *  tbl)

Definition at line 96 of file sql.c.

Referenced by yyparse().

void sqpValue ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 129 of file sql.c.

References NULL, sqpAllocCol(), sqpAllocVal(), sqpSaveStr(), and dialogs::type.

Referenced by yyparse().