[srvx-commits] CVS: services/src saxdb.h,1.5,1.6 saxdb.c,1.18,1.19
Brought to you by:
entrope
|
From: Adrian D. <sai...@us...> - 2002-11-04 03:47:13
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv6723
Modified Files:
saxdb.h saxdb.c
Log Message:
Oops... setjmp() doesn't work how I thought. It's not needed for now, but make a note in case it's used in the future.
Index: saxdb.h
===================================================================
RCS file: /cvsroot/srvx/services/src/saxdb.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** saxdb.h 4 Nov 2002 03:27:25 -0000 1.5
--- saxdb.h 4 Nov 2002 03:47:10 -0000 1.6
***************
*** 49,53 ****
/* For doing db writing by hand */
struct saxdb_context *saxdb_open_context(FILE *f);
- int saxdb_setjmp(struct saxdb_context *ctx);
void saxdb_close_context(struct saxdb_context *ctx);
--- 49,52 ----
Index: saxdb.c
===================================================================
RCS file: /cvsroot/srvx/services/src/saxdb.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** saxdb.c 4 Nov 2002 03:27:25 -0000 1.18
--- saxdb.c 4 Nov 2002 03:47:10 -0000 1.19
***************
*** 43,46 ****
--- 43,48 ----
struct int_list complex;
jmp_buf jbuf;
+ /* XXX: If jbuf is ever used, places that use saxdb_open_context() and
+ * saxdb_close_context() must be modified to fill it in */
};
***************
*** 487,501 ****
return ctx;
- }
-
- int
- saxdb_setjmp(struct saxdb_context *ctx) {
- if ((res = setjmp(ctx->jbuf))) {
- if (res) {
- log(MAIN_LOG, LOG_ERROR, "Exception %d caught while writing to %s\n", res, tmp_fname);
- }
- int_list_clean(&ctx->complex);
- }
- return res;
}
--- 489,492 ----
|