From c5ddc5cc9f2c32e62f81920533e4e0215abbf33c Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 8 Sep 2006 14:57:43 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/awk.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ase/awk/awk.h b/ase/awk/awk.h index 99c440f3..e31150a4 100644 --- a/ase/awk/awk.h +++ b/ase/awk/awk.h @@ -1,5 +1,5 @@ /* - * $Id: awk.h,v 1.110 2006-09-08 14:50:52 bacon Exp $ + * $Id: awk.h,v 1.111 2006-09-08 14:57:43 bacon Exp $ */ #ifndef _XP_AWK_AWK_H_ @@ -168,7 +168,18 @@ enum XP_AWK_STRINDEXONE = (1 << 11), /* strip off leading and trailing spaces when splitting a record - * into fields with a regular expression */ + * into fields with a regular expression. + * + * Consider the following program. + * BEGIN { FS="[:[:space:]]+"; } + * { + * print "NF=" NF; + * for (i = 0; i < NF; i++) print i " [" $(i+1) "]"; + * } + * + * The program splits " a b c " into [a], [b], [c] when this + * option is on while into [], [a], [b], [c], [] when it is off. + */ XP_AWK_STRIPSPACES = (1 << 12) };