Diff
Not logged in

Differences From:

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

To:

File src/main.c part of check-in [55342eb9fb] - The bug report generator compiles but still does not work right. by drh on 2008-05-17 14:49:49. [view]

@@ -41,8 +41,13 @@
 */
 #define UUID_SIZE 40
 
 /*
+** Maximum number of auxiliary parameters on reports
+*/
+#define MX_AUX  5
+
+/*
 ** All global variables are in this structure.
 */
 struct Global {
   int argc; char **argv;  /* Command-line arguments to the program */
@@ -110,8 +115,16 @@
   int okWrTkt;            /* w: make changes to tickets via web */
   int okRdAddr;           /* e: read email addresses on tickets */
 
   FILE *fDebug;           /* Write debug information here, if the file exists */
+
+  /* Storage for the aux() and/or option() SQL function arguments */
+  int nAux;                    /* Number of distinct aux() or option() values */
+  const char *azAuxName[MX_AUX]; /* Name of each aux() or option() value */
+  char *azAuxParam[MX_AUX];      /* Param of each aux() or option() value */
+  const char *azAuxVal[MX_AUX];  /* Value of each aux() or option() value */
+  const char **azAuxOpt[MX_AUX]; /* Options of each option() value */
+  int anAuxCols[MX_AUX];         /* Number of columns for option() values */
 };
 
 /*
 ** Macro for debugging: