112 Commits

Author SHA1 Message Date
006dd8975f added 'abort' & QSE_AWK_ABORT to awk.
added a new sed command 'C' that resembles the cut utility
dropped the cut utility.
added qse_str_nrcat()/qse_mbs_nrcat()/qse_wcs_nrcat()
2012-08-19 14:20:05 +00:00
7f63762ac4 fixed a wrong return value 2012-08-17 07:02:53 +00:00
8f1e15366d Added QSE_AWK_TOLERANT 2012-08-17 06:53:17 +00:00
ec5537a35f cleaned up $ 2012-08-16 03:47:55 +00:00
5e5ed8b3f6 added some mpi code for awk 2012-08-10 16:05:55 +00:00
785c95b1e6 moved ARGC and ARGV to base to std for simplication of the base implementation.
note C++ wrappers need the same changes
2012-08-05 08:56:42 +00:00
c7cea1d985 added ENVIRON and PROCINFO for unix/linux 2012-07-31 14:52:43 +00:00
3c326c599f added qse_pma_clear() and updated the copyright notice 2012-07-20 04:13:39 +00:00
005471b505 started adding nwio 2012-04-27 14:33:14 +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
38d3c22d1f added a few lines of code to print simple memory allocation counts in cmd/awk/awk.c and cmd/sed/sed.c.
got rid of redundant realloc handler check in lib/awk/*.c
2011-12-21 06:40:27 +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
e15fcd0c14 added QSE_FMTINTMAX_ZEROLEAD.
changed awk printf to use qse_fmtintmax for integer printing.
added 'b' and 'B' for awk printf
2011-11-15 15:58:32 +00:00
759925d816 interim commit while dropping dependence on printf in awk 2011-11-14 15:15:44 +00:00
10b0469ee1 added prefix to qse_fmtintmax() and qse_fmtuintmax().
chnaged awk's printf to use qse_fmtintmax().
2011-11-07 00:01:19 +00:00
226795c03e added qse_fmtintmaxtombs()/qse_fmtintmaxtowcs() and related functions.
changed qse_awk_t to use these new formatting functions.
redefined some primitive types
2011-11-05 00:50:55 +00:00
8f9011bc1d changed code to allow an empty label when QSE_SED_STRICT is not set
added qse_sed_stop() and qse_sed_isstop()
2011-09-20 22:40:45 +00:00
6aba3f8f89 integrated Ville Laurikari's TRE 2011-09-01 09:43:46 +00:00
4403c33aea * changed the explicit concatenation operator from a period to %% for qse_awk_t
* added the concatenative assignment operator(%%=) for qse_awk_t
2011-08-16 07:52:48 +00:00
6e2dd10655 * renamed udd to ctx in qse_mmgr_t
* fixed problems in build and test scripts
2011-08-15 03:07:31 +00:00
6ac70e5958 touched up the parser code for qse_awk_t a bit 2011-07-26 01:32:49 +00:00
5464fecddc added qse_awk_valtolong() and qse_awk_valtoreal() for convenience 2011-07-25 08:24:13 +00:00
b67f0ccd42 enhanced constant folding code for qse_awk_t 2011-07-24 10:17:15 +00:00
59afc79821 added floating-pointer remainder handler for qse_awk_t 2011-07-24 03:03:48 +00:00
b2e7566e6b added a few lines of constant folding code for awk. still incomplete 2011-07-23 09:37:46 +00:00
ed207769ff enhanced parse_primary_ident() in lib/awk/parse.c
also fixed a memory leak in the function
changed name of some data types
2011-05-30 09:15:52 +00:00
2cbe0d4681 enhanced val_int_to_str().
changed the return type of qse_awk_valtostr()
2011-05-26 08:00:19 +00:00
26427dd4c3 enhanced qse_awk_rtx_valtostr() 2011-05-25 09:14:58 +00:00
948f5de1cb added QSE_AWK_VAL_MAP_ITR_KEY() and deleted QSE_AWK_VAL_MAP_ITR_KEY_PTR()/QSE_AWK_VAL_MAP_ITR_KEY_LEN()
added QSE_HTB_KPTL()/QSE_HTB_VPTL()/QSE_RBT_KPTL()/QSE_RBT_VPTL()
2011-05-24 22:22:40 +00:00
b9933a473b changed a sample program for qse_awk_findfun() and qse_awk_callfun() 2011-05-22 10:16:18 +00:00
8f88a97dfc added qse_awk_rtx_findfun() and qse_awk_rtx_callfun() 2011-05-22 10:08:54 +00:00
687f4d21b8 fixed condition for a maximum positinal index 2011-05-19 21:46:53 +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
da35a4c6dc changed qse_awk_prm_t to include basic math functions 2011-05-18 08:37:51 +00:00
65588fad45 updated copyright notice 2011-04-23 08:28:43 +00:00
ea724c784c touched up awk for OS2 2011-04-18 09:28:22 +00:00
d58631e70b enhanced qse_htb_t and qse_rbt_t
- defined builtin mancbs'
- changed qse_rbt_t to point to mancbs
- touched up a few other functions
2010-10-30 07:54:36 +00:00
81f314d676 improved qse_htb_t to use less memory. this resulted in backward-incompatible interface 2010-10-28 06:54:37 +00:00
1177866b26 changed qse_awk_rcb_t to expose a node pointer 2010-08-06 01:31:17 +00:00
99c72b1755 * renamed map to htb
* added qse_awk_findgbl()
* added Awk::findGlobal()
* began working on red-black tree
2010-07-09 00:58:44 +00:00
2a045b7ff0 enhanced lda with binary heap functions
added more wide character handling functions
2010-04-06 06:50:01 +00:00
faea2475ac fixed a parser bug in awk.
- handling of idiv operators
- tokenization of /=/ as a regular expression
- calling QSE_AWK_FREEREX to free compiled regular expressions.
switched to a new regular expression handler.
2009-12-11 07:03:54 +00:00
e384e1d044 - enhanced how to determine between a function call and a variable concatenated with an parenthsized expression.
- fixed a bug in split.
2009-10-20 07:33:40 +00:00
22394802f8 extended FS to support 5-character special form 2009-09-24 04:19:30 +00:00
225b1c5ec1 touched up code 2009-09-22 07:28:18 +00:00
bc43362962 enhanced string cache for awk 2009-09-19 22:28:49 +00:00
63c12720cb touched up code while enhancing index() and match() 2009-09-16 08:03:15 +00:00
773f5cec57 touched up code a bit 2009-09-16 04:01:02 +00:00
10c75d357d fixed a bug in emitting a string 2009-09-03 06:55:55 +00:00