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
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Inc.
timestamp='2008-01-23'
timestamp='2007-07-22'
# 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
@ -56,8 +56,8 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@ -532,7 +532,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
*:AIX:*:[456])
*:AIX:*:[45])
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
IBM_ARCH=rs6000
@ -799,9 +799,6 @@ EOF
EM64T | authenticamd)
echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;;
IA64)
echo ia64-unknown-interix${UNAME_RELEASE}
exit ;;
esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
@ -836,14 +833,7 @@ EOF
echo ${UNAME_MACHINE}-pc-minix
exit ;;
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
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@ -964,8 +954,8 @@ EOF
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
exit ;;
xtensa*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
xtensa:Linux:*:*)
echo xtensa-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
# 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
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
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
send the following data and any information you think might be

View File

@ -1,10 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
# Inc.
timestamp='2008-01-16'
timestamp='2007-06-28'
# This file is (in principle) common to ALL 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="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@ -369,14 +369,10 @@ case $basic_machine in
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa*-* \
| xstormy16-* | xtensa-* \
| ymp-* \
| 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
# for a CPU type and a company and sometimes even an OS.
386bsd)
@ -447,14 +443,6 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
blackfin)
basic_machine=bfin-unknown
os=-linux
;;
blackfin-*)
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
c90)
basic_machine=c90-cray
os=-unicos
@ -680,14 +668,6 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
;;
m68knommu-*)
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
m88k-omron*)
basic_machine=m88k-omron
;;
@ -833,14 +813,6 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
parisc)
basic_machine=hppa-unknown
os=-linux
;;
parisc-*)
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
pbd)
basic_machine=sparc-tti
;;
@ -1049,10 +1021,6 @@ case $basic_machine in
basic_machine=tic6x-unknown
os=-coff
;;
tile*)
basic_machine=tile-unknown
os=-linux-gnu
;;
tx39)
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
# 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 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
# 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
# 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.
@ -395,7 +395,7 @@ public:
// generated by generrcode.awk
/** Defines the error code */
enum ErrorCode
enum ErrorNumber
{
ERR_NOERR = QSE_AWK_ENOERR,
ERR_UNKNOWN = QSE_AWK_EUNKNOWN,
@ -526,7 +526,7 @@ public:
ERR_REXEND = QSE_AWK_EREXEND,
ERR_REXGARBAGE = QSE_AWK_EREXGARBAGE,
};
// end of enum ErrorCode
// end of enum ErrorNumber
// generated by genoptcode.awk
@ -599,17 +599,17 @@ public:
void stop () const;
bool isStop () const;
ErrorCode getErrorCode () const;
ErrorNumber getErrorNumber () const;
size_t getErrorLine () const;
const char_t* getErrorMessage () const;
void setError (ErrorCode code);
void setError (ErrorCode code, size_t line);
void setError (ErrorCode 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);
void setError (ErrorNumber code, size_t line);
void setError (ErrorNumber code, size_t line, const char_t* arg);
void setError (ErrorNumber code, size_t line, const char_t* arg, size_t len);
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
@ -724,7 +724,7 @@ public:
operator awk_t* () const;
/** Returns the error code */
ErrorCode getErrorCode () const;
ErrorNumber getErrorNumber () const;
/** Returns the line of the source code where the error occurred */
size_t getErrorLine () const ;
@ -743,13 +743,13 @@ public:
}
protected:
void setError (ErrorCode code);
void setError (ErrorCode code, size_t line);
void setError (ErrorCode 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);
void setError (ErrorNumber code, size_t line);
void setError (ErrorNumber code, size_t line, const char_t* arg);
void setError (ErrorNumber code, size_t line, const char_t* arg, size_t len);
void setErrorWithMessage (
ErrorCode code, size_t line, const char_t* msg);
ErrorNumber code, size_t line, const char_t* msg);
void clearError ();
void retrieveError ();
@ -764,7 +764,7 @@ public:
*
* @return
* 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.
*/
virtual int open ();
@ -795,7 +795,7 @@ public:
virtual size_t getMaxDepth (int id) const;
virtual const char_t* getErrorString (
ErrorCode num
ErrorNumber num
) const;
virtual int getWord (
@ -821,7 +821,7 @@ public:
*
* @return
* 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.
*/
virtual int parse ();
@ -843,7 +843,7 @@ public:
* is enabled, 0 is returned and the error is indicated through
* Awk::onRunEnd. The run-time callback is enabled and disbaled
* 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);
@ -1047,7 +1047,7 @@ protected:
Source sourceIn;
Source sourceOut;
ErrorCode errnum;
ErrorNumber errnum;
size_t errlin;
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.
@ -19,14 +19,9 @@
#ifndef _QSE_TYPES_H_
#define _QSE_TYPES_H_
/****o* Base/Basic Types
* DESCRIPTION
* <qse/types.h> defines various common basic types. They are designed to be
* cross-platform. These types are preferred over native data types in many
* contexts.
*
* #include <qse/types.h>
******
/**@file
* The <qse/types.h> file defines various common basic types designed to be
* cross-platform. These types are preferred over native data types.
*/
/* WARNING: NEVER CHANGE/DELETE THE FOLLOWING LINE */
@ -42,29 +37,20 @@
# error unsupported operating system
#endif
/****t* Base/qse_bool_t
* NAME
* qse_bool_t - define a boolean type
* DESCRIPTION
* The qse_bool_t type defines a boolean type that can represent QSE_TRUE
* and QSE_FALSE.
* SYNOPSIS
/**
* The qse_bool_t type defines a boolean type that can represent #QSE_TRUE
* and #QSE_FALSE.
*/
enum qse_bool_t
{
QSE_TRUE = (0 == 0),
QSE_FALSE = (0 != 0)
};
/******/
typedef enum qse_bool_t qse_bool_t;
/****t* Base/qse_tri_t
* NAME
* qse_tri_t - define a tri-state type
* DESCRIPTION
* The qse_tri_t type defines a tri-state type that can represent QSE_ALIVE,
* QSE_ZOMBIE, and QSE_DEAD.
* SYNOPSIS
/**
* The qse_tri_t type defines a tri-state type that can represent #QSE_ALIVE,
* #QSE_ZOMBIE, and #QSE_DEAD.
*/
enum qse_tri_t
{
@ -72,14 +58,13 @@ enum qse_tri_t
QSE_ZOMBIE = 0,
QSE_DEAD = -1
};
/******/
typedef enum qse_tri_t qse_tri_t;
/****t* Base/qse_int_t,Base/qse_uint_t
* NAME
* * 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_int_t
* The qse_int_t type defines a signed integer type as large as a pointer.
*/
/** @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__)) && \
(QSE_SIZEOF_VOID_P == QSE_SIZEOF_LONG)
@ -107,11 +92,11 @@ typedef enum qse_tri_t qse_tri_t;
# error unsupported pointer size
#endif
/****t* Base/qse_long_t,Base/qse_ulong_t
* NAME
* * qse_long_t - define the largest signed integer type supported
* * qse_ulong_t - define the largest unsigned integer type supported
******
/** @typedef qse_long_t
* The qse_long_t type defines the largest signed 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
typedef long long qse_long_t;
@ -124,11 +109,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned long qse_ulong_t;
#endif
/****t* Base/qse_int8_t,Base/qse_uint8_t
* NAME
* * qse_int8_t - define an 8-bit signed integer type
* * qse_uint8_t - define an 8-bit unsigned integer type
******
/** @typedef qse_int8_t
* The qse_int8_t defines an 8-bit signed integer type.
*/
/** @typedef qse_uint8_t
* The qse_uint8_t type defines an 8-bit unsigned integer type.
*/
#if QSE_SIZEOF_CHAR == 1
typedef char qse_int8_t;
@ -138,11 +123,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int8 qse_uint8_t;
#endif
/****t* Base/qse_int16_t,Base/qse_uint16_t
* NAME
* * qse_int16_t - define a 16-bit signed integer type
* * qse_uint16_t - define a 16-bit unsigned integer type
******
/** @typedef qse_int16_t
* The qse_int16_t defines an 16-bit signed integer type.
*/
/** @typedef qse_uint16_t
* The qse_uint16_t type defines an 16-bit unsigned integer type.
*/
#if QSE_SIZEOF_SHORT == 2
typedef short qse_int16_t;
@ -152,11 +137,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int16 qse_uint16_t;
#endif
/****t* Base/qse_int32_t,Base/qse_uint32_t
* NAME
* * qse_int32_t - define a 32-bit signed integer type
* * qse_uint32_t - define a 32-bit unsigned integer type
******
/** @typedef qse_int32_t
* The qse_int32_t defines an 32-bit signed integer type.
*/
/** @typedef qse_uint32_t
* The qse_uint32_t type defines an 32-bit unsigned integer type.
*/
#if QSE_SIZEOF_INT == 4
typedef int qse_int32_t;
@ -169,11 +154,11 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int32 qse_uint32_t;
#endif
/****t* Base/qse_int64_t,Base/qse_uint64_t
* NAME
* * qse_int64_t - define a 64-bit signed integer type
* * qse_uint64_t - define a 64-bit unsigned integer type
******
/** @typedef qse_int64_t
* The qse_int64_t defines an 64-bit signed integer type.
*/
/** @typedef qse_uint64_t
* The qse_uint64_t type defines an 64-bit unsigned integer type.
*/
#if QSE_SIZEOF_INT == 8
# define QSE_HAVE_INT64_T
@ -219,17 +204,14 @@ typedef enum qse_tri_t qse_tri_t;
typedef unsigned __int128 qse_uint128_t;
#endif
/****t* Base/qse_byte_t
* NAME
* qse_byte_t - define a byte type
******
/**
* The qse_byte_t defines a byte type.
*/
typedef qse_uint8_t qse_byte_t;
/****t* Base/qse_size_t
* NAME
* qse_size_t - define an unsigned integer type that can hold a pointer value
******
/**
* The qse_size_t type defines an unsigned integer type that is as large as
* to hold a pointer value.
*/
#ifdef __SIZE_TYPE__
typedef __SIZE_TYPE__ qse_size_t;
@ -237,24 +219,20 @@ typedef qse_uint8_t qse_byte_t;
typedef qse_uint_t qse_size_t;
#endif
/****t* Base/qse_ssize_t
* NAME
* qse_ssize_t - define an signed integer type that can hold a pointer value
******
/**
* The qse_ssize_t type defines a signed integer type that is as large as
* to hold a pointer value.
*/
typedef qse_int_t qse_ssize_t;
/****t* Base/qse_word_t
* NAME
* qse_word_t - define an integer type identical to qse_uint_t
******
/**
* The qse_word_t type redefines qse_uint_t.
*/
typedef qse_uint_t qse_word_t;
/****t* Base/qse_real_t
* NAME
* qse_real_t - define a largest floating-pointer number type supported
******
/** @typedef qse_real_t
* The qse_real_t type defines the largest floating-pointer number type
* supported.
*/
#if defined(__FreeBSD__)
/* 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;
#endif
/****t* Base/qse_mchar_t,Base/qse_mcint_t
* NAME
* * qse_mchar_t - define a multi-byte character
* * qse_mcint_t - define a type that can hold qse_mchar_t and QSE_MCHAR_EOF
******
/**
* The qse_mchar_t type defines a multi-byte character type.
*/
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;
/****t* Base/qse_wchar_t,Base/qse_wcint_t
* NAME
* * 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_wchar_t
* The qse_wchar_t type defines a wide character type.
*/
/** @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) && \
(!defined(_MSC_VER) || \
@ -337,11 +317,12 @@ typedef int qse_mcint_t;
# error unsupported size of wchar_t
#endif
/****t* Base/qse_char_t,Base/qse_cint_t
* NAME
* * qse_char_t - define a character
* * qse_cint_t - define a type that can hold qse_char_t and QSE_CHAR_EOF
******
/** @typedef qse_char_t
* The qse_char_t type defines a character type.
*/
/** @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))
# 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.
@ -945,10 +945,10 @@ bool Awk::Run::isStop () const
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);
return (ErrorCode)qse_awk_rtx_geterrnum (this->run);
return (ErrorNumber)qse_awk_rtx_geterrnum (this->run);
}
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);
}
void Awk::Run::setError (ErrorCode code)
void Awk::Run::setError (ErrorNumber code)
{
QSE_ASSERT (this->run != 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_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_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 (
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_cstr_t x = { arg, len };
@ -991,7 +991,7 @@ void Awk::Run::setError (
}
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_awk_rtx_seterrmsg (this->run, (errnum_t)code, line, msg);
@ -1078,7 +1078,7 @@ Awk::operator Awk::awk_t* () const
return this->awk;
}
Awk::ErrorCode Awk::getErrorCode () const
Awk::ErrorNumber Awk::getErrorNumber () const
{
return this->errnum;
}
@ -1093,22 +1093,22 @@ const Awk::char_t* Awk::getErrorMessage () const
return this->errmsg;
}
void Awk::setError (ErrorCode code)
void Awk::setError (ErrorNumber code)
{
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);
}
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));
}
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)
{
@ -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)
{
@ -1159,7 +1159,7 @@ void Awk::retrieveError ()
const char_t* 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);
}
}
@ -1170,7 +1170,7 @@ void Awk::retrieveError (rtx_t* rtx)
const char_t* 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);
}
@ -1261,7 +1261,7 @@ Awk::size_t Awk::getMaxDepth (int id) const
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);
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);
try
{
return awk->getErrorString ((ErrorCode)num);
return awk->getErrorString ((ErrorNumber)num);
}
catch (...)
{

View File

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