mupen64plus-win32-deps/gawk-3.1.6-1/share/awk/rewind.awk
Bobby Smiles 5b9ca0c278 Add gawk 3.1.6.
which is now needed to build mupen64plus-core.
2016-12-17 17:17:41 +01:00

20 lines
404 B
Awk

# rewind.awk --- rewind the current file and start over
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# September 2000
function rewind( i)
{
# shift remaining arguments up
for (i = ARGC; i > ARGIND; i--)
ARGV[i] = ARGV[i-1]
# make sure gawk knows to keep going
ARGC++
# make current file next to get done
ARGV[ARGIND+1] = FILENAME
# do it
nextfile
}