Commit Graph

1685 Commits

Author SHA1 Message Date
df2c125673 updated lib/awk/Makefile.am 2009-06-07 23:07:34 +00:00
3ac15453b1 enhanced qse_timegm() further 2009-06-07 23:03:44 +00:00
08c1d422f3 enhanced qse_timegm 2009-06-07 07:42:57 +00:00
ebd6199812 changed Makefile.am and Awk.hpp 2009-06-06 06:48:15 +00:00
d1d0e06bb5 changed autoconf related files 2009-06-06 06:34:15 +00:00
922bbbef18 touched up code and docs 2009-06-05 07:36:02 +00:00
551e6f7c09 reorganized files 2009-06-04 15:50:32 +00:00
d50419267f updated documentation a bit 2009-06-04 06:33:47 +00:00
ae7e948fc5 added include/qse/config.h.in 2009-06-03 18:54:11 +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
dbc7a8fd3f added libtool 2009-06-03 18:41:30 +00:00
7307c3cc30 changed configure.ac for Doxyfile.in 2009-06-03 08:13:50 +00:00
2bd2f30828 added more documentation 2009-06-03 01:42:30 +00:00
a1bec8936b changed configure.ac for Doxyfile.in 2009-06-02 20:16:27 +00:00
0b8d9a9b87 documented code a little more 2009-06-02 19:40:23 +00:00
9fcfd0c0ba documented code a little 2009-06-02 07:33:01 +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
3148407114 changed sed03.cpp for the wide character mode 2009-05-31 07:33:08 +00:00
d851798b3c enhanced qse_sed_t
- changed qse_sed_t to support arbitrary numbers of commands
- added qse_set_getmaxdepth() and qse_sed_setmaxdepth()
- added relevant wrapper functions to QSE::Sed
2009-05-30 23:29:06 +00:00
7875def835 touched code a little bit 2009-05-30 19:19:46 +00:00
7053747ab2 fixed bugs and added more features.
- fixed a bug in qse_sed_exec() to return success on flush() error
- added Sed::setError()
- completed a sample program sed03.cpp
2009-05-30 00:21:41 +00:00
0e679b0b7d fixed minor bugs 2009-05-29 08:12:09 +00:00
681d6f7068 added qse_sed_getlinnum() and qse_sed_setlinnum() 2009-05-29 07:00:56 +00:00
4914825a7a changed the author info 2009-05-29 00:37:25 +00:00
b4ff537d85 restructured the doc directory 2009-05-29 00:34:58 +00:00
9dfcf671a4 enhanced the Sed class with a few more methods 2009-05-28 23:00:24 +00:00
fb9cdaa1c0 added qse_sed_geterrstr() and qse_sed_seterrstr() 2009-05-28 07:58:27 +00:00
16f0580d75 added qse_sed_geterrstr() and qse_sed_seterrstr() 2009-05-28 07:55:17 +00:00
83a6e0d3b0 touched up code and documentation 2009-05-28 01:01:33 +00:00
502bab8e4e added code for the StdSed class 2009-05-27 07:29:47 +00:00
822c681691 changed Makefile.am 2009-05-27 05:44:27 +00:00
b010320498 added code to the Sed class 2009-05-26 07:39:18 +00:00
2a4dd14b2a fixed quite a few bugs and enhanced error handling in sed 2009-05-25 07:29:12 +00:00
78146a8f91 enhanced error handling 2009-05-23 19:47:43 +00:00
9fb84cf713 touched up code 2009-05-23 19:21:10 +00:00
f7d8234c21 touched up error handling in sed 2009-05-23 08:11:03 +00:00
4005bd68e8 touched up code 2009-05-22 00:50:02 +00:00
1893905652 improved error handling functions in sed 2009-05-22 00:17:17 +00:00
a4638abf6d fixed Makefile.am 2009-05-21 04:46:05 +00:00
b7f8bba219 added the Mmgr class and modifiled related classes 2009-05-21 04:44:47 +00:00
3ab1bfff92 added Sed.hpp and Sed.cpp 2009-05-20 23:26:47 +00:00
6ccadde5cf changed Makefile.am 2009-05-20 23:25:28 +00:00
04c20caf34 delete lib/utl/sed.* 2009-05-20 23:06:18 +00:00
2b15063478 deleted config.h.in 2009-05-20 23:05:43 +00:00
37f22b0f18 readded files omitted 2009-05-19 22:32:12 +00:00
6675603d47 finished support for stepping address and reorganized source code 2009-05-19 22:28:25 +00:00
ce5a13559c added partial support for the N~M address 2009-05-19 07:20:48 +00:00
37bdcd4fb2 fixed a few bugs in sed 2009-05-19 06:55:01 +00:00
acab50e08a fixed a minor bug in handle the D command in sed 2009-05-18 07:42:50 +00:00
bd6a54d00d added qse_str_del() and codede the D command in sed 2009-05-18 03:35:16 +00:00
f0b916ce81 cleaned up code 2009-05-17 07:49:41 +00:00
1eeeee562a coded more commands to sed 2009-05-17 07:09:59 +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
b36f20a4a2 implemented w & W commands for sed 2009-05-15 05:28:56 +00:00
b0c9b08d56 added more commands 2009-05-14 07:22:36 +00:00
a512a77bba enhanced write_num() in sed 2009-05-13 21:51:05 +00:00
392d88ab7a added more commands for sed 2009-05-13 07:25:49 +00:00
6d68da1669 added more code 2009-05-11 07:27:35 +00:00
9d258def0e added more code 2009-05-10 08:46:26 +00:00
5aeac8aa19 enhanced address matching routines for sed 2009-05-09 08:06:13 +00:00
c221321cda removed qse_ccls_t and related functions and added qse_strtrm() 2009-05-08 07:15:04 +00:00
4896b3d82c added more code 2009-05-05 20:12:38 +00:00
01937d5282 implemented a and i 2009-05-05 07:49:26 +00:00
bafb6e59e9 wrote more code for sed 2009-05-03 06:16:24 +00:00
ddb5d309d4 implemented the q and Q command 2009-05-02 03:20:27 +00:00
5cddfbb7ef still a long way to finish sed 2009-04-17 06:59:24 +00:00
93ea3e255a resumed working on sed 2009-04-16 08:11:42 +00:00
8a46445be8 more code to sed 2009-04-10 23:00:00 +00:00
f46c63cddb redefined QSE_NULL for C++ 2009-04-03 01:09:10 +00:00
6b52dfe97e adding qse_sed_execute() 2009-04-02 19:15:45 +00:00
787ba46604 changed get_subst() to compile a regular expression 2009-03-31 09:00:18 +00:00
e04dafed4b fixed a bug in get_subst() for sed 2009-03-30 09:04:48 +00:00
cf12f0ae23 improved get_subst() for sed. work still in progress 2009-03-29 02:07:24 +00:00
d8a920e263 still working on sed 2009-03-27 08:02:50 +00:00
ba8bd06016 fixed a bug in handling a regular expression starting with a backslash.
- a regular expression like /\// could not be handled properly without 
this fix
2009-03-26 08:53:10 +00:00
ce46d8f641 writing get_subst() for sed 2009-03-25 19:40:58 +00:00
5ccbefe349 cleaned up code 2009-03-25 08:38:02 +00:00
1e45c03f82 added new string functions and fixed get_file_name() for sed
- added qse_str_setlen() & qse_str_getlen()
- changed get_file_name() to ignore trailing spaces of a file name.
2009-03-24 23:52:27 +00:00
d3534abd0f fixing get_file_name() of sed 2009-03-24 19:44:31 +00:00
796a10fc92 made sed to compile r, R, w, W 2009-03-24 06:49:05 +00:00
b3dfc9d07b made minor changes 2009-03-23 09:05:43 +00:00
342b3c9db6 working on sed 2009-03-22 03:19:28 +00:00
3eb225fd22 enhanced code a little 2009-03-19 08:25:27 +00:00
9a4897ee91 cleaned up code 2009-03-19 04:08:23 +00:00
f48ae81fa6 changed code to compile more command codes in sed 2009-03-19 02:20:33 +00:00
5819dba1f9 added branch target processing to sed 2009-03-18 08:44:21 +00:00
ad5251570f implementing sed 2009-03-16 08:36:05 +00:00
69f02f9c8d added a few more lines of code to sed 2009-03-14 21:14:39 +00:00
1167325005 added more commands to sed 2009-03-12 07:32:31 +00:00
2e818033c9 sed - enhanced a function to get text following 'a', 'i', 'c'. 2009-03-11 07:38:35 +00:00
791565aa2b interim commit 2009-03-11 04:39:18 +00:00
94ad148625 added the QSE_CHROOT() macro 2009-03-05 18:13:41 +00:00
25288e45ad changed sed a litte 2009-03-05 04:40:20 +00:00
fc2877524c interim commit 2009-03-03 08:13:47 +00:00
a66c49812c started adding sed code 2009-03-02 21:44:36 +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
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
283bcfb2ea making changes caused by changes in qse_awk_rtx_valtostr() 2009-03-01 02:44:21 +00:00
462677bb9f cleaning up code 2009-02-28 20:18:00 +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
58a47ba425 cleaned up code 2009-02-26 04:35:22 +00:00
6df7f43935 added qse_strspltr() 2009-02-25 08:05:17 +00:00
d74fa84265 cleaned up code 2009-02-25 04:07:01 +00:00
0cedc33a2c added missing entries into Makefile.am 2009-02-24 21:57:28 +00:00
a0e3b67946 cleaned up code 2009-02-24 08:03:28 +00:00
8af127910b cleaned up code 2009-02-23 18:57:18 +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
d7d223cd7e added license information 2009-02-17 23:19:13 +00:00
80dfcd497c documented the source code a little bit 2009-02-17 21:27:03 +00:00
fed0a952ab fixed a bug in qse_awk_rtx_call() 2009-02-17 19:41:53 +00:00
b9958d4ff7 added one more test program for awk 2009-02-17 08:22:42 +00:00
5570b60ef2 added a simple test program for awk 2009-02-17 08:00:01 +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
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
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
0f4fcd737e added license information into some missed files 2009-02-11 04:31:44 +00:00
79c1d6b861 added a bit of code into sed 2009-02-10 08:14:00 +00:00
b1211d6e58 added some routines to qse_sed_c 2009-02-09 08:40:19 +00:00
41b324b7a7 updated qse_sed_t a little 2009-02-07 22:06:16 +00:00
4536d7308f interim commit. added some code for qse_sed_t 2009-02-06 08:39:36 +00:00
a76f07bc88 corrected license information 2009-02-04 08:39:21 +00:00
27c13aabf7 started working on a stream editor (qse_sed_t) 2009-02-04 08:29:11 +00:00
9b994d4a7c enhanced the awk parser a little 2009-02-04 00:26:06 +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
0836d3e319 added more documentation 2009-02-02 04:12:49 +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
987e709021 - minor improvements to tio and sio
- renamed extio to eio in awk
- renamed qse_awk_run_t to qse_awk_rtx_t
2009-01-31 04:31:40 +00:00
5c08cdefc3 more code enhancement
- renamed pcp back to pio
- added more fine-grained control to pio
2009-01-29 08:50:30 +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
7b902d626f corrected a problem of not honoring DESTDIR in Makefile.am 2009-01-21 08:07:39 +00:00
2220eda162 cleaned up source code a little more 2009-01-19 08:32:51 +00:00
524f2e34c9 cleaned up the code a little 2009-01-18 01:48:21 +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
46e4ed5087 implemented the pipe to the child process and integrated it into awk
- renamed pio to pcp
- finished the first version of pcp for unix
- integrated pcp into awk
- yet to finish pcp for win32
2009-01-15 03:58:27 +00:00
b1897b3b4d interim commit for qse_pio_t
- adding code to support QSE_PIO_TEXT. not compilable yet.
2009-01-14 08:16:43 +00:00
f6dda99f51 interim commit for qse_pio_t
- added QSE_KILL()
- added qse_pio_kill()
- enhanced qse_pio_wait()
2009-01-14 04:30:32 +00:00
31efbc7ecf added the errnum field to qse_pio_t 2009-01-13 08:37:29 +00:00
8d794c7c73 interim update for pio
- improved qse_pio_wait but not finished it yet
2009-01-13 05:26:36 +00:00
cf09e22560 interim commit while writing qse_pio_t functions.
- enhanced qse_pio_init() to handle a wide character string.
- added qse_wcsntombsnlen().
2009-01-11 09:25:33 +00:00
c010af38cb added qse_strspl(). 2009-01-09 08:12:26 +00:00
567eaa483b interim commit
- fixed wrong qse_pio_hid_t definition
2009-01-09 04:48:46 +00:00
86a1d88307 interim commit
- fixed wrong enum definitions of qse_pio_hid_t
- changed code to use a static buffer if the command is short enough in qse_pio_init().
2009-01-08 08:14:06 +00:00
37344d7e09 interim commit
- added wide-to-multibyte charater conversion in pio
2009-01-08 04:26:55 +00:00
e606d9f9e1 interim commit while overhauling pio
- added qse_wcstombslen()
2009-01-06 04:40:25 +00:00
b037bfcaf5 interim commit while overhauling pio 2009-01-05 07:38:55 +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
4592f9725a added the LICENSE file 2008-12-27 04:35:14 +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
e72c6db022 fixed minor bugs 2008-12-24 04:04:30 +00:00
c9a39fa64f added qse_localtime() but it needs to be of the dependency on the system's localtime/localtime_r() later 2008-12-23 04:12:59 +00:00
311e3bf4e7 partially implemented qse_gmtime()
- still need to enhance to support msec in the broken-down time
2008-12-22 08:31:30 +00:00
7fe07c5ca4 corrected wrong names 2008-12-21 22:14:09 +00:00
21e7970256 corrected wrong library names 2008-12-21 22:04:18 +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