[BACK]Return to lex.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018 / parse

Diff for /OpenXM_contrib2/asir2018/parse/lex.c between version 1.3 and 1.4

version 1.3, 2020/03/29 17:01:55 version 1.4, 2020/10/06 06:31:20
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2018/parse/lex.c,v 1.2 2019/12/13 14:40:50 fujimoto Exp $   * $OpenXM: OpenXM_contrib2/asir2018/parse/lex.c,v 1.3 2020/03/29 17:01:55 fujimoto Exp $
 */  */
 #include <ctype.h>  #include <ctype.h>
 #include "ca.h"  #include "ca.h"
Line 455  int yylex()
Line 455  int yylex()
     }      }
   } else    } else
     return ( c );      return ( c );
     /* XXX */
     return 0;
 }  }
   
 void purge_stdin()  void purge_stdin()
Line 520  int afternl() {
Line 522  int afternl() {
         quote = quote ? 0 : 1;          quote = quote ? 0 : 1;
       else if ( quote && (*ptr == ' ') )        else if ( quote && (*ptr == ' ') )
         *ptr = '_';          *ptr = '_';
     stoarg(buf0,&ac,av);      stoarg(buf0,&ac,av);
     if ( ac == 3 )      if ( ac == 3 ) {
       if ( (i = atoi(av[2])) == 1 )        if ( (i = atoi(av[2])) == 1 )
         ilevel++;          ilevel++;
       else if ( i == 2 )        else if ( i == 2 )
         ilevel--;          ilevel--;
       }
     if ( !ilevel )      if ( !ilevel )
       asir_infile->ln = atoi(av[0]);        asir_infile->ln = atoi(av[0]);
   }    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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