~ubuntu-branches/ubuntu/karmic/lighttpd/karmic

« back to all changes in this revision

Viewing changes to src/lempar.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-06 15:53:28 UTC
  • mfrom: (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606155328-6pr6j08kk4rdf8rz
Tags: 1.4.22-1ubuntu1
* Merge from debian unstable (LP: #384367), remaining changes:
  - debian/control: Depend on lsb (>= 3.2-14), which has the status_of_proc() 
    function; libgamin-dev rather than libfam-dev to fix startup warning.
  - debian/init.d: Add the 'status' action, clean environment; Check syntax 
    during start/reload/restart/force-reload.
  - debian/rules: set DEB_UPDATE_RCD_PARAMS to "defaults 91 09" to not start 
    lighty before apache2 but in the same runlevel with the same priority;
    Make sure that upgrades succeed, even if we can't restart lighttpd.
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set: 
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
* debian/patches/fix-conf-doc.patch: Update headers to match package version
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
** Outputs:
181
181
** None.
182
182
*/
 
183
#if 0
183
184
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
184
185
  yyTraceFILE = TraceFILE;
185
186
  yyTracePrompt = zTracePrompt;
186
187
  if( yyTraceFILE==0 ) yyTracePrompt = 0;
187
188
  else if( yyTracePrompt==0 ) yyTraceFILE = 0;
188
189
}
 
190
#endif
189
191
#endif /* NDEBUG */
190
192
 
191
193
#ifndef NDEBUG
208
210
** This function returns the symbolic name associated with a token
209
211
** value.
210
212
*/
 
213
#if 0
211
214
const char *ParseTokenName(int tokenType){
212
215
#ifndef NDEBUG
213
 
  if( tokenType>0 && tokenType<(sizeof(yyTokenName)/sizeof(yyTokenName[0])) ){
 
216
  if( tokenType>0 && (size_t)tokenType<(sizeof(yyTokenName)/sizeof(yyTokenName[0])) ){
214
217
    return yyTokenName[tokenType];
215
218
  }else{
216
219
    return "Unknown";
219
222
  return "";
220
223
#endif
221
224
}
 
225
#endif
222
226
 
223
227
/*
224
228
** This function allocates a new parser.
335
339
    return YY_NO_ACTION;
336
340
  }
337
341
  i += iLookAhead;
338
 
  if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
 
342
  if( i<0 || (size_t)i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
339
343
#ifdef YYFALLBACK
340
344
    int iFallback;            /* Fallback token */
341
345
    if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])
378
382
    return YY_NO_ACTION;
379
383
  }
380
384
  i += iLookAhead;
381
 
  if( i<0 || i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
 
385
  if( i<0 || (size_t)i>=YY_SZ_ACTTAB || yy_lookahead[i]!=iLookAhead ){
382
386
    return yy_default[stateno];
383
387
  }else{
384
388
    return yy_action[i];
456
460
  yymsp = &yypParser->yystack[yypParser->yyidx];
457
461
#ifndef NDEBUG
458
462
  if( yyTraceFILE && yyruleno>=0
459
 
        && yyruleno<sizeof(yyRuleName)/sizeof(yyRuleName[0]) ){
 
463
        && (size_t)yyruleno<sizeof(yyRuleName)/sizeof(yyRuleName[0]) ){
460
464
    fprintf(yyTraceFILE, "%sReduce [%s].\n", yyTracePrompt,
461
465
      yyRuleName[yyruleno]);
462
466
  }
512
516
  YYMINORTYPE yyminor            /* The minor type of the error token */
513
517
){
514
518
  ParseARG_FETCH;
 
519
  UNUSED(yymajor);
 
520
  UNUSED(yyminor);
515
521
#define TOKEN (yyminor.yy0)
516
522
%%
517
523
  ParseARG_STORE; /* Suppress warning about unused %extra_argument variable */