|
From: Martin R. <ru...@us...> - 2004-08-14 03:07:10
|
Update of /cvsroot/foo/foo/elkfoo/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3437 Modified Files: context.m Log Message: slighty changed archiving mechanism Index: context.m =================================================================== RCS file: /cvsroot/foo/foo/elkfoo/src/context.m,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** context.m 13 Aug 2004 21:34:39 -0000 1.6 --- context.m 14 Aug 2004 03:07:01 -0000 1.7 *************** *** 267,278 **** int ! Write_Context (NSString *path, FOOContext *context) { ! NS_DURING ! [FOOGlobalsManager archiveContext: context toFile: path]; ! NS_HANDLER // yet to implement ! NS_ENDHANDLER return 0; --- 267,283 ---- int ! Write_Context (const char *path, FOOContext *context) { ! /* we have to implement the exception handler here macros are ! * commented out since they don't let pass exceptions (we'll never ! * now what's wrong) ! */ ! ! // NS_DURING ! [FOOGlobalsManager archiveContext: context toFile: [NSString stringWithCString: path]]; ! // NS_HANDLER // yet to implement ! // NS_ENDHANDLER return 0; *************** *** 319,324 **** } ! switch (Write_Context([NSString stringWithCString: path], ! CONTEXT_T(context)->pointer)) { case -1: --- 324,328 ---- } ! switch (Write_Context(path, CONTEXT_T(context)->pointer)) { case -1: *************** *** 334,345 **** int ! Read_Context (NSString *path, FOOContext **context) { ! NS_DURING ! *context = [FOOGlobalsManager unArchiveContextWithFile: path]; ! NS_HANDLER // yet to implement ! NS_ENDHANDLER if (*context == nil) --- 338,354 ---- int ! Read_Context (const char *path, FOOContext **context) { ! /* we have to implement the exception handler here macros are ! * commented out since they don't let pass exceptions (we'll never ! * now what's wrong) ! */ ! ! // NS_DURING ! *context = [FOOGlobalsManager unArchiveContextWithFile: [NSString stringWithCString: path]]; ! // NS_HANDLER // yet to implement ! // NS_ENDHANDLER if (*context == nil) *************** *** 390,394 **** } ! switch (Read_Context([NSString stringWithCString: path], &context)) { case -1: --- 399,403 ---- } ! switch (Read_Context(path, &context)) { case -1: |