Re: [HACKERS] ecpg "problem" ...

2002-11-14 Thread Michael Meskes
On Tue, Nov 12, 2002 at 02:58:17PM -0400, Marc G. Fournier wrote: > > > if (ic_flag == 1) { > /*only select those non-IC/Spyder nodes that has full update set*/ > EXEC SQL DECLARE full_dyn_node CURSOR FOR > SELECT node_name FROM NODE > WHE

[HACKERS] ecpg "problem" ...

2002-11-13 Thread Lee Kindness
Marc, Marc G. Fournier writes: > if (ic_flag == 1) { > /*only select those non-IC/Spyder nodes that has full update set*/ > EXEC SQL DECLARE full_dyn_node CURSOR FOR > SELECT node_name FROM NODE > WHERE dynamic_community = 'f' AND ic_f

Re: [HACKERS] ecpg "problem" ...

2002-11-12 Thread Jakub Ouhrabka
hi, i think that ecpg is only text preprocessor. it doesn't understand the c semantics - it goes from the top to the end of the file row by row and sees your declaration twice. kuba On Tue, 12 Nov 2002, Marc G. Fournier wrote: > > > if (ic_flag == 1) { > /*only select those non-

[HACKERS] ecpg "problem" ...

2002-11-12 Thread Marc G. Fournier
if (ic_flag == 1) { /*only select those non-IC/Spyder nodes that has full update set*/ EXEC SQL DECLARE full_dyn_node CURSOR FOR SELECT node_name FROM NODE WHERE dynamic_community = 'f' AND ic_flag='n' AND machine_type!=22

Re: [HACKERS] ecpg problem : pre-processor translated long constant to char

2002-07-04 Thread Michael Meskes
On Thu, Jul 04, 2002 at 10:00:01AM +0800, Raymond Fung wrote: > Dear all, > ... > It has translated the 4 bytes constant (0x87654321) into a one byte > char constant (within the single quotes) during pre-processing. Seems > this happens only when the high bit of the constant is set (i.e. it > won'

[HACKERS] ecpg problem : pre-processor translated long constant to char

2002-07-04 Thread Raymond Fung
Dear all, A simple testing program : * * * * * * * * * * * * * * begin * * * * * * * * * * * * * * * * #include #include int main (void) { unsigned int v; v = 0x87654321L; return (0); } * * * * * * * * * * * * * * end * * * * * * * * * * * * * * * * compile with ecpg using :