*** empty log message ***
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: awk.h,v 1.213 2007-03-23 07:45:22 bacon Exp $
|
||||
* $Id: awk.h,v 1.214 2007-04-15 15:26:57 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -187,7 +187,10 @@ enum
|
||||
ASE_AWK_NEXTOFILE = (1 << 12),
|
||||
|
||||
/* cr + lf by default */
|
||||
ASE_AWK_CRLF = (1 << 13)
|
||||
ASE_AWK_CRLF = (1 << 13),
|
||||
|
||||
/* pass the arguments to the main function */
|
||||
ASE_AWK_ARGSTOMAIN = (1 << 14)
|
||||
};
|
||||
|
||||
/* error code */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: run.c,v 1.347 2007-03-20 10:44:44 bacon Exp $
|
||||
* $Id: run.c,v 1.348 2007-04-15 15:26:57 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -1209,6 +1209,14 @@ static int run_main (
|
||||
|
||||
if (runarg != ASE_NULL)
|
||||
{
|
||||
if (!(run->awk->option & ASE_AWK_ARGSTOMAIN))
|
||||
{
|
||||
/* if the option is not set, the arguments
|
||||
* arenot passed to the main function as
|
||||
* parameters */
|
||||
nrunargs = 0;
|
||||
}
|
||||
|
||||
/* prepare to pass the arguments to the main function */
|
||||
for (i = nrunargs; i > 0; )
|
||||
{
|
||||
|
Reference in New Issue
Block a user