author | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-08-18 16:25:31 (GMT) |
---|---|---|
committer | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-08-18 16:25:31 (GMT) |
commit | 05e9c2f9759a9bfae2e6a72eb20015ed3b44b393 (patch) (unidiff) | |
tree | d91ee5bebe0db1b2c224c84b73dcee75de8a5b15 | |
parent | 9b11713580664fea7f3f80d89b9acd42195ca8c3 (diff) | |
download | exp005-05e9c2f9759a9bfae2e6a72eb20015ed3b44b393.zip exp005-05e9c2f9759a9bfae2e6a72eb20015ed3b44b393.tar.gz exp005-05e9c2f9759a9bfae2e6a72eb20015ed3b44b393.tar.bz2 |
Updated the ignore list to use full paths and removed the sel_save.c file that it output from the DB2 precompiler.
-rw-r--r-- | src/controller/actions/sel_save.c | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/src/controller/actions/sel_save.c b/src/controller/actions/sel_save.c deleted file mode 100644 index 48dabc2..0000000 --- a/src/controller/actions/sel_save.c +++ b/dev/null | |||
@@ -1,141 +0,0 @@ | |||
1 | static char sqla_program_id[292] = | ||
2 | { | ||
3 | 172,0,65,69,65,78,65,73,114,65,76,72,80,82,73,90,48,49,49,49, | ||
4 | 49,32,50,32,32,32,32,32,32,32,32,32,8,0,68,79,78,32,32,32, | ||
5 | 32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
6 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
7 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
8 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
9 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
10 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
11 | 0,0,8,0,83,69,76,95,83,65,86,69,0,0,0,0,0,0,0,0, | ||
12 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
13 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
14 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
15 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
16 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | ||
17 | 0,0,0,0,0,0,0,0,0,0,0,0 | ||
18 | }; | ||
19 | |||
20 | #include "sqladef.h" | ||
21 | |||
22 | static struct sqla_runtime_info sqla_rtinfo = | ||
23 | {{'S','Q','L','A','R','T','I','N'}, sizeof(wchar_t), 0, {' ',' ',' ',' '}}; | ||
24 | |||
25 | |||
26 | static const short sqlIsLiteral = SQL_IS_LITERAL; | ||
27 | static const short sqlIsInputHvar = SQL_IS_INPUT_HVAR; | ||
28 | |||
29 | |||
30 | #line 1 "sel_save.sqc" | ||
31 | #include "../../util/check_error.h" | ||
32 | #include "../../view/state0.h" | ||
33 | #include "sel_save.h" | ||
34 | #include "sqlca.h" | ||
35 | #include <string.h> | ||
36 | extern struct sqlca sqlca; | ||
37 | |||
38 | /* | ||
39 | * A simple alias to make the code more readable. | ||
40 | */ | ||
41 | #define S state0 | ||
42 | |||
43 | void | ||
44 | sel_save (void) | ||
45 | { | ||
46 | |||
47 | /* | ||
48 | EXEC SQL BEGIN DECLARE SECTION; | ||
49 | */ | ||
50 | |||
51 | #line 16 "sel_save.sqc" | ||
52 | |||
53 | char gi[255]; | ||
54 | |||
55 | /* | ||
56 | EXEC SQL END DECLARE SECTION; | ||
57 | */ | ||
58 | |||
59 | #line 18 "sel_save.sqc" | ||
60 | |||
61 | |||
62 | /* | ||
63 | * WHERE gi IS NOT NULL is added to prevent the PRECOMPILE command | ||
64 | * from throwing a warning about modifying an entire table. Since | ||
65 | * gi is defined as NOT NULL this will clear the entire table. | ||
66 | */ | ||
67 | |||
68 | /* | ||
69 | EXEC SQL DELETE FROM vis_selection WHERE gi IS NOT NULL; | ||
70 | */ | ||
71 | |||
72 | { | ||
73 | #line 25 "sel_save.sqc" | ||
74 | sqlastrt(sqla_program_id, &sqla_rtinfo, &sqlca); | ||
75 | #line 25 "sel_save.sqc" | ||
76 | sqlacall((unsigned short)24,1,0,0,0L); | ||
77 | #line 25 "sel_save.sqc" | ||
78 | sqlastop(0L); | ||
79 | } | ||
80 | |||
81 | #line 25 "sel_save.sqc" | ||
82 | |||
83 | check_error (__FILE__, __LINE__); | ||
84 | |||
85 | for (unsigned int i = 0; i < S.rows; i++) | ||
86 | { | ||
87 | if (S.selection.set[i] == true) | ||
88 | { | ||
89 | strncpy (gi, S.gi_data + i + 3, sizeof (gi)); | ||
90 | |||
91 | /* | ||
92 | EXEC SQL INSERT INTO vis_selection VALUES (:gi); | ||
93 | */ | ||
94 | |||
95 | { | ||
96 | #line 33 "sel_save.sqc" | ||
97 | sqlastrt(sqla_program_id, &sqla_rtinfo, &sqlca); | ||
98 | #line 33 "sel_save.sqc" | ||
99 | sqlaaloc(2,1,1,0L); | ||
100 | { | ||
101 | struct sqla_setdata_list sql_setdlist[1]; | ||
102 | #line 33 "sel_save.sqc" | ||
103 | sql_setdlist[0].sqltype = 460; sql_setdlist[0].sqllen = 255; | ||
104 | #line 33 "sel_save.sqc" | ||
105 | sql_setdlist[0].sqldata = (void*)gi; | ||
106 | #line 33 "sel_save.sqc" | ||
107 | sql_setdlist[0].sqlind = 0L; | ||
108 | #line 33 "sel_save.sqc" | ||
109 | sqlasetdata(2,0,1,sql_setdlist,0L,0L); | ||
110 | } | ||
111 | #line 33 "sel_save.sqc" | ||
112 | sqlacall((unsigned short)24,2,2,0,0L); | ||
113 | #line 33 "sel_save.sqc" | ||
114 | sqlastop(0L); | ||
115 | } | ||
116 | |||
117 | #line 33 "sel_save.sqc" | ||
118 | |||
119 | } | ||
120 | } | ||
121 | |||
122 | |||
123 | /* | ||
124 | EXEC SQL COMMIT; | ||
125 | */ | ||
126 | |||
127 | { | ||
128 | #line 37 "sel_save.sqc" | ||
129 | sqlastrt(sqla_program_id, &sqla_rtinfo, &sqlca); | ||
130 | #line 37 "sel_save.sqc" | ||
131 | sqlacall((unsigned short)21,0,0,0,0L); | ||
132 | #line 37 "sel_save.sqc" | ||
133 | sqlastop(0L); | ||
134 | } | ||
135 | |||
136 | #line 37 "sel_save.sqc" | ||
137 | |||
138 | check_error (__FILE__, __LINE__); | ||
139 | |||
140 | return; | ||
141 | } | ||