*** empty log message ***
This commit is contained in:
parent
c71d350312
commit
45f2520578
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk.c,v 1.114 2007-03-04 14:55:55 bacon Exp $
|
||||
* $Id: awk.c,v 1.115 2007-03-04 15:04:40 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -40,7 +40,7 @@ ase_awk_t* ase_awk_open (
|
||||
prmfns->misc.dprintf == ASE_NULL ||
|
||||
prmfns->misc.abort == ASE_NULL)
|
||||
{
|
||||
*errnum = ASE_AWK_ESYSFNS;
|
||||
*errnum = ASE_AWK_EPRMFNS;
|
||||
return ASE_NULL;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk.h,v 1.200 2007-03-04 14:55:55 bacon Exp $
|
||||
* $Id: awk.h,v 1.201 2007-03-04 15:04:40 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -217,10 +217,9 @@ enum
|
||||
|
||||
ASE_AWK_EINTERN, /* internal error */
|
||||
ASE_AWK_ERUNTIME, /* run-time error */
|
||||
ASE_AWK_ERUNNING, /* there are running instances */
|
||||
ASE_AWK_EBLKNST, /* blocke nested too deeply */
|
||||
ASE_AWK_EEXPRNST, /* expression nested too deeply */
|
||||
ASE_AWK_ESYSFNS, /* system functions not proper */
|
||||
ASE_AWK_EPRMFNS, /* system functions not proper */
|
||||
|
||||
ASE_AWK_ESINOP,
|
||||
ASE_AWK_ESINCL,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk_i.h,v 1.110 2007-03-04 14:55:55 bacon Exp $
|
||||
* $Id: awk_i.h,v 1.111 2007-03-04 15:04:40 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -195,7 +195,7 @@ struct ase_awk_t
|
||||
|
||||
struct
|
||||
{
|
||||
ase_char_t* fmt[1024];
|
||||
ase_char_t fmt[1024];
|
||||
} tmp;
|
||||
|
||||
/* housekeeping */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: err.c,v 1.83 2007-03-04 14:55:55 bacon Exp $
|
||||
* $Id: err.c,v 1.84 2007-03-04 15:04:40 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -30,7 +30,6 @@ static const ase_char_t* __geterrstr (int errnum)
|
||||
|
||||
ASE_T("internal error that should never have happened"),
|
||||
ASE_T("general run-time error"),
|
||||
ASE_T("one or more running instances"),
|
||||
ASE_T("block nested too deeply"),
|
||||
ASE_T("expressio nested too deeply"),
|
||||
ASE_T("system functions not provided or not proper"),
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk.c,v 1.182 2007-03-04 06:39:13 bacon Exp $
|
||||
* $Id: awk.c,v 1.183 2007-03-04 15:04:40 bacon Exp $
|
||||
*/
|
||||
|
||||
#include <ase/awk/awk.h>
|
||||
@ -873,7 +873,7 @@ static int awk_main (int argc, ase_char_t* argv[])
|
||||
#endif
|
||||
ase_printf (
|
||||
ASE_T("ERROR: cannot open awk [%d] %s\n"),
|
||||
errnum, ase_awk_geterrstr(errnum));
|
||||
errnum, ase_awk_geterrstr(ASE_NULL, errnum));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -919,10 +919,12 @@ static int awk_main (int argc, ase_char_t* argv[])
|
||||
|
||||
if (ase_awk_run (awk, mfn, &runios, &runcbs, runarg, ASE_NULL) == -1)
|
||||
{
|
||||
int errnum = ase_awk_geterrnum(awk);
|
||||
ase_printf (
|
||||
ASE_T("error: cannot run program - [%d] %s\n"),
|
||||
errnum, ase_awk_geterrstr(errnum));
|
||||
ASE_T("RUN ERROR: CODE [%d] LINE [%u] %s\n"),
|
||||
ase_awk_geterrnum(awk),
|
||||
(unsigned int)ase_awk_geterrlin(awk),
|
||||
ase_awk_geterrmsg(awk));
|
||||
|
||||
ase_awk_close (awk);
|
||||
return -1;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [36] LINE [2] invalid character ''
|
||||
PARSE ERROR: CODE [35] LINE [2] invalid character ''
|
||||
|
@ -5,4 +5,4 @@ BEGIN {
|
||||
abc = 10;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [91] LINE [5] map 'abc' not assignable with a scalar
|
||||
RUN ERROR: CODE [90] LINE [5] map 'abc' not assignable with a scalar
|
||||
|
@ -2,4 +2,4 @@ BEGIN {
|
||||
delete ARGC;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [85] LINE [2] variable 'ARGC' not deletable
|
||||
RUN ERROR: CODE [84] LINE [2] variable 'ARGC' not deletable
|
||||
|
@ -3,4 +3,4 @@ BEGIN {
|
||||
delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix;
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [85] LINE [3] variable 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...' not deletable
|
||||
RUN ERROR: CODE [84] LINE [3] variable 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...' not deletable
|
||||
|
@ -2,4 +2,4 @@ BEGIN {
|
||||
helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhelphelp ();
|
||||
}
|
||||
|
||||
RUN ERROR: CODE [83] LINE [2] function 'helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhel...' not found
|
||||
RUN ERROR: CODE [82] LINE [2] function 'helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhel...' not found
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [60] LINE [2] built-in function 'substr' redefined
|
||||
PARSE ERROR: CODE [59] LINE [2] built-in function 'substr' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [60] LINE [3] built-in function 'substr' redefined
|
||||
PARSE ERROR: CODE [59] LINE [3] built-in function 'substr' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [9] function 'abc' redefined
|
||||
PARSE ERROR: CODE [60] LINE [9] function 'abc' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [62] LINE [4] global variable 'abc' redefined
|
||||
PARSE ERROR: CODE [61] LINE [4] global variable 'abc' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [63] LINE [4] parameter 'x' redefined
|
||||
PARSE ERROR: CODE [62] LINE [4] parameter 'x' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [11] function 'abc' redefined
|
||||
PARSE ERROR: CODE [60] LINE [11] function 'abc' redefined
|
||||
|
@ -1 +1 @@
|
||||
PARSE ERROR: CODE [61] LINE [1] function 'abc' redefined
|
||||
PARSE ERROR: CODE [60] LINE [1] function 'abc' redefined
|
||||
|
Loading…
Reference in New Issue
Block a user