Commit Graph

454 Commits

Author SHA1 Message Date
e2affec43b added QSE_TIO_IGNOREMBWCERR 2011-09-11 20:48:21 +00:00
3db2c566a2 added QSE_TRE_NONSTDEXT
fixed a bug of not printing pattern space properly after 'q'
2011-09-09 01:49:53 +00:00
92b4c29551 * fixed a bug of not setting the IGNORECASE option properly to TRE.
* added code to treat a regular expressio delimiter as a normal character when present within [] of a regular expression.
* changed code to allow 0 as a starting address of a start~step address form.
* added code to accept 'I' as a option to the 's' command.
2011-09-08 09:36:08 +00:00
0f85644269 added code to handle an empty regular expression in sed 2011-09-07 08:18:36 +00:00
2f15ca2335 enhanced sed escape handling
fixed an issue of adding an extra newline after matching $ in do_subst() of sed.
changed tre slightly for QSE's own needs
2011-09-05 10:21:54 +00:00
3fe32033cb * fixed a rounding bug of reallocation size in _realloc_merge of qse_xma_t.
* replaced rex with tre in qse_sed_t
* added submatch reference for the 's' command into qse_sed_t
* changed some options and functions for tre integration in qse_sed_t
2011-09-03 09:27:44 +00:00
2c4ed8caf9 * added QSE_MBLEN_MAX
* added qse_getcclsid() and related functions
* added qse_isblank() and realted code
2011-08-22 23:26:26 +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
4527bf0a34 * fixed a bug of not setting an error code upon a few cases of QSE_AWK_STRXDUP failures
* added a new memory debugging facility to qseawk
2011-08-14 10:04:14 +00:00
c380388718 added qse_parsehttprange 2011-07-26 09:42:35 +00:00
59afc79821 added floating-pointer remainder handler for qse_awk_t 2011-07-24 03:03:48 +00:00
b08ebd719c added qse_ubi_t
separated task functions from httpd.c to httpd_task.c
2011-07-21 10:17:16 +00:00
121f0145fa added test code for bootstrapping 2011-06-19 09:30:49 +00:00
f50b2835f7 resumed stx after years of hibernation 2011-06-05 10:22:20 +00:00
55d2413ba8 fixed the string type issue in cmd/awk/awk.c 2011-05-22 10:20:01 +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
2cb55e3676 added qse_awk_rtx_setmapvalfld()/qse_awk_rtx_getmapvalfld() 2011-05-13 08:55:53 +00:00
3ae34f8acc modified code for the first successful dos/4gw build omitting unsupported features 2011-05-10 10:11:13 +00:00
fd0b3f9abd added qse_mbsbasename()/qse_wcsbasename() 2011-05-04 01:48:42 +00:00
42327ce6d1 enhanced record reading further 2011-05-02 07:28:51 +00:00
65588fad45 updated copyright notice 2011-04-23 08:28:43 +00:00
0f3c027105 added a problem in installing ctrl-c handler in OS2 2011-04-21 08:30:47 +00:00
c7020c00ca touched up awk a bit more for OS/2 2011-04-18 09:38:21 +00:00
0fee868b99 delete an unnecessary line 2011-04-18 09:32:02 +00:00
ea724c784c touched up awk for OS2 2011-04-18 09:28:22 +00:00
212a71460f added qse_mbsincl()/qse_wcsincl()/qse_mbsexcl()/qse_wcsexcl() and related functions 2011-04-17 09:40:57 +00:00
e1d7784e4e added qse_mbsrot()/qse_wcsrot()/qse_mbsrev()/qse_wcsrev() and related functions 2011-04-15 06:42:48 +00:00
610e2348de added qse_mbstok()/qse_wcstok() and related functions 2011-04-13 09:36:18 +00:00
96da678f14 added qse_mbsword()/qse_wcsword()/qse_mbscaseword()/qse_wcscaseword() 2011-03-31 22:15:24 +00:00
9cf0386f11 added qse_mbsxstr()/qse_wcsxstr() and related functions 2011-03-30 09:37:19 +00:00
0b552210e8 added qse_strlwr() and qse_strupr() 2011-03-26 10:02:04 +00:00
b701c43361 added qse_strpbrk() 2011-03-23 20:45:39 +00:00
f83c2c133a added qse_strspn() and qse_strcspn() 2011-03-23 20:21:14 +00:00
fe67761da6 * Added code to handle the case when QSE_PIO_SHELL is not set in qse_pio_init() for OS/2.
* Added qse_mbschr(), qse_wcschr(), qse_mbsstr(), and qse_wcsstr()
2011-03-22 08:01:10 +00:00
98eaacce41 * added qse_mbscpy() and qse_wcscpy()
* enhanced qse_pio_init() for OS/2
2011-03-21 08:16:54 +00:00
20a989ecaf added OS/2 code into time.c
started writing OS/2 code into pio.c
fixed minor issues in fio.c
2011-03-19 09:07:21 +00:00
52ca1f83e3 writing qse_scm_eval() 2011-03-08 08:34:27 +00:00
5703d4c58a trying to make qse_scm_print() non-recursive 2011-03-03 08:41:24 +00:00
1d478104b3 moved entity management functions to a separate file 2011-03-01 09:40:58 +00:00
31ae7440a5 writing reading and printing functions 2011-02-26 09:26:16 +00:00
5b1a61f4c8 adding entity reader 2011-02-24 09:32:13 +00:00
402800e0ae added more scm code 2011-02-23 06:58:59 +00:00
758037fac0 added more code for scm 2011-02-22 03:11:21 +00:00
f24fe05409 updated build files with a newer autoconf 2011-02-11 07:48:51 +00:00
db7d928a68 deleted unnecessary items from configure.ac 2011-02-01 22:48:53 +00:00
5c1599722b fixed distcheck issues 2011-01-23 04:32:11 +00:00
da945c3a08 fixed minor build issues 2011-01-23 03:52:20 +00:00
0e561c494c changed autoconf and build files 2011-01-22 02:04: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
7f9c835412 added missing files again 2010-08-28 05:51:43 +00:00
8a19cce569 deleted lsp 2010-08-25 21:28:40 +00:00
c0122c72b8 implemented a non-recursive s-expression reader 2010-08-18 07:15:14 +00:00
1177866b26 changed qse_awk_rcb_t to expose a node pointer 2010-08-06 01:31:17 +00:00
221db8488e enhanced xma realloc() 2010-08-01 01:45:47 +00:00
4ef1730e71 added realloc to xma 2010-07-31 07:24:19 +00:00
a1965a6544 fixed bugs in xma.c 2010-07-29 07:27:03 +00:00
f467ec9930 touched the memory allocator 2010-07-25 06:43:26 +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
b0a03e0b4d enhanced regular expression handler 2010-05-10 07:44:39 +00:00
aaa1097128 simplified qse_cut_comp() and related functions 2009-12-23 06:56:01 +00:00
200a3f6656 touched up code a bit 2009-12-22 06:44:33 +00:00
d418e651e5 - added easy C API functions for sed and cut
- added a sample C program for sed
- added C++ API for cut.
2009-12-22 06:29:52 +00:00
41b716c195 - fixed a bug in pio.c for WIN32
- deleted unnecessary files.
- updated documentation.
2009-12-15 06:50:11 +00:00
0d83bdba2c revised project information and added more test scripts for awk 2009-12-14 01:44:50 +00:00
782fa151de interim commit while implementing a regular expression processor 2009-11-23 07:58:53 +00:00
1d5be1f982 still coding rex1.c 2009-11-20 23:12:27 +00:00
6315d1fa9b adding cut 2009-11-14 08:18:12 +00:00
6de11d0391 added partial code for cut 2009-10-05 08:08:27 +00:00
225b1c5ec1 touched up code 2009-09-22 07:28:18 +00:00
773f5cec57 touched up code a bit 2009-09-16 04:01:02 +00:00
2a9fabebb6 improved cmd/sed/sed.c 2009-09-09 01:05:48 +00:00
faf8d996db touched up sed 2009-09-08 07:34:49 +00:00
f14f01864d fixed a bug in handling QSE_SED_QUIET for the 'n' command 2009-09-05 07:08:19 +00:00
10c75d357d fixed a bug in emitting a string 2009-09-03 06:55:55 +00:00
15227808a7 added QSE_SED_SAMELINE to sed 2009-09-01 07:24:06 +00:00
9c872e932a touched up code a little bit 2009-08-29 05:58:05 +00:00
cefda5ffc6 improved sed error handling 2009-08-26 21:03:51 +00:00
9253c8644f enhanced error location handling for awk 2009-08-26 03:50:07 +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
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
27c13aabf7 started working on a stream editor (qse_sed_t) 2009-02-04 08:29:11 +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
6affaf4d37 renamed a few macro names that were left out previously
- renamed AFN to FUN and BFN to FNC
2009-02-01 04:06:30 +00:00
4f968e7f11 renamed many functions, typedefs, and variables. 2009-02-01 03:59:46 +00:00
b9c02b48bc partially renamed functions related to a runtime context 2009-01-31 22:03:05 +00:00
3f48dd3d7f added QSE_FIO_TEXT to qse_fio_t 2009-01-27 09:26:15 +00:00
ae55f22bf9 changed the default value of --enable-syslog in configure.ac 2009-01-24 00:36:34 +00:00
8150f4843d Partially fixed the critical bug mentioned in the previous revision.
- runcbs->on_enter() is introduced and called when all 
  globals variables are ready.
