version 1.15, 2005/10/19 04:51:15 |
version 1.19, 2017/02/07 08:30:31 |
|
|
* 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/asir2000/parse/util.c,v 1.14 2005/09/14 02:48:38 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/util.c,v 1.18 2015/08/14 13:51:56 fujimoto Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
#include "parse.h" |
#include "parse.h" |
#if defined(__GNUC__) || defined(VISUAL) || (defined(__MACH__) && defined(__ppc__)) || defined(__FreeBSD__) |
#if defined(__GNUC__) || defined(VISUAL) || defined(__MINGW32__) || (defined(__MACH__) && defined(__ppc__)) || defined(__FreeBSD__) |
#include <stdarg.h> |
#include <stdarg.h> |
#else |
#else |
#include <varargs.h> |
#include <varargs.h> |
|
|
return ( r ); |
return ( r ); |
} |
} |
|
|
#if defined(__GNUC__) || defined(VISUAL) || (defined(__MACH__) && defined(__ppc__)) || defined(__FreeBSD__) |
#if defined(__GNUC__) || defined(VISUAL) || defined(__MINGW32__) || (defined(__MACH__) && defined(__ppc__)) || defined(__FreeBSD__) |
NODE mknode(int ac,...) |
NODE mknode(int ac,...) |
{ |
{ |
va_list ap; |
va_list ap; |
Line 393 V searchvar(char *str) |
|
Line 393 V searchvar(char *str) |
|
{ |
{ |
VL vl; |
VL vl; |
|
|
for ( vl = CO; ;vl = NEXT(vl) ) |
for ( vl = CO; vl ;vl = NEXT(vl) ) |
if ( NAME(VR(vl)) && !strcmp(NAME(VR(vl)),str) ) |
if ( NAME(VR(vl)) && !strcmp(NAME(VR(vl)),str) ) |
return VR(vl); |
return VR(vl); |
return 0; |
return 0; |
Line 479 void appendvar(VL vl,V v) |
|
Line 479 void appendvar(VL vl,V v) |
|
vl = NEXT(vl); |
vl = NEXT(vl); |
} |
} |
|
|
void reallocarray(char **arrayp,int *sizep,int *indexp,int esize) |
void asir_reallocarray(char **arrayp,int *sizep,int *indexp,int esize) |
{ |
{ |
char *new; |
char *new; |
|
|