Commit ad5a54d1 authored by Michael Meskes's avatar Michael Meskes

*** empty log message ***

parent 075dc252
...@@ -559,6 +559,10 @@ Mon Apr 12 17:56:14 CEST 1999 ...@@ -559,6 +559,10 @@ Mon Apr 12 17:56:14 CEST 1999
Wed Apr 14 17:59:06 CEST 1999 Wed Apr 14 17:59:06 CEST 1999
- Added simple calculations for array bounds. - Added simple calculations for array bounds.
Fri Apr 16 18:25:18 CEST 1999
- Fixed small bug in ECPGfinish().
- Set library version to 3.0.0 - Set library version to 3.0.0
- Set ecpg version to 2.6.0 - Set ecpg version to 2.6.0
...@@ -149,26 +149,21 @@ ECPGfinish(struct connection * act) ...@@ -149,26 +149,21 @@ ECPGfinish(struct connection * act)
PQfinish(act->connection); PQfinish(act->connection);
/* remove act from the list */ /* remove act from the list */
if (act == all_connections) if (act == all_connections)
{
all_connections = act->next; all_connections = act->next;
free(act->name);
free(act);
}
else else
{ {
struct connection *con; struct connection *con;
for (con = all_connections; con->next && con->next != act; con = con->next); for (con = all_connections; con->next && con->next != act; con = con->next);
if (con->next) if (con->next)
{
con->next = act->next; con->next = act->next;
free(act->name);
free(act);
}
} }
if (actual_connection == act) if (actual_connection == act)
actual_connection = all_connections; actual_connection = all_connections;
free(act->name);
free(act);
} }
else else
ECPGlog("ECPGfinish: called an extra time.\n"); ECPGlog("ECPGfinish: called an extra time.\n");
......
...@@ -533,6 +533,12 @@ cppline {space}*#.*(\\{space}*\n)*\n* ...@@ -533,6 +533,12 @@ cppline {space}*#.*(\\{space}*\n)*\n*
<C>";" { return(';'); } <C>";" { return(';'); }
<C>"," { return(','); } <C>"," { return(','); }
<C>"*" { return('*'); } <C>"*" { return('*'); }
<C>"%" { return('%'); }
<C>"/" { return('/'); }
<C>"+" { return('+'); }
<C>"-" { return('-'); }
<C>"(" { return('('); }
<C>")" { return(')'); }
<C>{space} { ECHO; } <C>{space} { ECHO; }
<C>\{ { return('{'); } <C>\{ { return('{'); }
<C>\} { return('}'); } <C>\} { return('}'); }
......
...@@ -3218,12 +3218,12 @@ nest_array_bounds: '[' ']' nest_array_bounds ...@@ -3218,12 +3218,12 @@ nest_array_bounds: '[' ']' nest_array_bounds
Iresult: Iconst { $$ = atol($1); } Iresult: Iconst { $$ = atol($1); }
| '(' Iresult ')' { $$ = $2; } | '(' Iresult ')' { $$ = $2; }
| Iresult '+' Iresult { $$ = $1 + $3}; | Iresult '+' Iresult { $$ = $1 + $3; }
| Iresult '-' Iresult { $$ = $1 - $3}; | Iresult '-' Iresult { $$ = $1 - $3; }
| Iresult '*' Iresult { $$ = $1 * $3}; | Iresult '*' Iresult { $$ = $1 * $3; }
| Iresult '/' Iresult { $$ = $1 / $3}; | Iresult '/' Iresult { $$ = $1 / $3; }
| Iresult '%' Iresult { $$ = $1 % $3}; | Iresult '%' Iresult { $$ = $1 % $3; }
;
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment