/ Check-in [ca570a02]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed unused variables.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lemon-update-2010
Files: files | file ages | folders
SHA1: ca570a02f5c5215098050de4eb551b2dcd11b1fd
User & Date: icculus 2010-02-17 05:40:34
Context
2010-02-17
20:19
Corrected error message (cut-and-paste bug). check-in: b3839f2a user: icculus tags: lemon-update-2010
05:40
Removed unused variables. check-in: ca570a02 user: icculus tags: lemon-update-2010
2010-02-16
16:09
Removed %expect directive, on drh's advice. check-in: b43ac330 user: icculus tags: lemon-update-2010
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  1976   1976     struct rule *firstrule;    /* Pointer to first rule in the grammar */
  1977   1977     struct rule *lastrule;     /* Pointer to the most recently parsed rule */
  1978   1978   };
  1979   1979   
  1980   1980   /* Parse a single token */
  1981   1981   static void parseonetoken(struct pstate *psp)
  1982   1982   {
  1983         -  char *endptr;
  1984   1983     const char *x;
  1985   1984     x = Strsafe(psp->tokenstart);     /* Save the token permanently */
  1986   1985   #if 0
  1987   1986     printf("%s:%d: Token=[%s] state=%d\n",psp->filename,psp->tokenlineno,
  1988   1987       x,psp->state);
  1989   1988   #endif
  1990   1989     switch( psp->state ){
................................................................................
  3572   3571     FILE *out, *in;
  3573   3572     char line[LINESIZE];
  3574   3573     int  lineno;
  3575   3574     struct state *stp;
  3576   3575     struct action *ap;
  3577   3576     struct rule *rp;
  3578   3577     struct acttab *pActtab;
  3579         -  int i, j, k, n;
         3578  +  int i, j, n;
  3580   3579     const char *name;
  3581   3580     int mnTknOfst, mxTknOfst;
  3582   3581     int mnNtOfst, mxNtOfst;
  3583   3582     struct axset *ax;
  3584   3583   
  3585   3584     in = tplt_open(lemp);
  3586   3585     if( in==0 ) return;