added missing entries into Makefile.am

This commit is contained in:
hyung-hwan 2009-02-24 21:57:28 +00:00
parent a0e3b67946
commit 0cedc33a2c
6 changed files with 192 additions and 193 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $Id: awk.h 78 2009-02-23 14:03:28Z hyunghwan.chung $ * $Id: awk.h 79 2009-02-24 03:57:28Z hyunghwan.chung $
* *
Copyright 2006-2009 Chung, Hyung-Hwan. Copyright 2006-2009 Chung, Hyung-Hwan.
@ -49,14 +49,142 @@ typedef struct qse_awk_t qse_awk_t;
typedef struct qse_awk_rtx_t qse_awk_rtx_t; /* (R)untime con(T)e(X)t */ typedef struct qse_awk_rtx_t qse_awk_rtx_t; /* (R)untime con(T)e(X)t */
/******/ /******/
/* this is not a value. it is just a value holder */
typedef struct qse_awk_val_chunk_t qse_awk_val_chunk_t;
#if QSE_SIZEOF_INT == 2
# define QSE_AWK_VAL_HDR \
unsigned int type: 3; \
unsigned int ref: 13
#else
# define QSE_AWK_VAL_HDR \
unsigned int type: 3; \
unsigned int ref: 29
#endif
#define QSE_AWK_VAL_TYPE(x) ((x)->type)
/****s* AWK/qse_awk_val_t
* NAME
* qse_awk_val_t - define an abstract value type
* SYNOPSIS
*/
struct qse_awk_val_t
{
QSE_AWK_VAL_HDR;
};
typedef struct qse_awk_val_t qse_awk_val_t; typedef struct qse_awk_val_t qse_awk_val_t;
/******/
/****s* AWK/qse_awk_val_nil_t
* NAME
* qse_awk_val_nil_t - define a nil value type
* DESCRIPTION
* The type field is QSE_AWK_VAL_NIL.
* SYNOPSIS
*/
struct qse_awk_val_nil_t
{
QSE_AWK_VAL_HDR;
};
typedef struct qse_awk_val_nil_t qse_awk_val_nil_t;
/******/
/****s* AWK/qse_awk_val_int_t
* NAME
* qse_awk_val_int_t - define an integer number type
* DESCRIPTION
* The type field is QSE_AWK_VAL_INT.
* SYNOPSIS
*/
struct qse_awk_val_int_t
{
QSE_AWK_VAL_HDR;
qse_long_t val;
void* nde;
};
typedef struct qse_awk_val_int_t qse_awk_val_int_t;
/******/
/****s* AWK/qse_awk_val_real_t
* NAME
* qse_awk_val_real_t - define a floating-point number type
* DESCRIPTION
* The type field is QSE_AWK_VAL_REAL.
* SYNOPSIS
*/
struct qse_awk_val_real_t
{
QSE_AWK_VAL_HDR;
qse_real_t val;
void* nde;
};
typedef struct qse_awk_val_real_t qse_awk_val_real_t;
/******/
/****s* AWK/qse_awk_val_str_t
* NAME
* qse_awk_val_str_t - define a string type
* DESCRIPTION
* The type field is QSE_AWK_VAL_STR.
* SYNOPSIS
*/
struct qse_awk_val_str_t
{
QSE_AWK_VAL_HDR;
qse_char_t* ptr;
qse_size_t len;
};
typedef struct qse_awk_val_str_t qse_awk_val_str_t;
/******/
/****s* AWK/qse_awk_val_rex_t
* NAME
* qse_awk_val_rex_t - define a regular expression type
* DESCRIPTION
* The type field is QSE_AWK_VAL_REX.
* SYNOPSIS
*/
struct qse_awk_val_rex_t
{
QSE_AWK_VAL_HDR;
qse_char_t* ptr;
qse_size_t len;
void* code;
};
typedef struct qse_awk_val_rex_t qse_awk_val_rex_t;
/******/
/* QSE_AWK_VAL_MAP */
struct qse_awk_val_map_t
{
QSE_AWK_VAL_HDR;
/* TODO: make val_map to array if the indices used are all
* integers switch to map dynamically once the
* non-integral index is seen.
*/
qse_map_t* map;
};
typedef struct qse_awk_val_map_t qse_awk_val_map_t;
/* QSE_AWK_VAL_REF */
struct qse_awk_val_ref_t
{
QSE_AWK_VAL_HDR;
int id;
/* if id is QSE_AWK_VAL_REF_POS, adr holds an index of the
* positional variable. Otherwise, adr points to the value
* directly. */
qse_awk_val_t** adr;
};
typedef struct qse_awk_val_ref_t qse_awk_val_ref_t;
typedef struct qse_awk_prm_t qse_awk_prm_t; typedef struct qse_awk_prm_t qse_awk_prm_t;
typedef struct qse_awk_sio_t qse_awk_sio_t; typedef struct qse_awk_sio_t qse_awk_sio_t;
typedef struct qse_awk_rio_t qse_awk_rio_t; typedef struct qse_awk_rio_t qse_awk_rio_t;
typedef struct qse_awk_riod_t qse_awk_riod_t; typedef struct qse_awk_riod_t qse_awk_riod_t;
typedef struct qse_awk_rcb_t qse_awk_rcb_t; typedef struct qse_awk_rcb_t qse_awk_rcb_t;
typedef qse_real_t (*qse_awk_pow_t) ( typedef qse_real_t (*qse_awk_pow_t) (
@ -582,131 +710,6 @@ struct qse_awk_valtostr_out_t
typedef struct qse_awk_valtostr_out_t qse_awk_valtostr_out_t; typedef struct qse_awk_valtostr_out_t qse_awk_valtostr_out_t;
#endif #endif
typedef struct qse_awk_val_nil_t qse_awk_val_nil_t;
typedef struct qse_awk_val_rex_t qse_awk_val_rex_t;
typedef struct qse_awk_val_map_t qse_awk_val_map_t;
typedef struct qse_awk_val_ref_t qse_awk_val_ref_t;
/* this is not a value. it is just a value holder */
typedef struct qse_awk_val_chunk_t qse_awk_val_chunk_t;
#if QSE_SIZEOF_INT == 2
# define QSE_AWK_VAL_HDR \
unsigned int type: 3; \
unsigned int ref: 13
#else
# define QSE_AWK_VAL_HDR \
unsigned int type: 3; \
unsigned int ref: 29
#endif
#define QSE_AWK_VAL_TYPE(x) ((x)->type)
/****s* AWK/qse_awk_val_t
* NAME
* qse_awk_val_t - define an abstract value type
* SYNOPSIS
*/
struct qse_awk_val_t
{
QSE_AWK_VAL_HDR;
};
/******/
/****s* AWK/qse_awk_val_nil_t
* NAME
* qse_awk_val_nil_t - define a nil value type
* DESCRIPTION
* The type field is QSE_AWK_VAL_NIL.
* SYNOPSIS
*/
struct qse_awk_val_nil_t
{
QSE_AWK_VAL_HDR;
};
/******/
/****s* AWK/qse_awk_val_int_t
* NAME
* qse_awk_val_int_t - define an integer number type
* DESCRIPTION
* The type field is QSE_AWK_VAL_INT.
* SYNOPSIS
*/
struct qse_awk_val_int_t
{
QSE_AWK_VAL_HDR;
qse_long_t val;
void* nde;
};
typedef struct qse_awk_val_int_t qse_awk_val_int_t;
/******/
/****s* AWK/qse_awk_val_real_t
* NAME
* qse_awk_val_real_t - define a floating-point number type
* DESCRIPTION
* The type field is QSE_AWK_VAL_REAL.
* SYNOPSIS
*/
struct qse_awk_val_real_t
{
QSE_AWK_VAL_HDR;
qse_real_t val;
void* nde;
};
typedef struct qse_awk_val_real_t qse_awk_val_real_t;
/******/
/****s* AWK/qse_awk_val_str_t
* NAME
* qse_awk_val_str_t - define a string type
* DESCRIPTION
* The type field is QSE_AWK_VAL_STR.
* SYNOPSIS
*/
struct qse_awk_val_str_t
{
QSE_AWK_VAL_HDR;
qse_char_t* ptr;
qse_size_t len;
};
typedef struct qse_awk_val_str_t qse_awk_val_str_t;
/******/
/* QSE_AWK_VAL_REX */
struct qse_awk_val_rex_t
{
QSE_AWK_VAL_HDR;
qse_char_t* ptr;
qse_size_t len;
void* code;
};
/* QSE_AWK_VAL_MAP */
struct qse_awk_val_map_t
{
QSE_AWK_VAL_HDR;
/* TODO: make val_map to array if the indices used are all
* integers switch to map dynamically once the
* non-integral index is seen.
*/
qse_map_t* map;
};
/* QSE_AWK_VAL_REF */
struct qse_awk_val_ref_t
{
QSE_AWK_VAL_HDR;
int id;
/* if id is QSE_AWK_VAL_REF_POS, adr holds an index of the
* positional variable. Otherwise, adr points to the value
* directly. */
qse_awk_val_t** adr;
};
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -1,5 +1,5 @@
pkginclude_HEADERS = http.h main.h stdio.h pkginclude_HEADERS = http.h main.h stdio.h sed.h tgp.h
pkgincludedir= $(includedir)/qse/utl pkgincludedir= $(includedir)/qse/utl

View File

@ -177,7 +177,7 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@ target_alias = @target_alias@
top_builddir = @top_builddir@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
pkginclude_HEADERS = http.h main.h stdio.h pkginclude_HEADERS = http.h main.h stdio.h sed.h tgp.h
CLEANFILES = *dist CLEANFILES = *dist
all: all-am all: all-am

View File

@ -3,7 +3,8 @@ AUTOMAKE_OPTIONS = nostdinc
AM_CFLAGS = -I$(top_builddir)/include AM_CFLAGS = -I$(top_builddir)/include
lib_LTLIBRARIES = libqsecmn.la lib_LTLIBRARIES = libqsecmn.la
libqsecmn_la_SOURCES = mem.h chr.h \ libqsecmn_la_SOURCES = \
syscall.h mem.h chr.h \
mem.c chr.c chr_cnv.c rex.c \ mem.c chr.c chr_cnv.c rex.c \
str_bas.c str_cnv.c str_dyn.c str_utl.c \ str_bas.c str_cnv.c str_dyn.c str_utl.c \
lda.c map.c sll.c dll.c opt.c \ lda.c map.c sll.c dll.c opt.c \

View File

@ -200,7 +200,8 @@ top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = nostdinc AUTOMAKE_OPTIONS = nostdinc
AM_CFLAGS = -I$(top_builddir)/include AM_CFLAGS = -I$(top_builddir)/include
lib_LTLIBRARIES = libqsecmn.la lib_LTLIBRARIES = libqsecmn.la
libqsecmn_la_SOURCES = mem.h chr.h \ libqsecmn_la_SOURCES = \
syscall.h mem.h chr.h \
mem.c chr.c chr_cnv.c rex.c \ mem.c chr.c chr_cnv.c rex.c \
str_bas.c str_cnv.c str_dyn.c str_utl.c \ str_bas.c str_cnv.c str_dyn.c str_utl.c \
lda.c map.c sll.c dll.c opt.c \ lda.c map.c sll.c dll.c opt.c \

View File

@ -48,27 +48,21 @@
#endif #endif
#if !defined(_LP64) && defined(SYS__llseek) #if !defined(_LP64) && defined(SYS__llseek)
#define QSE_LLSEEK(handle,hoffset,loffset,out,whence) \ # define QSE_LLSEEK(handle,hoffset,loffset,out,whence) syscall(SYS__llseek,handle,hoffset,loffset,out,whence)
syscall(SYS__llseek,handle,hoffset,loffset,out,whence)
#elif !defined(_LP64) && defined(HAVE__LLSEEK) #elif !defined(_LP64) && defined(HAVE__LLSEEK)
#define QSE_LLSEEK(handle,hoffset,loffset,out,whence) \ # define QSE_LLSEEK(handle,hoffset,loffset,out,whence) _llseek(handle,hoffset,loffset,out,whence)
_llseek(handle,hoffset,loffset,out,whence)
#endif #endif
#if defined(SYS_lseek65) #if defined(SYS_lseek65)
#define QSE_LSEEK64(handle,offset,whence) \ # define QSE_LSEEK64(handle,offset,whence) syscall(SYS_lseek64,handle,offset,whence)
syscall(SYS_lseek64,handle,offset,whence)
#elif defined(HAVE_lseek64) #elif defined(HAVE_lseek64)
#define QSE_LSEEK64(handle,offset,whence) \ # define QSE_LSEEK64(handle,offset,whence) lseek64(handle,offset,whence)
lseek64(handle,offset,whence)
#endif #endif
#if defined(SYS_lseek) #if defined(SYS_lseek)
#define QSE_LSEEK(handle,offset,whence) \ # define QSE_LSEEK(handle,offset,whence) syscall(SYS_lseek,handle,offset,whence)
syscall(SYS_lseek,handle,offset,whence)
#else #else
#define QSE_LSEEK(handle,offset,whence) \ # define QSE_LSEEK(handle,offset,whence) lseek(handle,offset,whence)
lseek(handle,offset,whence)
#endif #endif
#if !defined(_LP64) && defined(SYS_ftruncate64) #if !defined(_LP64) && defined(SYS_ftruncate64)