11 |
#include <EXTERN.h> |
#include <EXTERN.h> |
12 |
|
|
13 |
#include <perl.h> |
#include <perl.h> |
14 |
/*#include "flexdef.h"*/ |
#include "flexdef.h" |
15 |
|
|
16 |
#include "obj_srvr.tab.h" |
#include "obj_srvr.tab.h" |
17 |
|
|
45 |
char args[10][ARGSIZE]; |
char args[10][ARGSIZE]; |
46 |
|
|
47 |
/* external prototypes */ |
/* external prototypes */ |
48 |
EXTERN_C void xs_init (pTHXo); |
|
49 |
|
EXTERN_C void boot_DynaLoader (pTHX_ CV* cv); |
50 |
|
|
51 |
|
|
52 |
|
EXTERN_C void |
53 |
|
xs_init(pTHX) |
54 |
|
{ |
55 |
|
char *file = __FILE__; |
56 |
|
/* DynaLoader is a special case */ |
57 |
|
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); |
58 |
|
} |
59 |
|
|
60 |
/* local prototypes */ |
/* local prototypes */ |
61 |
int exec_sql(); |
int exec_sql(); |
217 |
} |
} |
218 |
|
|
219 |
|
|
|
int char2str(int *c, char *str) { /* str must have size = 3 chars */ |
|
|
|
|
|
str[0] = *c; |
|
|
str[1] = (c + 1) == '=' || (c + 1) == '>' ? *(c + 1) : '\0'; |
|
|
str[2] = '\0'; |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|