- changed runcbs->on_start() to return an integer
- run_main() is still under reconstruction. currently it 
  only supports the BEGIN/pattern action/END block exection.
2009-01-23 04:40:57 +00:00
5686bb8ac7 found a critical bug. need to change the qse_awk_run() function 2009-01-22 04:37:55 +00:00
2220eda162 cleaned up source code a little more 2009-01-19 08:32:51 +00:00
81cf4a462b changed the file handler to use qse_sio_t in StdAwk 2009-01-18 00:44:31 +00:00
6aac3f59cf replaced popen and stdio functions with qse_pcp_t functions in StdAwk.cpp 2009-01-17 08:57:27 +00:00
07d8efa7c2 added a dual direction pipe (rwpipe) to awk.
- will not work on WIN32 until qse_pcp_t is completed on the platform.
2009-01-17 04:20:22 +00:00
afefb7b85a interim commit while adding pio.c 2008-12-31 00:08:03 +00:00
da61cde8fd finished interim implementation of qse_timegm() and qse_timelocal().
- currently, they use timegm() and timelocal() provided by libc.
added test programs.
2008-12-30 04:49:25 +00:00
39c4afe129 implemented qse_fio_chmod() for win32 and unix
- on win32, it is a best effort implemention.
- it gets the volume name from a handle and use SetFileAttributes().
fixed the problem of wrongly detecting objdump.
- place AC_PROG_LIBTOOL after any AC_CHECK_TOOL.
- otherwise, AC_PROG_LIBTOOL overrides the value of tools checked.
2008-12-27 02:52:47 +00:00
359beea51e reconfigured autoconf 2008-12-25 08:20:25 +00:00
deb4ea4ab6 renamed makefile.* to Makefile.* 2008-12-25 08:16:17 +00:00
7fe07c5ca4 corrected wrong names 2008-12-21 22:14:09 +00:00
4803bd861a initial import 2008-12-21 21:35:07 +00:00
4c01ea1604 renamed ase to qse 2008-12-21 20:30:00 +00:00