*** empty log message ***
This commit is contained in:
parent
b849086f18
commit
d13c08b2ec
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: err.c,v 1.80 2007-03-04 06:26:45 bacon Exp $
|
* $Id: err.c,v 1.81 2007-03-04 06:45:43 bacon Exp $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
@ -53,7 +53,7 @@ static const ase_char_t* __geterrstr (int errnum)
|
|||||||
ASE_T("cannot switch to next console for write"),
|
ASE_T("cannot switch to next console for write"),
|
||||||
ASE_T("cannot write to console"),
|
ASE_T("cannot write to console"),
|
||||||
|
|
||||||
ASE_T("invalid character"),
|
ASE_T("invalid character '%.*s'"),
|
||||||
ASE_T("cannot unget character"),
|
ASE_T("cannot unget character"),
|
||||||
|
|
||||||
ASE_T("unexpected end of source"),
|
ASE_T("unexpected end of source"),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: parse.c,v 1.249 2007-03-04 06:26:45 bacon Exp $
|
* $Id: parse.c,v 1.250 2007-03-04 06:45:43 bacon Exp $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
@ -4649,12 +4649,14 @@ static int __get_token (ase_awk_t* awk)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
awk->prmfns.misc.sprintf (
|
ase_cstr_t errarg;
|
||||||
awk->prmfns.misc.custom_data,
|
ase_char_t cc = (ase_char_t)c;
|
||||||
awk->errmsg, ASE_COUNTOF(awk->errmsg),
|
|
||||||
ASE_T("invalid character '%c'"), c);
|
errarg.ptr = &cc;
|
||||||
ase_awk_seterror_old (
|
errarg.len = 1;
|
||||||
awk, ASE_AWK_ELXCHR, awk->token.line, awk->errmsg);
|
|
||||||
|
ase_awk_seterror (
|
||||||
|
awk, ASE_AWK_ELXCHR, awk->token.line, &errarg, 1);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
PARSE ERROR: CODE [36] LINE [2] invalid character '
|
PARSE ERROR: CODE [36] LINE [2] invalid character ''
|
||||||
|
Loading…
Reference in New Issue
Block a user