/[vdw]/trunk/obj_srvr.l
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/obj_srvr.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by dpavlin, Sun Feb 6 14:32:43 2005 UTC revision 6 by dpavlin, Tue Feb 8 21:59:58 2005 UTC
# Line 13  Line 13 
13    
14  #include <string.h>  #include <string.h>
15  #include "obj_srvr.h"  #include "obj_srvr.h"
16  /*#include "flexdef.h"*/  #include "flexdef.h"
17    
18  #ifdef VMS  #ifdef VMS
19  #include <unixio.h>  #include <unixio.h>
20  #endif  #endif
21    
 /*  
22  #include <string.h>  #include <string.h>
23  #include <stdlib.h>  #include <stdlib.h>
24  #include <unistd.h>  #include <unistd.h>
25    #ifdef VMS
26  #include <types.h>  #include <types.h>
27  #include <socket.h>  #include <socket.h>
28  #include <in.h>  #include <in.h>
29  #include <inet.h>  #include <inet.h>
30    #include <timeb.h>
31    #else
32    #include <sys/types.h>
33    #include <sys/socket.h>
34    #include <netinet/in.h>
35    #include <arpa/inet.h>
36    #include <sys/timeb.h>
37    #endif
38  #include <netdb.h>  #include <netdb.h>
39  #include <stdio.h>  #include <stdio.h>
40  #include <errno.h>  #include <errno.h>
41  #include <time.h>  #include <time.h>
 #include <timeb.h>  
 */  
   
 #include <ctype.h>  
 #include <stdarg.h>  
 #include <stdio.h>  
 #include <stdlib.h>  
 #include <string.h>  
 #include <stdbool.h>  
   
42    
43  #define bcopy(s,d,l) memcpy(d,s,l)  #define bcopy(s,d,l) memcpy(d,s,l)
44  #define bzero(d,l)   memset(d,0,l)  #define bzero(d,l)   memset(d,0,l)
# Line 49  Line 47 
47  char                    buf[BUF_SIZE];  char                    buf[BUF_SIZE];
48  int sock;  int sock;
49    
50    #ifdef VMS
51    #include "obj_srvr_tab.h"
52    #else
53  #include "obj_srvr.tab.h"  #include "obj_srvr.tab.h"
54    #endif
55    
56  int  lineno   = 1;  int  lineno   = 1;
57  char mode;  char mode;
# Line 99  QUIT           { close(sock); exit(0); } Line 101  QUIT           { close(sock); exit(0); }
101  <SQL>MAX                TOK(AMMSC)  <SQL>MAX                TOK(AMMSC)
102  <SQL>SUM                TOK(AMMSC)  <SQL>SUM                TOK(AMMSC)
103  <SQL>COUNT              TOK(AMMSC)  <SQL>COUNT              TOK(AMMSC)
104  <SQL>ANY                TOK(ANY)  <SQL>ANY                TOK(sqlANY)
105  <SQL>AS                 TOK(AS)  <SQL>AS                 TOK(AS)
106  <SQL>ASC                TOK(ASC)  <SQL>ASC                TOK(ASC)
107  <SQL>AUTHORIZATION      TOK(AUTHORIZATION)  <SQL>AUTHORIZATION      TOK(AUTHORIZATION)

Legend:
Removed from v.3  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26