enhanced qse_awk_flt_t handling

This commit is contained in:
2013-11-05 02:53:01 +00:00
parent ca1d1ede66
commit 2a5dd843dd
12 changed files with 95 additions and 48 deletions

View File

@ -44,9 +44,13 @@ public:
typedef qse_htb_t htb_t;
typedef qse_htb_pair_t pair_t;
/** Defines a primitive handle */
// define a primitive handle
typedef qse_awk_t awk_t;
// redefine flt_t. To access Types::flt_t, use the fully qualified
// name as it's overriding Types::flt_t.
typedef qse_awk_flt_t flt_t;
typedef qse_awk_loc_t loc_t;
typedef qse_awk_errnum_t errnum_t;
typedef qse_awk_errstr_t errstr_t;

View File

@ -35,8 +35,8 @@
* - consider something like ${1:3,5} => $1, $2, $3, and $5 concatenated
*/
#if defined(QSE_AWK_USE_FLTMAX_T)
typedef qse_flt_t qse_awk_fltmax_t;
#if defined(QSE_USE_AWK_FLTMAX)
typedef qse_fltmax_t qse_awk_flt_t;
#else
typedef qse_flt_t qse_awk_flt_t;
#endif

View File

@ -716,7 +716,7 @@
#undef QSE_ENABLE_BUNDLED_UNICODE
/* enable qse_sed_setexectracer() */
#undef QSE_ENABLE_SEDTRACER
#undef QSE_ENABLE_SED_TRACER
/* link modules statically into the main library */
#undef QSE_ENABLE_STATIC_MODULE
@ -823,6 +823,9 @@
/* sizeof(__int8) */
#undef QSE_SIZEOF___INT8
/* use qse_fltmax_t for floating-point numbers in AWK */
#undef QSE_USE_AWK_FLTMAX
/* use the syscall() function to invoke a system call */
#undef QSE_USE_SYSCALL