*** empty log message ***

This commit is contained in:
2007-03-20 10:46:27 +00:00
parent f25d2f88d5
commit 2a4e4341bf
26 changed files with 125 additions and 181 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.c,v 1.191 2007-03-19 15:25:51 bacon Exp $
* $Id: awk.c,v 1.192 2007-03-20 10:44:45 bacon Exp $
*/
#include <ase/awk/awk.h>
@ -376,7 +376,17 @@ static ase_ssize_t awk_extio_file (
dprintf (ASE_T("opening %s of type %d (file)\n"), epa->name, epa->type);
handle = ase_fopen (epa->name, mode);
if (handle == NULL) return -1;
if (handle == NULL)
{
ase_cstr_t errarg;
errarg.ptr = epa->name;
errarg.len = ase_strlen(epa->name);
ase_awk_setrunerror (epa->run, ASE_AWK_EOPEN, 0, &errarg, 1);
return -1;
}
epa->handle = (void*)handle;
return 1;

View File

@ -1 +1 @@
PARSE ERROR: CODE [34] LINE [2] invalid character ''
PARSE ERROR: CODE [30] LINE [2] invalid character ''

View File

@ -5,4 +5,4 @@ BEGIN {
abc = 10;
}
RUN ERROR: CODE [98] LINE [5] map 'abc' not assignable with a scalar
RUN ERROR: CODE [94] LINE [5] map 'abc' not assignable with a scalar

View File

@ -2,4 +2,4 @@ BEGIN {
delete ARGC;
}
RUN ERROR: CODE [90] LINE [2] variable 'ARGC' not deletable
RUN ERROR: CODE [86] LINE [2] variable 'ARGC' not deletable

View File

@ -3,4 +3,4 @@ BEGIN {
delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii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hel...' not found
RUN ERROR: CODE [84] LINE [2] function 'helpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhel...' not found

View File

@ -1 +1 @@
PARSE ERROR: CODE [59] LINE [2] built-in function 'substr' redefined
PARSE ERROR: CODE [55] LINE [2] built-in function 'substr' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [59] LINE [3] built-in function 'substr' redefined
PARSE ERROR: CODE [55] LINE [3] built-in function 'substr' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [60] LINE [9] function 'abc' redefined
PARSE ERROR: CODE [56] LINE [9] function 'abc' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [61] LINE [4] global variable 'abc' redefined
PARSE ERROR: CODE [57] LINE [4] global variable 'abc' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [62] LINE [4] parameter 'x' redefined
PARSE ERROR: CODE [58] LINE [4] parameter 'x' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [60] LINE [11] function 'abc' redefined
PARSE ERROR: CODE [56] LINE [11] function 'abc' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [60] LINE [1] function 'abc' redefined
PARSE ERROR: CODE [56] LINE [1] function 'abc' redefined

View File

@ -1 +1 @@
PARSE ERROR: CODE [46] LINE [5] a colon expected in place of ';'
PARSE ERROR: CODE [42] LINE [5] a colon expected in place of ';'

View File

@ -1 +1 @@
PARSE ERROR: CODE [41] LINE [2] a left parenthesis expected in place of '='
PARSE ERROR: CODE [37] LINE [2] a left parenthesis expected in place of '='

View File

@ -1 +1 @@
PARSE ERROR: CODE [55] LINE [2] BEGIN not followed by a left bracket on the same line
PARSE ERROR: CODE [51] LINE [2] BEGIN not followed by a left bracket on the same line

View File

@ -1 +1 @@
PARSE ERROR: CODE [66] LINE [1] '+' not a valid parameter name
PARSE ERROR: CODE [62] LINE [1] '+' not a valid parameter name

View File

@ -1 +1 @@
PARSE ERROR: CODE [67] LINE [1] '+' not a valid variable name
PARSE ERROR: CODE [63] LINE [1] '+' not a valid variable name

View File

@ -1 +1 @@
PARSE ERROR: CODE [67] LINE [3] '+' not a valid variable name
PARSE ERROR: CODE [63] LINE [3] '+' not a valid variable name

View File

@ -2,4 +2,4 @@ BEGIN {
print abc > "123\0abc";
}
RUN ERROR: CODE [113] LINE [2] i/o name containing a null character
RUN ERROR: CODE [109] LINE [2] i/o name containing a null character

View File

@ -3,4 +3,4 @@ BEGIN {
split ("a b c",xx);
}
RUN ERROR: CODE [99] LINE [3] cannot change a scalar value to a map
RUN ERROR: CODE [95] LINE [3] cannot change a scalar value to a map