*** empty log message ***
This commit is contained in:
parent
b9931446a4
commit
b849086f18
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk.c,v 1.181 2007-03-02 14:42:04 bacon Exp $
|
||||
* $Id: awk.c,v 1.182 2007-03-04 06:39:13 bacon Exp $
|
||||
*/
|
||||
|
||||
#include <ase/awk/awk.h>
|
||||
@ -688,8 +688,8 @@ static void on_run_end (ase_awk_run_t* run, int errnum, void* custom_data)
|
||||
{
|
||||
if (errnum != ASE_AWK_ENOERR)
|
||||
{
|
||||
dprintf (ASE_T("[AWK ENDED WITH AN ERROR] - "));
|
||||
dprintf (ASE_T("CODE [%d] LINE [%u] %s\n"),
|
||||
dprintf (ASE_T("[AWK ENDED WITH AN ERROR]\n"));
|
||||
ase_printf (ASE_T("RUN ERROR: CODE [%d] LINE [%u] %s\n"),
|
||||
errnum,
|
||||
(unsigned int)ase_awk_getrunerrlin(run),
|
||||
ase_awk_getrunerrmsg(run));
|
||||
@ -892,11 +892,11 @@ static int awk_main (int argc, ase_char_t* argv[])
|
||||
|
||||
if (ase_awk_parse (awk, &srcios) == -1)
|
||||
{
|
||||
int errnum = ase_awk_geterrnum(awk);
|
||||
ase_printf (
|
||||
ASE_T("ERROR: cannot parse program - line %u [%d] %s\n"),
|
||||
ASE_T("PARSE ERROR: CODE [%d] LINE [%u] %s\n"),
|
||||
ase_awk_geterrnum(awk),
|
||||
(unsigned int)ase_awk_geterrlin(awk),
|
||||
errnum, ase_awk_geterrmsg(awk));
|
||||
ase_awk_geterrmsg(awk));
|
||||
ase_awk_close (awk);
|
||||
return -1;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
ERROR: cannot parse program - line 2 [35] invalid character '
|
||||
PARSE ERROR: CODE [36] LINE [2] invalid character '
|
||||
|
4
ase/test/awk/err-002.out
Normal file
4
ase/test/awk/err-002.out
Normal file
@ -0,0 +1,4 @@
|
||||
BEGIN {
|
||||
ARGC = 39;
|
||||
}
|
||||
|
8
ase/test/awk/err-003.out
Normal file
8
ase/test/awk/err-003.out
Normal file
@ -0,0 +1,8 @@
|
||||
global abc;
|
||||
|
||||
BEGIN {
|
||||
abc[20] = "abc";
|
||||
abc = 10;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [91] LINE [5] map 'abc' not assignable with a scalar
|
5
ase/test/awk/err-004.out
Normal file
5
ase/test/awk/err-004.out
Normal file
@ -0,0 +1,5 @@
|
||||
BEGIN {
|
||||
delete ARGC;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [85] LINE [2] variable 'ARGC' not deletable
|
6
ase/test/awk/err-005.out
Normal file
6
ase/test/awk/err-005.out
Normal file
@ -0,0 +1,6 @@
|
||||
BEGIN {
|
||||
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix = 20;
|
||||
delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [85] LINE [3] variable 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...' not deletable
|
5
ase/test/awk/err-006.out
Normal file
5
ase/test/awk/err-006.out
Normal file
@ -0,0 +1,5 @@
|
||||
BEGIN {
|
||||
helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhelphelp ();
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [83] LINE [2] function 'helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhel...' not found
|
1
ase/test/awk/err-007.out
Normal file
1
ase/test/awk/err-007.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [60] LINE [2] built-in function 'substr' redefined
|
1
ase/test/awk/err-008.out
Normal file
1
ase/test/awk/err-008.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [60] LINE [3] built-in function 'substr' redefined
|
1
ase/test/awk/err-009.out
Normal file
1
ase/test/awk/err-009.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [9] function 'abc' redefined
|
1
ase/test/awk/err-010.out
Normal file
1
ase/test/awk/err-010.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [62] LINE [4] global variable 'abc' redefined
|
1
ase/test/awk/err-011.out
Normal file
1
ase/test/awk/err-011.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [63] LINE [4] parameter 'x' redefined
|
1
ase/test/awk/err-012.out
Normal file
1
ase/test/awk/err-012.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [11] function 'abc' redefined
|
1
ase/test/awk/err-013.out
Normal file
1
ase/test/awk/err-013.out
Normal file
@ -0,0 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [1] function 'abc' redefined
|
Loading…
Reference in New Issue
Block a user