172 Commits

Author SHA1 Message Date
0da1c65cf5 implemented @include partially 2009-07-27 20:31:58 +00:00
35e65743ab cleaned up code 2009-07-19 06:02:24 +00:00
07af9f53fb merged a few awk options into one 2009-07-18 06:42:02 +00:00
602a14a54e added QSE_AWK_STRIPSTRSPC 2009-07-17 06:43:47 +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
d725c01bac touched up code a little 2009-07-02 07:14:39 +00:00
e78de0f959 restructured regression test scripts for awk 2009-06-30 04:17:39 +00:00
14b0bca55c improved the naming rule 2009-06-29 07:41:47 +00:00
b9d3b490a2 fixed a bug of not checking a parameter name against the function name 2009-06-27 23:52:54 +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
92b9bfb6d1 changed qse_assert_filed() to dump backtraces 2009-06-23 22:53:22 +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
e66a372119 added -v var=val to cmd/awk/awk.c 2009-06-21 06:47:34 +00:00
cf606b6819 fixed a bug in matching zero occurrence in a group 2009-06-19 06:08:06 +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
3ac15453b1 enhanced qse_timegm() further 2009-06-07 23:03:44 +00:00
d1d0e06bb5 changed autoconf related files 2009-06-06 06:34:15 +00:00
551e6f7c09 reorganized files 2009-06-04 15:50:32 +00:00
6fb8e248cd regenerated autoconf files 2009-06-03 18:50:39 +00:00
71c7d7c877 removed libtool 2009-06-03 18:43:57 +00:00
7307c3cc30 changed configure.ac for Doxyfile.in 2009-06-03 08:13:50 +00:00
a1bec8936b changed configure.ac for Doxyfile.in 2009-06-02 20:16:27 +00:00
0e679b0b7d fixed minor bugs 2009-05-29 08:12:09 +00:00
b7f8bba219 added the Mmgr class and modifiled related classes 2009-05-21 04:44:47 +00:00
6675603d47 finished support for stepping address and reorganized source code 2009-05-19 22:28:25 +00:00
c221321cda removed qse_ccls_t and related functions and added qse_strtrm() 2009-05-08 07:15:04 +00:00
004ba389f2 documented qse_awk_rtx_valtostr() and renamed qse_awk_rtx_valtostrdup()
to qse_awk_rtx_valtocpldup()
2009-03-02 03:58:19 +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
3ca13066a9 added qse_awk_rtx_getxtnstd() and enhanced qse_awk_rtx_openstd() 2009-02-27 06:55:05 +00:00
651f6d2dfa added qse_awk_getxtnstd() and enhanced qse_awk_openstd() 2009-02-27 04:56:12 +00:00
7662c70660 set properties some files 2009-02-23 08:18:06 +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
2e24e29e8c enhanced qse_awk_parsesimple() more 2009-02-22 08:16:35 +00:00
82cbaab6f2 enahnced qse_awk_parsesimple() 2009-02-22 06:28:02 +00:00
770cff61c5 changed robodoc configuration. 2009-02-21 23:06:45 +00:00
70b517578e deprecated QSE_AWK_BASEONE 2009-02-18 07:55:48 +00:00
c3b04c6fc1 fixed a bug of not setting console output properly 2009-02-18 04:39:14 +00:00
d3e69f1d23 fixed a bug of not handling console output properly in
qse_awk_rtx_opensimple()
2009-02-18 04:37:34 +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
10adba9ed0 added new functions
- qse_strxfcpy(), qse_strfcpy()
cleaned up code a little
- renamed a few functions. qse_awk_strtok() to qse_awk_rtx_strtok(), etc
2009-02-15 00:21:19 +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
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
79c1d6b861 added a bit of code into sed 2009-02-10 08:14:00 +00:00