Commit Graph

87 Commits

Author SHA1 Message Date
6237b43441 added QSE_XLI_JSON and abandoned QSE_XLI_TAGMARKER, QSE_XLI_ARRAYMARKER, and QSE_XLI_ASSIGNWITHCOLON 2018-01-08 08:25:49 +00:00
905da20d24 implemented the option fourth parameter to match() in awk to support submatch retrieval 2016-11-09 14:12:22 +00:00
66dfa3a2fd did more migrating works 2016-04-29 03:55:42 +00:00
54a883bc1e added sys::mktime() and sys::strftime() to awk 2016-04-08 09:52:55 +00:00
56e5b5191b switched the license to BSD 2014-11-19 14:42:24 +00:00
28ad5392c8 fixed files for an old compiler 2014-11-18 16:10:12 +00:00
84798f4fd0 changed functions and macros related to quick integer handling 2014-10-23 09:30:22 +00:00
aed205c298 changed awk to represent an integer of a certain range in a pointer directly 2014-10-23 09:18:49 +00:00
fe1ff5cdba added qse_awk_rtx_getvaltype() and qse_awk_rtx_getintfromval() macros 2014-10-22 17:05:45 +00:00
36b20b4169 renamed qse_xstr_t to qse_cstr_t 2014-07-08 14:30:42 +00:00
a3453e5bd0 remove qse_cstr_t and related types. switched all existing references to qse_cstr_t and its family 2014-07-02 12:28:58 +00:00
7423092c39 removed most math functions from the main engine. migrated them to the math module 2014-07-01 15:27:27 +00:00
0c5d9eee9c added math::acos, math::asin, math::ceil, math::floor, math::round, math::sinh, math::cosh, math::tanh to awk 2014-06-30 02:30:49 +00:00
d40eb87b85 exposed math functions as math::xxxx 2014-06-08 12:46:04 +00:00
134d91e5a1 removed unneeded lines 2014-05-28 08:43:03 +00:00
7774a8a8fe migrated index_or_rindex() to fnc.c and exported some functions to shared by index(), str::index(), str::rindex() 2014-05-28 08:40:51 +00:00
9ec0981157 exposed str::match(), str::printf(), str::sub(), str::gsub() 2014-05-27 15:28:31 +00:00
b75630a8bb exposed str::split() 2014-05-27 14:26:04 +00:00
fdad26bba1 fixed a wrong field name that caused a compilation error on solaris 8.
make some builtin string functiosn available under str::
2014-05-27 14:13:12 +00:00
2e9bb90c39 added qse_awk_rtx_getvalstr() and qse_awk_rtx_freevalstr().
changed some code to use the 2 new functions.
added the sed module to awk. incomplete yet
2014-02-19 15:24:33 +00:00
a89cd70ddb updated copyright notice 2013-12-31 10:24:12 +00:00
ea55e0d7ee added a build option to use qse_intmax_t for integers in awk.
made relevant changes to support the option
2013-11-05 14:16:45 +00:00
9588bf2910 enhanced va_copy detection 2013-11-04 02:33:52 +00:00
d841c9f62f changed awk to handle IGNORECASE with a regular expression engine that doesn't have a run-time option but has a compile-time option 2013-08-23 15:19:29 +00:00
fc18cd2db6 enhanced split(),ENVIRON,ARGV in awk to build a numeric string if a string can be converted to a number 2013-05-29 08:46:23 +00:00
23d316a659 enhanced qse_awk_rtx_setrefval() to handle references properly
enhanced qse_awk_rtx_valtostr() and qse_awk_rtx_valtonum() to handle references more correctly.
changed some awk error codes.
2013-04-16 10:09:24 +00:00
bad915cc55 added some code for integrating TRE into awk 2013-04-06 13:39:56 +00:00
121ed07cf0 fixed a bug in awk's built-in function fflush().
added the mb8 conversion routines for raw byte conversion
2013-01-16 05:04:56 +00:00
b8c66b5b8d added qse_dir_geterrnum() 2012-12-25 14:10:02 +00:00
a332c5b55e renamed QSE_AWK_MAPTOVAR to QSE_AWK_FLEXMAP.
allowes a map variable to be reassigned with another value
2012-11-28 05:34:19 +00:00
f1f3080ab3 make @word to be always on
simplified the return value of I/O handler's open function by eliminating the concept of EOF on opening.
enhanced qse_awk_parsestd() to accept an array of qse_awk_parsestd_t for input streams.
enhanced cmd/awk/awk.c to handle multiple -f's properly
2012-11-25 16:16:44 +00:00
a3ee069804 simplified some functions 2012-11-06 04:30:35 +00:00
2179278c41 changed the module loader to attempt to find '_load' and 'load_' as in addition to 'load'.
added the stat field to qse_awk_val_t.
added DLL loading for DOS32/CauseWay
deprecated PROCINFO. you can use various sys::xxxx() functions to get equivalent information.
migrated time() to sys::gettime() and added sys::settime().
2012-11-05 05:20:12 +00:00
3f99d7ac3d added qse_awk_fnc_spec_t.
renamed qse_awk_mod_info_t to qse_awk_mod_spec_t
2012-11-03 17:44:23 +00:00
a3af4c3eed added qse_awk_rtx_valtombs()/qse_awk_rtx_valtostr()
added sys::kill() to awk
added sys::SIGXXXX to awk
added or enhanced uci::XXXX in awk
2012-10-31 08:31:58 +00:00
3db3ab2249 added qse_awk_rtx_makemapvalwithdata().
enhancced qse_awk_rtx_makestrval() and related functions.
enhanced the uci module
2012-10-29 14:41:39 +00:00
8ac0963885 combined some awk options into QSE_AWK_EXTRAKWS.
deleted QSE_AWK_EXTRAOPS and enabled all new operators by default
added === and !==.
fixed a bug in printing the explicit concatenation operator(%%, %%=)
improved @include handling
2012-10-25 14:38:27 +00:00
31edff2391 enhanced function call code to support module calls.
added libltdl into configure.ac, thus to the project
2012-10-23 17:08:56 +00:00
ff13bf4668 added qse_awk_setopt()/qse_awk_getopt().
deleted qse_awk_getoption()/qse_awk_setoption()/qse_awk_setmaxdepth()/qse_awk_getmaxdepth().
redefined enumeration types related to the functions added or deleted above.
moved fnc_sleep from cmd/awk/awk.c to mod/awk/sys.c
managed to get external module call working in the primitive level
2012-10-21 16:19:03 +00:00
11b9829c9b added some code to support module calls using module-name::function-name syntax to awk.
reorganized a few awk error code
2012-10-20 15:58:20 +00:00
ec5537a35f cleaned up $ 2012-08-16 03:47:55 +00:00
3c326c599f added qse_pma_clear() and updated the copyright notice 2012-07-20 04:13:39 +00:00
e7b5bfaf4b enhanced httpd directory listing 2012-01-26 14:19:48 +00:00
b903f8ebb5 added qse_awk_rtx_pushrcb() and qse_awk_rtx_poprcb().
deleted qse_awk_rtx_setrcb() and qse_awk_rtx_getrcb().
added 'close' to qse_awk_rcb_t
added builtin functions 'setenc' and 'unsetenc' to awk/std.c
added qse_getcmgrbyname()
added builtin functions 'setenc' and 'unsetenc' to awk/StdAwk.cpp
2012-01-17 16:45:01 +00:00
350c75434c fixed a minor build issue with mingw64.
renamed qse_real_t to qse_flt_t
2011-11-22 05:03:31 +00:00
6aba3f8f89 integrated Ville Laurikari's TRE 2011-09-01 09:43:46 +00:00
5464fecddc added qse_awk_valtolong() and qse_awk_valtoreal() for convenience 2011-07-25 08:24:13 +00:00
7e6a4dc0d5 * added qse_cptl_t/qse_xptl_t
* deleted word substitution functions from awk
2011-05-24 10:52:37 +00:00
6eebf4baa2 touched up code for less lines 2011-05-19 20:50:51 +00:00
c7a49615a2 improved tokenization by rex 2011-05-19 08:36:40 +00:00