version 1.3, 2020/03/29 17:01:55 |
version 1.4, 2020/10/06 06:31:20 |
|
|
* 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" |
|
|
} |
} |
} else |
} else |
return ( c ); |
return ( c ); |
|
/* XXX */ |
|
return 0; |
} |
} |
|
|
void purge_stdin() |
void purge_stdin() |
|
|
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]); |
} |
} |