Diff
Not logged in

Differences From:

File src/th_main.c part of check-in [3122fc4c7e] - Continuing work on tickets (still not working right.) Improvements to the web pages. by drh on 2008-02-14 02:49:41. Also file src/th_main.c part of check-in [588bb7cd73] - Merged to ed26056bb5. by aku on 2008-02-24 18:50:35. [view]

To:

File src/th_main.c part of check-in [68c24b1857] - Progress toward getting ticket handling to work. by drh on 2008-05-16 18:11:39. [view]

@@ -281,8 +281,17 @@
 */
 void Th_Store(const char *zName, const char *zValue){
   Th_FossilInit();
   Th_SetVar(g.interp, (uchar*)zName, -1, (uchar*)zValue, strlen(zValue));
+}
+
+/*
+** Unset a variable.
+*/
+void Th_Unstore(const char *zName){
+  if( g.interp ){
+    Th_UnsetVar(g.interp, (uchar*)zName, -1);
+  }
 }
 
 /*
 ** Retrieve a string value from the interpreter.  If no such