Diff for /embedaddon/lighttpd/src/lemon.c between versions 1.1.1.1 and 1.1.1.3

version 1.1.1.1, 2013/10/14 10:32:47 version 1.1.1.3, 2016/11/02 10:35:00
Line 1 Line 1
   #include "first.h"
   
 /*  /*
 ** This file contains all sources (including headers) to the LEMON  ** This file contains all sources (including headers) to the LEMON
 ** LALR(1) parser generator.  The sources have been combined into a  ** LALR(1) parser generator.  The sources have been combined into a
Line 12 Line 14
 #include <ctype.h>  #include <ctype.h>
 #include <stdlib.h>  #include <stdlib.h>
   
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  
 #endif  
   
 #ifdef HAVE_STDINT_H  #ifdef HAVE_STDINT_H
 # include <stdint.h>  # include <stdint.h>
 #endif  #endif
Line 1613  int n; Line 1611  int n;
 int k;  int k;
 FILE *err;  FILE *err;
 {  {
  int spcnt, i;  int spcnt = 0, i;
  if( argv[0] ) fprintf(err,"%s",argv[0]);  if( argv[0] ) {
  spcnt = strlen(argv[0]) + 1;    fprintf(err,"%s",argv[0]);
     spcnt += strlen(argv[0]) + 1;
   }
   for(i=1; i<n && argv[i]; i++){    for(i=1; i<n && argv[i]; i++){
     fprintf(err," %s",argv[i]);      fprintf(err," %s",argv[i]);
    spcnt += strlen(argv[i]+1);    spcnt += strlen(argv[i]) + 1;
   }    }
   spcnt += k;    spcnt += k;
   for(; argv[i]; i++) fprintf(err," %s",argv[i]);    for(; argv[i]; i++) fprintf(err," %s",argv[i]);

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>