|
3 | 3 | * procedural language (PL)
|
4 | 4 | *
|
5 | 5 | * IDENTIFICATION
|
6 |
| - * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.18 2000/01/15 22:43:23 tgl Exp $ |
| 6 | + * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.19 2000/02/27 07:18:29 tgl Exp $ |
7 | 7 | *
|
8 | 8 | * This software is copyrighted by Jan Wieck - Hamburg.
|
9 | 9 | *
|
@@ -417,7 +417,7 @@ pltcl_func_handler(FmgrInfo *proinfo,
|
417 | 417 | char *stroid;
|
418 | 418 | Tcl_HashEntry *hashent;
|
419 | 419 | int hashnew;
|
420 |
| - pltcl_proc_desc *prodesc; |
| 420 | + pltcl_proc_desc * volatile prodesc; |
421 | 421 | Tcl_DString tcl_cmd;
|
422 | 422 | Tcl_DString list_tmp;
|
423 | 423 | int tcl_rc;
|
@@ -739,7 +739,7 @@ pltcl_trigger_handler(FmgrInfo *proinfo)
|
739 | 739 | int hashnew;
|
740 | 740 | pltcl_proc_desc *prodesc;
|
741 | 741 | TupleDesc tupdesc;
|
742 |
| - HeapTuple rettup; |
| 742 | + volatile HeapTuple rettup; |
743 | 743 | Tcl_DString tcl_cmd;
|
744 | 744 | Tcl_DString tcl_trigtup;
|
745 | 745 | Tcl_DString tcl_newtup;
|
@@ -1289,13 +1289,13 @@ pltcl_SPI_exec(ClientData cdata, Tcl_Interp *interp,
|
1289 | 1289 | int spi_rc;
|
1290 | 1290 | char buf[64];
|
1291 | 1291 | int count = 0;
|
1292 |
| - char *arrayname = NULL; |
1293 |
| - int query_idx; |
| 1292 | + char * volatile arrayname = NULL; |
| 1293 | + volatile int query_idx; |
1294 | 1294 | int i;
|
1295 | 1295 | int loop_rc;
|
1296 | 1296 | int ntuples;
|
1297 |
| - HeapTuple *tuples; |
1298 |
| - TupleDesc tupdesc = NULL; |
| 1297 | + HeapTuple * volatile tuples; |
| 1298 | + volatile TupleDesc tupdesc = NULL; |
1299 | 1299 | sigjmp_buf save_restart;
|
1300 | 1300 |
|
1301 | 1301 | char *usage = "syntax error - 'SPI_exec "
|
@@ -1701,20 +1701,20 @@ pltcl_SPI_execp(ClientData cdata, Tcl_Interp *interp,
|
1701 | 1701 | {
|
1702 | 1702 | int spi_rc;
|
1703 | 1703 | char buf[64];
|
1704 |
| - int i, |
1705 |
| - j; |
| 1704 | + volatile int i; |
| 1705 | + int j; |
1706 | 1706 | int loop_body;
|
1707 | 1707 | Tcl_HashEntry *hashent;
|
1708 | 1708 | pltcl_query_desc *qdesc;
|
1709 |
| - char *nulls = NULL; |
1710 |
| - char *arrayname = NULL; |
| 1709 | + char * volatile nulls = NULL; |
| 1710 | + char * volatile arrayname = NULL; |
1711 | 1711 | int count = 0;
|
1712 | 1712 | int callnargs;
|
1713 | 1713 | static char **callargs = NULL;
|
1714 | 1714 | int loop_rc;
|
1715 | 1715 | int ntuples;
|
1716 |
| - HeapTuple *tuples = NULL; |
1717 |
| - TupleDesc tupdesc = NULL; |
| 1716 | + HeapTuple * volatile tuples = NULL; |
| 1717 | + volatile TupleDesc tupdesc = NULL; |
1718 | 1718 | sigjmp_buf save_restart;
|
1719 | 1719 |
|
1720 | 1720 | char *usage = "syntax error - 'SPI_execp "
|
|
0 commit comments