Diff
Not logged in

Differences From:

File src/style.c part of check-in [f394d84560] - Update SQLite to the latest build from CVS. Add in the FTS3 extension, though it is not yet being used. Additional work toward tickets. by drh on 2007-11-25 16:13:52. [view]

To:

File src/style.c part of check-in [5f3ddcc1b8] - Add ticket configuration editing capability. by drh on 2007-11-25 21:11:33. [view]

@@ -47,14 +47,18 @@
 */
 void style_submenu_element(
   const char *zLabel,
   const char *zTitle,
-  const char *zLink
+  const char *zLink,
+  ...
 ){
+  va_list ap;
   assert( nSubmenu < sizeof(aSubmenu)/sizeof(aSubmenu[0]) );
   aSubmenu[nSubmenu].zLabel = zLabel;
   aSubmenu[nSubmenu].zTitle = zTitle;
-  aSubmenu[nSubmenu].zLink = zLink;
+  va_start(ap, zLink);
+  aSubmenu[nSubmenu].zLink = vmprintf(zLink, ap);
+  va_end(ap);
   nSubmenu++;
 }
 
 /*