9253c8644f
enhanced error location handling for awk
2009-08-26 03:50:07 +00:00
fa0e68aa35
touched up code
2009-08-22 23:43:44 +00:00
ee27151bcb
touched up code
2009-08-21 07:04:24 +00:00
f565bd46cc
touched up code
2009-08-21 05:28:03 +00:00
b6ca96214a
improved line number handling
2009-08-20 08:04:15 +00:00
0f9d553ff8
touched up code
2009-08-18 06:10:30 +00:00
267a602d4b
changed qse_awk_seterrnum() and qse_awk_rtx_seterrnum()
2009-08-17 07:44:20 +00:00
08d87ca85e
interim commit
2009-08-17 02:08:58 +00:00
6b31c85427
- deleted unnecessary callback functions - on_loop_enter() & on_loop_exit()
...
- modified qse_awk_rtx_loop() and Awk::loop() to return the return value
- deprecated the callback totally from the Awk class: may readd it in the future.
- added POC code to pass arguments by reference for intrinsic functions. POC ok. more works needed for full support. not enabled.
2009-07-17 02:27:53 +00:00
f0f2db5e8a
cleaned up code
2009-07-16 04:43:31 +00:00
f5e3e53290
- added Awk::setGlobal & Awk::getGlobal
...
- fixed a bug in parsing getline
2009-07-15 02:06:14 +00:00
9b6eb94664
-added Awk::Value::getFirstIndex() & Awk::Value::getNextIndex()
...
-fixed a few bugs in the Awk::Value class
2009-07-14 02:51:23 +00:00
356e4c0792
cleaned up run_delete() in awk/run.c
...
improved Awk::Value
2009-07-11 21:01:36 +00:00
b682392d5f
- fixed a bug of not handling nextfile and nextofile when no files are specified in the standard console handler
...
(awk/std.c)
- enhanced the console handler for StdAwk
2009-07-08 07:05:10 +00:00
d725c01bac
touched up code a little
2009-07-02 07:14:39 +00:00
e337e01d46
fixed a few minor bugs
2009-06-27 07:05:19 +00:00
393dd9be8d
improved the standard console handler to handle when ARGV has been overridden in a script
2009-06-25 02:29:33 +00:00
97a7febc78
fixed a bug in closing a qse_awk_rtx_t object
...
- refdown_globals() should have been called after qse_awk_rtx_clrrec()
as it still access NF.
fixed typo in awk error messages
fixed a memory allocation bug in matching a group (match_group)
uncommented binary number parsing code in the awk parser.
2009-06-23 07:01:28 +00:00
385e1acc26
fixed a minor problem of returning a long option string with a leading colon in qse_getopt().
...
enhanced cmd/awk/awk.c
cleaned up code a little
2009-06-22 07:33:05 +00:00
cf606b6819
fixed a bug in matching zero occurrence in a group
2009-06-19 06:08:06 +00:00
e774c0bbd1
improved numeric string comparison for various contexts.
2009-06-17 00:05:40 +00:00
ed6db12e27
changed code to handle numeric string comparison better
2009-06-16 02:22:48 +00:00
f9bf649924
fixed bugs in awk
...
- added qse_awk_seterrinf() and qse_awk_geterrinf().
- deleted qse_awk_seterrmsg()
- fixed a bug in qse_awk_geterrmsg()
- fixed wrong handling of 'length'
- changed run_printf() to flush before returning
2009-06-15 02:40:52 +00:00
fd1c529c46
fixed a few bugs in awk
...
- improved input console file and ARGV handling.
- fixed bugs in the builtin rand() function.
- added a new option to rex.
- fixed a control flow handling bug in for(x in y) of awk.
2009-06-11 07:18:25 +00:00
a326e5f17f
fixed a bug in the builtin split() function
2009-06-10 07:07:42 +00:00
551e6f7c09
reorganized files
2009-06-04 15:50:32 +00:00
cd52c663cf
simplified error formatting in qse_awk_t
...
- added qse_awk_errstr_t and related functions
- changed the Awk class
also fixed a minor bug in qse_awk_rtx_call()
2009-06-02 03:34:34 +00:00
164b3d9a98
fixed a bug in AWK and enhanced sed
...
- awk: fixed a bug of not handling ^ in gsub(), split(), and FS.
- sed: added code for y and s command
2009-05-16 07:31:43 +00:00
c221321cda
removed qse_ccls_t and related functions and added qse_strtrm()
2009-05-08 07:15:04 +00:00
faf9c80f3f
fixed a bug in run_delete()
2009-03-02 21:34:43 +00:00
8e221ca599
cleaned up code
2009-03-02 08:54:28 +00:00
0b89f7e322
changed code for new qse_awk_valtostr().
...
- fixed a bug in shorten_record() in awk/run.c
- added qse_awk_valtostrdup()
- added qse_awk_rtx_alloc ()
- added qse_awk_rtx_free ()
2009-03-01 09:27:03 +00:00
283bcfb2ea
making changes caused by changes in qse_awk_rtx_valtostr()
2009-03-01 02:44:21 +00:00
8af127910b
cleaned up code
2009-02-23 18:57:18 +00:00
d0ce35eacf
enhanced and fixed a few functions.
...
- qse_awk_rtx_call()
- qse_awk_parsesimple()
- qse_awk_parsesimple_in_t
- qse_awk_parsesimple_out_t
2009-02-23 08:10:34 +00:00
70b517578e
deprecated QSE_AWK_BASEONE
2009-02-18 07:55:48 +00:00
fed0a952ab
fixed a bug in qse_awk_rtx_call()
2009-02-17 19:41:53 +00:00
26b4ecd16e
cleaned up code
2009-02-17 02:11:31 +00:00
66b21c8eab
redefined runtime io handlers
2009-02-16 08:31:34 +00:00
3ab84046b7
enhanced code
...
- changed qse_strfcpy() and qse_strxfcpy() to accept a string array
- removed the data field from qse_awk_prm_t
- made relevant changes
2009-02-15 08:38:00 +00:00
c86350bfde
added new string copy functions with simple formatting and changed awk
...
error formatter accordingly.
- added qse_strfncpy() and qse_strxfncpy().
- qse_awk_seterror() and qse_awk_rtx_seterror utilize qse_strxfncpy().
2009-02-15 03:14:49 +00:00
172725273c
deprecated qse_awk_runsimple() and created qse_awk_rtx_opensimple()
...
- still need to clean up qse_awk_rtx_opensimple
- deprecated on_start and on_end in qse_awk_rcb_t
- modified other parts according to the changes
2009-02-14 04:57:09 +00:00
527e1a23de
renamed qse_awk_rtx_setcb() to qse_awk_rtx_setrcb()
2009-02-13 19:23:56 +00:00
9d6816c51c
created a function to set callback after context creation.
...
- qse_awk_rtx_setcb(), qse_awk_rtx_getcb()
2009-02-13 08:23:35 +00:00
464f43b821
fixed minor bugs and cleaned up code
2009-02-13 04:55:25 +00:00
924f940fba
cleaned up code a little
...
- deleted the QSE_AWK_ARGSTOMAIN option.
- enhanced qse_awk_call() a little
2009-02-12 08:23:50 +00:00
44d4f890f4
restructured runtime context functions to support more flexibility
...
- New functions include:
qse_awk_rtx_open ()
qse_awk_rtx_close ()
qse_awk_rtx_loop ()
qse_awk_rtx_call ()
- deprecated qse_awk_run ()
2009-02-12 04:46:24 +00:00
a76f07bc88
corrected license information
2009-02-04 08:39:21 +00:00
14bc247637
cleaned up code a little
2009-02-03 03:54:32 +00:00
1201d2890b
renamed some functions, variables, definitions, etc to shorten names.
...
- renamed global to gbl
- renamed local to lcl
2009-02-02 08:28:04 +00:00