documented code a little

This commit is contained in:
hyung-hwan 2009-06-02 07:33:01 +00:00
parent cd52c663cf
commit 9fcfd0c0ba
11 changed files with 17816 additions and 17107 deletions

8927
qse/aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
#! /bin/sh #! /bin/sh
# Attempt to guess a canonical system name. # Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Free Software Foundation, Inc. # Inc.
timestamp='2008-01-23' timestamp='2007-07-22'
# This file is free software; you can redistribute it and/or modify it # This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
@ -56,8 +56,8 @@ version="\
GNU config.guess ($timestamp) GNU config.guess ($timestamp)
Originally written by Per Bothner. Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@ -532,7 +532,7 @@ EOF
echo rs6000-ibm-aix3.2 echo rs6000-ibm-aix3.2
fi fi
exit ;; exit ;;
*:AIX:*:[456]) *:AIX:*:[45])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000 IBM_ARCH=rs6000
@ -799,9 +799,6 @@ EOF
EM64T | authenticamd) EM64T | authenticamd)
echo x86_64-unknown-interix${UNAME_RELEASE} echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;; exit ;;
IA64)
echo ia64-unknown-interix${UNAME_RELEASE}
exit ;;
esac ;; esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks echo i${UNAME_MACHINE}-pc-mks
@ -836,14 +833,7 @@ EOF
echo ${UNAME_MACHINE}-pc-minix echo ${UNAME_MACHINE}-pc-minix
exit ;; exit ;;
arm*:Linux:*:*) arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
echo ${UNAME_MACHINE}-unknown-linux-gnu echo ${UNAME_MACHINE}-unknown-linux-gnu
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
fi
exit ;; exit ;;
avr32*:Linux:*:*) avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu echo ${UNAME_MACHINE}-unknown-linux-gnu
@ -964,8 +954,8 @@ EOF
x86_64:Linux:*:*) x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu echo x86_64-unknown-linux-gnu
exit ;; exit ;;
xtensa*:Linux:*:*) xtensa:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu echo xtensa-unknown-linux-gnu
exit ;; exit ;;
i*86:Linux:*:*) i*86:Linux:*:*)
# The BFD linker knows what the default object file format is, so # The BFD linker knows what the default object file format is, so
@ -1484,9 +1474,9 @@ This script, last modified $timestamp, has failed to recognize
the operating system you are using. It is advised that you the operating system you are using. It is advised that you
download the most up to date version of the config scripts from download the most up to date version of the config scripts from
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
If the version you run ($0) is already up to date, please If the version you run ($0) is already up to date, please
send the following data and any information you think might be send the following data and any information you think might be

View File

@ -1,10 +1,10 @@
#! /bin/sh #! /bin/sh
# Configuration validation subroutine script. # Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Free Software Foundation, Inc. # Inc.
timestamp='2008-01-16' timestamp='2007-06-28'
# This file is (in principle) common to ALL GNU software. # This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software # The presence of a machine in this file suggests that SOME GNU software
@ -72,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\ version="\
GNU config.sub ($timestamp) GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@ -369,14 +369,10 @@ case $basic_machine in
| v850-* | v850e-* | vax-* \ | v850-* | v850e-* | vax-* \
| we32k-* \ | we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa*-* \ | xstormy16-* | xtensa-* \
| ymp-* \ | ymp-* \
| z8k-*) | z8k-*)
;; ;;
# Recognize the basic CPU types without company name, with glob match.
xtensa*)
basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand # Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS. # for a CPU type and a company and sometimes even an OS.
386bsd) 386bsd)
@ -447,14 +443,6 @@ case $basic_machine in
basic_machine=ns32k-sequent basic_machine=ns32k-sequent
os=-dynix os=-dynix
;; ;;
blackfin)
basic_machine=bfin-unknown
os=-linux
;;
blackfin-*)
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
c90) c90)
basic_machine=c90-cray basic_machine=c90-cray
os=-unicos os=-unicos
@ -680,14 +668,6 @@ case $basic_machine in
basic_machine=m68k-isi basic_machine=m68k-isi
os=-sysv os=-sysv
;; ;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
;;
m68knommu-*)
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
m88k-omron*) m88k-omron*)
basic_machine=m88k-omron basic_machine=m88k-omron
;; ;;
@ -833,14 +813,6 @@ case $basic_machine in
basic_machine=i860-intel basic_machine=i860-intel
os=-osf os=-osf
;; ;;
parisc)
basic_machine=hppa-unknown
os=-linux
;;
parisc-*)
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
pbd) pbd)
basic_machine=sparc-tti basic_machine=sparc-tti
;; ;;
@ -1049,10 +1021,6 @@ case $basic_machine in
basic_machine=tic6x-unknown basic_machine=tic6x-unknown
os=-coff os=-coff
;; ;;
tile*)
basic_machine=tile-unknown
os=-linux-gnu
;;
tx39) tx39)
basic_machine=mipstx39-unknown basic_machine=mipstx39-unknown
;; ;;

File diff suppressed because it is too large Load Diff

14367
qse/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -114,7 +114,7 @@ FULL_PATH_NAMES = YES
# If left blank the directory from which doxygen is run is used as the # If left blank the directory from which doxygen is run is used as the
# path to strip. # path to strip.
STRIP_FROM_PATH = /home/bacon/workspace/qse/include STRIP_FROM_PATH = @abs_top_srcdir@/include
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
# the path mentioned in the documentation of a class, which tells # the path mentioned in the documentation of a class, which tells
@ -564,7 +564,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories # directories like "/usr/src/myproject". Separate the files or directories
# with spaces. # with spaces.
INPUT = ../include ./page INPUT = @abs_top_srcdir@/include ./page
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.hpp 171 2009-06-01 09:34:34Z hyunghwan.chung $ * $Id: Awk.hpp 172 2009-06-01 13:33:01Z hyunghwan.chung $
* *
Copyright 2006-2009 Chung, Hyung-Hwan. Copyright 2006-2009 Chung, Hyung-Hwan.
@ -395,7 +395,7 @@ public:
// generated by generrcode.awk // generated by generrcode.awk
/** Defines the error code */ /** Defines the error code */
enum ErrorCode enum ErrorNumber
{ {
ERR_NOERR = QSE_AWK_ENOERR, ERR_NOERR = QSE_AWK_ENOERR,
ERR_UNKNOWN = QSE_AWK_EUNKNOWN, ERR_UNKNOWN = QSE_AWK_EUNKNOWN,
@ -526,7 +526,7 @@ public:
ERR_REXEND = QSE_AWK_EREXEND, ERR_REXEND = QSE_AWK_EREXEND,
ERR_REXGARBAGE = QSE_AWK_EREXGARBAGE, ERR_REXGARBAGE = QSE_AWK_EREXGARBAGE,
}; };
// end of enum ErrorCode // end of enum ErrorNumber
// generated by genoptcode.awk // generated by genoptcode.awk
@ -599,17 +599,17 @@ public:
void stop () const; void stop () const;
bool isStop () const; bool isStop () const;
ErrorCode getErrorCode () const; ErrorNumber getErrorNumber () const;
size_t getErrorLine () const; size_t getErrorLine () const;
const char_t* getErrorMessage () const; const char_t* getErrorMessage () const;
void setError (ErrorCode code); void setError (ErrorNumber code);
void setError (ErrorCode code, size_t line); void setError (ErrorNumber code, size_t line);
void setError (ErrorCode code, size_t line, const char_t* arg); void setError (ErrorNumber code, size_t line, const char_t* arg);
void setError (ErrorCode code, size_t line, const char_t* arg, size_t len); void setError (ErrorNumber code, size_t line, const char_t* arg, size_t len);
void setErrorWithMessage ( void setErrorWithMessage (
ErrorCode code, size_t line, const char_t* msg); ErrorNumber code, size_t line, const char_t* msg);
/** /**
* Sets the value of a global variable. The global variable * Sets the value of a global variable. The global variable
@ -724,7 +724,7 @@ public:
operator awk_t* () const; operator awk_t* () const;
/** Returns the error code */ /** Returns the error code */
ErrorCode getErrorCode () const; ErrorNumber getErrorNumber () const;
/** Returns the line of the source code where the error occurred */ /** Returns the line of the source code where the error occurred */
size_t getErrorLine () const ; size_t getErrorLine () const ;
@ -743,13 +743,13 @@ public:
} }
protected: protected:
void setError (ErrorCode code); void setError (ErrorNumber code);
void setError (ErrorCode code, size_t line); void setError (ErrorNumber code, size_t line);
void setError (ErrorCode code, size_t line, const char_t* arg); void setError (ErrorNumber code, size_t line, const char_t* arg);
void setError (ErrorCode code, size_t line, const char_t* arg, size_t len); void setError (ErrorNumber code, size_t line, const char_t* arg, size_t len);
void setErrorWithMessage ( void setErrorWithMessage (
ErrorCode code, size_t line, const char_t* msg); ErrorNumber code, size_t line, const char_t* msg);
void clearError (); void clearError ();
void retrieveError (); void retrieveError ();
@ -764,7 +764,7 @@ public:
* *
* @return * @return
* On success, 0 is returned. On failure -1 is returned and * On success, 0 is returned. On failure -1 is returned and
* extended error information is set. Call Awk::getErrorCode * extended error information is set. Call Awk::getErrorNumber
* to get it. * to get it.
*/ */
virtual int open (); virtual int open ();
@ -795,7 +795,7 @@ public:
virtual size_t getMaxDepth (int id) const; virtual size_t getMaxDepth (int id) const;
virtual const char_t* getErrorString ( virtual const char_t* getErrorString (
ErrorCode num ErrorNumber num
) const; ) const;
virtual int getWord ( virtual int getWord (
@ -821,7 +821,7 @@ public:
* *
* @return * @return
* On success, 0 is returned. On failure, -1 is returned and * On success, 0 is returned. On failure, -1 is returned and
* extended error information is set. Call Awk::getErrorCode * extended error information is set. Call Awk::getErrorNumber
* to get it. * to get it.
*/ */
virtual int parse (); virtual int parse ();
@ -843,7 +843,7 @@ public:
* is enabled, 0 is returned and the error is indicated through * is enabled, 0 is returned and the error is indicated through
* Awk::onRunEnd. The run-time callback is enabled and disbaled * Awk::onRunEnd. The run-time callback is enabled and disbaled
* with Awk::enableRunCallback and Awk::disableRunCallback. * with Awk::enableRunCallback and Awk::disableRunCallback.
* Call Awk::getErrorCode to get extended error information. * Call Awk::getErrorNumber to get extended error information.
*/ */
virtual int run (const char_t** args = QSE_NULL, size_t nargs = 0); virtual int run (const char_t** args = QSE_NULL, size_t nargs = 0);
@ -1047,7 +1047,7 @@ protected:
Source sourceIn; Source sourceIn;
Source sourceOut; Source sourceOut;
ErrorCode errnum; ErrorNumber errnum;
size_t errlin; size_t errlin;
char_t errmsg[256]; char_t errmsg[256];

View File

@ -1,5 +1,5 @@
/* /*
* $Id: types.h 151 2009-05-21 06:50:02Z hyunghwan.chung $ * $Id: types.h 172 2009-06-01 13:33:01Z hyunghwan.chung $
* *
Copyright 2006-2009 Chung, Hyung-Hwan. Copyright 2006-2009 Chung, Hyung-Hwan.
@ -19,14 +19,9 @@
#ifndef _QSE_TYPES_H_ #ifndef _QSE_TYPES_H_
#define _QSE_TYPES_H_ #define _QSE_TYPES_H_
/****o* Base/Basic Types /**@file
* DESCRIPTION * The <qse/types.h> file defines various common basic types designed to be
* <qse/types.h> defines various common basic types. They are designed to be * cross-platform. These types are preferred over native data types.
* cross-platform. These types are preferred over native data types in many
* contexts.
*
* #include <qse/types.h>
******
*/ */
/* WARNING: NEVER CHANGE/DELETE THE FOLLOWING LINE */ /* WARNING: NEVER CHANGE/DELETE THE FOLLOWING LINE */
@ -42,29 +37,20 @@
# error unsupported operating system # error unsupported operating system
#endif #endif
/****t* Base/qse_bool_t /**
* NAME * The qse_bool_t type defines a boolean type that can represent #QSE_TRUE
* qse_bool_t - define a boolean type * and #QSE_FALSE.
* DESCRIPTION
* The qse_bool_t type defines a boolean type that can represent QSE_TRUE
* and QSE_FALSE.
* SYNOPSIS
*/ */
enum qse_bool_t enum qse_bool_t
{ {
QSE_TRUE = (0 == 0), QSE_TRUE = (0 == 0),
QSE_FALSE = (0 != 0) QSE_FALSE = (0 != 0)
}; };
/******/
typedef enum qse_bool_t qse_bool_t; typedef enum qse_bool_t qse_bool_t;
/****t* Base/qse_tri_t /**
* NAME * The qse_tri_t type defines a tri-state type that can represent #QSE_ALIVE,
* qse_tri_t - define a tri-state type * #QSE_ZOMBIE, and #QSE_DEAD.
* DESCRIPTION
* The qse_tri_t type defines a tri-state type that can represent QSE_ALIVE,
* QSE_ZOMBIE, and QSE_DEAD.
* SYNOPSIS
*/ */
enum qse_tri_t enum qse_tri_t
{ {
@ -72,14 +58,13 @@ enum qse_tri_t
QSE_ZOMBIE = 0, QSE_ZOMBIE = 0,
QSE_DEAD = -1 QSE_DEAD = -1
}; };
/******/
typedef enum qse_tri_t qse_tri_t; typedef enum qse_tri_t qse_tri_t;
/****t* Base/qse_int_t,Base/qse_uint_t /** @typedef qse_int_t
* NAME * The qse_int_t type defines a signed integer type as large as a pointer.
* * qse_int_t - define a signed integer type as large as a pointer type */
* * qse_uint_t - define an unsigned integer type as large as a pointer type /** @typedef qse_uint_t
****** * The qse_uint_t type defines an unsigned integer type as large as a pointer.
*/ */
#if (defined(hpux) || defined(__hpux) || defined(__hpux__)) && \ #if (defined(hpux) || defined(__hpux) || defined(__hpux__)) && \
(QSE_SIZEOF_VOID_P == QSE_SIZEOF_LONG) (QSE_SIZEOF_VOID_P == QSE_SIZEOF_LONG)
@ -107,11 +92,11 @@ typedef enum qse_tri_t qse_tri_t;
# error unsupported pointer size # error unsupported pointer size
#endif #endif
/****t* Base/qse_long_t,Base/qse_ulong_t /** @typedef qse_long_t
* NAME * The qse_long_t type defines the largest signed integer type supported
* * qse_long_t - define the largest signed integer type supported */
* * qse_ulong_t - define the largest unsigned integer type supported /** @typedef qse_ulong_t
****** * The qse_ulong_t type defines the largest unsigned integer type supported
*/ */
#if QSE_SIZEOF_LONG_LONG > 0 #if QSE_SIZEOF_LONG_LONG > 0
typedef long long qse_long_t; typedef long long qse_long_t;
@ -124,11 +109,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned long qse_ulong_t; typedef unsigned long qse_ulong_t;
#endif #endif
/****t* Base/qse_int8_t,Base/qse_uint8_t /** @typedef qse_int8_t
* NAME * The qse_int8_t defines an 8-bit signed integer type.
* * qse_int8_t - define an 8-bit signed integer type */
* * qse_uint8_t - define an 8-bit unsigned integer type /** @typedef qse_uint8_t
****** * The qse_uint8_t type defines an 8-bit unsigned integer type.
*/ */
#if QSE_SIZEOF_CHAR == 1 #if QSE_SIZEOF_CHAR == 1
typedef char qse_int8_t; typedef char qse_int8_t;
@ -138,11 +123,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int8 qse_uint8_t; typedef unsigned __int8 qse_uint8_t;
#endif #endif
/****t* Base/qse_int16_t,Base/qse_uint16_t /** @typedef qse_int16_t
* NAME * The qse_int16_t defines an 16-bit signed integer type.
* * qse_int16_t - define a 16-bit signed integer type */
* * qse_uint16_t - define a 16-bit unsigned integer type /** @typedef qse_uint16_t
****** * The qse_uint16_t type defines an 16-bit unsigned integer type.
*/ */
#if QSE_SIZEOF_SHORT == 2 #if QSE_SIZEOF_SHORT == 2
typedef short qse_int16_t; typedef short qse_int16_t;
@ -152,11 +137,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int16 qse_uint16_t; typedef unsigned __int16 qse_uint16_t;
#endif #endif
/****t* Base/qse_int32_t,Base/qse_uint32_t /** @typedef qse_int32_t
* NAME * The qse_int32_t defines an 32-bit signed integer type.
* * qse_int32_t - define a 32-bit signed integer type */
* * qse_uint32_t - define a 32-bit unsigned integer type /** @typedef qse_uint32_t
****** * The qse_uint32_t type defines an 32-bit unsigned integer type.
*/ */
#if QSE_SIZEOF_INT == 4 #if QSE_SIZEOF_INT == 4
typedef int qse_int32_t; typedef int qse_int32_t;
@ -169,11 +154,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int32 qse_uint32_t; typedef unsigned __int32 qse_uint32_t;
#endif #endif
/****t* Base/qse_int64_t,Base/qse_uint64_t /** @typedef qse_int64_t
* NAME * The qse_int64_t defines an 64-bit signed integer type.
* * qse_int64_t - define a 64-bit signed integer type */
* * qse_uint64_t - define a 64-bit unsigned integer type /** @typedef qse_uint64_t
****** * The qse_uint64_t type defines an 64-bit unsigned integer type.
*/ */
#if QSE_SIZEOF_INT == 8 #if QSE_SIZEOF_INT == 8
# define QSE_HAVE_INT64_T # define QSE_HAVE_INT64_T
@ -219,17 +204,14 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int128 qse_uint128_t; typedef unsigned __int128 qse_uint128_t;
#endif #endif
/****t* Base/qse_byte_t /**
* NAME * The qse_byte_t defines a byte type.
* qse_byte_t - define a byte type
******
*/ */
typedef qse_uint8_t qse_byte_t; typedef qse_uint8_t qse_byte_t;
/****t* Base/qse_size_t /**
* NAME * The qse_size_t type defines an unsigned integer type that is as large as
* qse_size_t - define an unsigned integer type that can hold a pointer value * to hold a pointer value.
******
*/ */
#ifdef __SIZE_TYPE__ #ifdef __SIZE_TYPE__
typedef __SIZE_TYPE__ qse_size_t; typedef __SIZE_TYPE__ qse_size_t;
@ -237,24 +219,20 @@ typedef qse_uint8_t qse_byte_t;
typedef qse_uint_t qse_size_t; typedef qse_uint_t qse_size_t;
#endif #endif
/****t* Base/qse_ssize_t /**
* NAME * The qse_ssize_t type defines a signed integer type that is as large as
* qse_ssize_t - define an signed integer type that can hold a pointer value * to hold a pointer value.
******
*/ */
typedef qse_int_t qse_ssize_t; typedef qse_int_t qse_ssize_t;
/****t* Base/qse_word_t /**
* NAME * The qse_word_t type redefines qse_uint_t.
* qse_word_t - define an integer type identical to qse_uint_t
******
*/ */
typedef qse_uint_t qse_word_t; typedef qse_uint_t qse_word_t;
/****t* Base/qse_real_t /** @typedef qse_real_t
* NAME * The qse_real_t type defines the largest floating-pointer number type
* qse_real_t - define a largest floating-pointer number type supported * supported.
******
*/ */
#if defined(__FreeBSD__) #if defined(__FreeBSD__)
/* TODO: check if the support for long double is complete. /* TODO: check if the support for long double is complete.
@ -269,20 +247,22 @@ typedef qse_uint_t qse_word_t;
typedef double qse_real_t; typedef double qse_real_t;
#endif #endif
/****t* Base/qse_mchar_t,Base/qse_mcint_t /**
* NAME * The qse_mchar_t type defines a multi-byte character type.
* * qse_mchar_t - define a multi-byte character
* * qse_mcint_t - define a type that can hold qse_mchar_t and QSE_MCHAR_EOF
******
*/ */
typedef char qse_mchar_t; typedef char qse_mchar_t;
/**
* The qse_mcint_t defines a type that can hold a qse_mchar_t value and
* #QSE_MCHAR_EOF.
*/
typedef int qse_mcint_t; typedef int qse_mcint_t;
/****t* Base/qse_wchar_t,Base/qse_wcint_t /** @typedef qse_wchar_t
* NAME * The qse_wchar_t type defines a wide character type.
* * qse_wchar_t - define a wide character */
* * qse_wcint_t - define a type that can hold qse_wchar_t and QSE_WCHAR_EOF /** @typedef qse_wcint_t
****** * The qse_wcint_t type defines a type that can hold a qse_wchar_t value and
* #QSE_WCHAR_EOF.
*/ */
#if defined(__cplusplus) && \ #if defined(__cplusplus) && \
(!defined(_MSC_VER) || \ (!defined(_MSC_VER) || \
@ -337,11 +317,12 @@ typedef int qse_mcint_t;
# error unsupported size of wchar_t # error unsupported size of wchar_t
#endif #endif
/****t* Base/qse_char_t,Base/qse_cint_t /** @typedef qse_char_t
* NAME * The qse_char_t type defines a character type.
* * qse_char_t - define a character */
* * qse_cint_t - define a type that can hold qse_char_t and QSE_CHAR_EOF /** @typedef qse_cint_t
****** * The qse_cint_t typep defines a type that can hold a qse_char_t value and
* #QSE_CHAR_EOF.
*/ */
#if defined(_WIN32) && (defined(UNICODE)||defined(_UNICODE)) #if defined(_WIN32) && (defined(UNICODE)||defined(_UNICODE))
# define QSE_CHAR_IS_WCHAR # define QSE_CHAR_IS_WCHAR

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.cpp 171 2009-06-01 09:34:34Z hyunghwan.chung $ * $Id: Awk.cpp 172 2009-06-01 13:33:01Z hyunghwan.chung $
* *
Copyright 2006-2009 Chung, Hyung-Hwan. Copyright 2006-2009 Chung, Hyung-Hwan.
@ -945,10 +945,10 @@ bool Awk::Run::isStop () const
return qse_awk_rtx_shouldstop (this->run)? true: false; return qse_awk_rtx_shouldstop (this->run)? true: false;
} }
Awk::ErrorCode Awk::Run::getErrorCode () const Awk::ErrorNumber Awk::Run::getErrorNumber () const
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
return (ErrorCode)qse_awk_rtx_geterrnum (this->run); return (ErrorNumber)qse_awk_rtx_geterrnum (this->run);
} }
Awk::size_t Awk::Run::getErrorLine () const Awk::size_t Awk::Run::getErrorLine () const
@ -963,19 +963,19 @@ const Awk::char_t* Awk::Run::getErrorMessage () const
return qse_awk_rtx_geterrmsg (this->run); return qse_awk_rtx_geterrmsg (this->run);
} }
void Awk::Run::setError (ErrorCode code) void Awk::Run::setError (ErrorNumber code)
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
qse_awk_rtx_seterror (this->run, (errnum_t)code, 0, QSE_NULL); qse_awk_rtx_seterror (this->run, (errnum_t)code, 0, QSE_NULL);
} }
void Awk::Run::setError (ErrorCode code, size_t line) void Awk::Run::setError (ErrorNumber code, size_t line)
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
qse_awk_rtx_seterror (this->run, (errnum_t)code, line, QSE_NULL); qse_awk_rtx_seterror (this->run, (errnum_t)code, line, QSE_NULL);
} }
void Awk::Run::setError (ErrorCode code, size_t line, const char_t* arg) void Awk::Run::setError (ErrorNumber code, size_t line, const char_t* arg)
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
qse_cstr_t x = { arg, qse_strlen(arg) }; qse_cstr_t x = { arg, qse_strlen(arg) };
@ -983,7 +983,7 @@ void Awk::Run::setError (ErrorCode code, size_t line, const char_t* arg)
} }
void Awk::Run::setError ( void Awk::Run::setError (
ErrorCode code, size_t line, const char_t* arg, size_t len) ErrorNumber code, size_t line, const char_t* arg, size_t len)
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
qse_cstr_t x = { arg, len }; qse_cstr_t x = { arg, len };
@ -991,7 +991,7 @@ void Awk::Run::setError (
} }
void Awk::Run::setErrorWithMessage ( void Awk::Run::setErrorWithMessage (
ErrorCode code, size_t line, const char_t* msg) ErrorNumber code, size_t line, const char_t* msg)
{ {
QSE_ASSERT (this->run != QSE_NULL); QSE_ASSERT (this->run != QSE_NULL);
qse_awk_rtx_seterrmsg (this->run, (errnum_t)code, line, msg); qse_awk_rtx_seterrmsg (this->run, (errnum_t)code, line, msg);
@ -1078,7 +1078,7 @@ Awk::operator Awk::awk_t* () const
return this->awk; return this->awk;
} }
Awk::ErrorCode Awk::getErrorCode () const Awk::ErrorNumber Awk::getErrorNumber () const
{ {
return this->errnum; return this->errnum;
} }
@ -1093,22 +1093,22 @@ const Awk::char_t* Awk::getErrorMessage () const
return this->errmsg; return this->errmsg;
} }
void Awk::setError (ErrorCode code) void Awk::setError (ErrorNumber code)
{ {
setError (code, 0, QSE_NULL, 0); setError (code, 0, QSE_NULL, 0);
} }
void Awk::setError (ErrorCode code, size_t line) void Awk::setError (ErrorNumber code, size_t line)
{ {
setError (code, line, QSE_NULL, 0); setError (code, line, QSE_NULL, 0);
} }
void Awk::setError (ErrorCode code, size_t line, const char_t* arg) void Awk::setError (ErrorNumber code, size_t line, const char_t* arg)
{ {
setError (code, line, arg, qse_strlen(arg)); setError (code, line, arg, qse_strlen(arg));
} }
void Awk::setError (ErrorCode code, size_t line, const char_t* arg, size_t len) void Awk::setError (ErrorNumber code, size_t line, const char_t* arg, size_t len)
{ {
if (awk != QSE_NULL) if (awk != QSE_NULL)
{ {
@ -1125,7 +1125,7 @@ void Awk::setError (ErrorCode code, size_t line, const char_t* arg, size_t len)
} }
} }
void Awk::setErrorWithMessage (ErrorCode code, size_t line, const char_t* msg) void Awk::setErrorWithMessage (ErrorNumber code, size_t line, const char_t* msg)
{ {
if (awk != QSE_NULL) if (awk != QSE_NULL)
{ {
@ -1159,7 +1159,7 @@ void Awk::retrieveError ()
const char_t* msg; const char_t* msg;
qse_awk_geterror (this->awk, &num, &this->errlin, &msg); qse_awk_geterror (this->awk, &num, &this->errlin, &msg);
this->errnum = (ErrorCode)num; this->errnum = (ErrorNumber)num;
qse_strxcpy (this->errmsg, QSE_COUNTOF(this->errmsg), msg); qse_strxcpy (this->errmsg, QSE_COUNTOF(this->errmsg), msg);
} }
} }
@ -1170,7 +1170,7 @@ void Awk::retrieveError (rtx_t* rtx)
const char_t* msg; const char_t* msg;
qse_awk_rtx_geterror (rtx, &num, &this->errlin, &msg); qse_awk_rtx_geterror (rtx, &num, &this->errlin, &msg);
this->errnum = (ErrorCode)num; this->errnum = (ErrorNumber)num;
qse_strxcpy (this->errmsg, QSE_COUNTOF(this->errmsg), msg); qse_strxcpy (this->errmsg, QSE_COUNTOF(this->errmsg), msg);
} }
@ -1261,7 +1261,7 @@ Awk::size_t Awk::getMaxDepth (int id) const
return qse_awk_getmaxdepth (awk, id); return qse_awk_getmaxdepth (awk, id);
} }
const Awk::char_t* Awk::getErrorString (ErrorCode num) const const Awk::char_t* Awk::getErrorString (ErrorNumber num) const
{ {
QSE_ASSERT (dflerrstr != QSE_NULL); QSE_ASSERT (dflerrstr != QSE_NULL);
return dflerrstr (awk, (errnum_t)num); return dflerrstr (awk, (errnum_t)num);
@ -1272,7 +1272,7 @@ const Awk::char_t* Awk::xerrstr (awk_t* a, errnum_t num) throw ()
Awk* awk = *(Awk**)QSE_XTN(a); Awk* awk = *(Awk**)QSE_XTN(a);
try try
{ {
return awk->getErrorString ((ErrorCode)num); return awk->getErrorString ((ErrorNumber)num);
} }
catch (...) catch (...)
{ {

View File

@ -13,13 +13,13 @@ BEGIN {
/^[[:space:]]*enum[[:space:]]+qse_awk_errnum_t[[:space:]]*$/ { /^[[:space:]]*enum[[:space:]]+qse_awk_errnum_t[[:space:]]*$/ {
collect=1; collect=1;
print tab3 "// generated by generrcode.awk"; print tab3 "// generated by generrcode.awk";
print tab3 "enum ErrorCode"; print tab3 "enum ErrorNumber";
print tab3 "{"; print tab3 "{";
} }
collect && /^[[:space:]]*};[[:space:]]*$/ { collect && /^[[:space:]]*};[[:space:]]*$/ {
print tab3 "};"; print tab3 "};";
print tab3 "// end of enum ErrorCode"; print tab3 "// end of enum ErrorNumber";
print ""; print "";
collect=0; collect=0;
} }

View File

@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.10.2 from Makefile.am. # Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@ # @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@ -109,13 +109,14 @@ CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@ DEFS = @DEFS@
DEPDIR = @DEPDIR@ DEPDIR = @DEPDIR@
DSYMUTIL = @DSYMUTIL@ DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@ ECHO = @ECHO@
ECHO_C = @ECHO_C@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@ ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@ ECHO_T = @ECHO_T@
EGREP = @EGREP@ EGREP = @EGREP@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ F77 = @F77@
FFLAGS = @FFLAGS@
GREP = @GREP@ GREP = @GREP@
HAVE_CXX = @HAVE_CXX@ HAVE_CXX = @HAVE_CXX@
HAVE_OBJC = @HAVE_OBJC@ HAVE_OBJC = @HAVE_OBJC@
@ -131,7 +132,6 @@ LIBOBJS = @LIBOBJS@
LIBS = @LIBS@ LIBS = @LIBS@
LIBTOOL = @LIBTOOL@ LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBTOOL_DEPS = @LIBTOOL_DEPS@
LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
@ -143,8 +143,6 @@ OBJCDEPMODE = @OBJCDEPMODE@
OBJCFLAGS = @OBJCFLAGS@ OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@ OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@ OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_NAME = @PACKAGE_NAME@
@ -165,7 +163,7 @@ abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@ abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@ ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@ ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ ac_ct_F77 = @ac_ct_F77@
ac_ct_OBJC = @ac_ct_OBJC@ ac_ct_OBJC = @ac_ct_OBJC@
am__include = @am__include@ am__include = @am__include@
am__leading_dot = @am__leading_dot@ am__leading_dot = @am__leading_dot@
@ -197,7 +195,6 @@ libdir = @libdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@
localedir = @localedir@ localedir = @localedir@
localstatedir = @localstatedir@ localstatedir = @localstatedir@
lt_ECHO = @lt_ECHO@
mandir = @mandir@ mandir = @mandir@
mkdir_p = @mkdir_p@ mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@ oldincludedir = @oldincludedir@
@ -210,7 +207,6 @@ sharedstatedir = @sharedstatedir@
srcdir = @srcdir@ srcdir = @srcdir@
sysconfdir = @sysconfdir@ sysconfdir = @sysconfdir@
target_alias = @target_alias@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
AM_CPPFLAGS = -I$(top_srcdir)/include AM_CPPFLAGS = -I$(top_srcdir)/include
@ -228,8 +224,8 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \ @for dep in $?; do \
case '$(am__configure_deps)' in \ case '$(am__configure_deps)' in \
*$$dep*) \ *$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& { if test -f $@; then exit 0; else break; fi; }; \ && exit 0; \
exit 1;; \ exit 1;; \
esac; \ esac; \
done; \ done; \
@ -354,7 +350,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
unique=`for i in $$list; do \ unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \ done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique mkid -fID $$unique
tags: TAGS tags: TAGS