git » fp-git.git » commit 4ec3db7

now it is mawk compilant

author ecalot
2005-02-04 04:01:16 UTC
committer ecalot
2005-02-04 04:01:16 UTC
parent 996a66958a0750961a096ba397482481f3d71064

now it is mawk compilant

FP/src/conf/awk/anims_conf.awk +5 -5
FP/src/conf/awk/walls_conf.awk +6 -8

diff --git a/FP/src/conf/awk/anims_conf.awk b/FP/src/conf/awk/anims_conf.awk
index 787b7ed..458062d 100644
--- a/FP/src/conf/awk/anims_conf.awk
+++ b/FP/src/conf/awk/anims_conf.awk
@@ -37,12 +37,12 @@ BEGIN {
 ###########################
 
 #comments
-/^[[:space:]]*#/ {
+/^[\t ]*#/ {
 	halt
 }
 
 #animation cathegories
-/^[[:space:]]*ANIMATION[[:space:]]/ {
+/^[\t ]*ANIMATION[\t ]/ {
 	$2=toupper($2)
 	animcount++
 	animation["name" animcount]=$2
@@ -55,7 +55,7 @@ BEGIN {
 
 #tables
 #static images
-/^[[:space:]]*[[:digit:]]+[[:space:]]+IMAGE[[:space:]]/ {
+/^[\t ]*[0-9]+[\t ]+IMAGE[\t ]/ {
 	totalimage++
 	f["frame" totalimage]=$1/1
 	f["res" totalimage]=toupper($3)
@@ -73,7 +73,7 @@ BEGIN {
 }
 
 #objects
-/^[[:space:]]*[[:digit:]]+[[:space:]]+OBJECT[[:space:]]/ {
+/^[\t ]*[0-9]+[\t ]+OBJECT[\t ]/ {
 	totalobject++
 	$4=tolower($4)
 	$7=tolower($7)
@@ -101,7 +101,7 @@ BEGIN {
 }
 
 #sounds
-/^[[:space:]]*[[:digit:]]+[[:space:]]+(MIDI|WAV|SPEAKER)[[:space:]]/ {
+/^[\t ]*[0-9]+[\t ]+(MIDI|WAV|SPEAKER)[\t ]/ {
 	totalsound++
 	o["frame" totalsound]=$1/1
 	o["res" totalsound]=toupper($3)
diff --git a/FP/src/conf/awk/walls_conf.awk b/FP/src/conf/awk/walls_conf.awk
index e4f7b16..dec8ea2 100644
--- a/FP/src/conf/awk/walls_conf.awk
+++ b/FP/src/conf/awk/walls_conf.awk
@@ -40,12 +40,12 @@ BEGIN {
 ##########################
 
 #comments
-/^[[:space:]]*#/ {
-	halt
+/^[\t ]*#/ {
+
 }
 
 #environtment cathegories
-/^[[:space:]]*WALL[[:space:]]/ {
+/^[\t ]*WALL[\t ]/ {
 	$2=toupper($2)
 	$3=toupper($3)
 	currentenvironment=$2
@@ -66,11 +66,10 @@ BEGIN {
 	}
 	tots[ $2 "-" $3 ]=$4/1
 	
-	halt
 }
 
 #tables
-/^[[:space:]]*TABLE[[:space:]]/ {
+/^[\t ]*TABLE[\t ]/ {
 	$2=toupper($2)
 	if (total>tots[ currentenvironment "-" currentlocation ]) tots[ currentenvironment "-" currentlocation ]=total
 	currenttable=$2
@@ -78,7 +77,6 @@ BEGIN {
 		tables[$2]=1
 	}
 	total=0
-	halt
 }
 
 
@@ -101,7 +99,7 @@ function additem(base) {
 }
 
 #parse items 
-/^[[:space:]]*LINE[[:space:]]/ {
+/^[\t ]*LINE[\t ]/ {
 	if (currentenvironment && currenttable) {
 		for (i=2;i<=NF;i++) {
 			if ($i ~ /\*/) {
@@ -123,7 +121,7 @@ function additem(base) {
 	}
 }
 
-/^[[:space:]]*PLACE[[:space:]]/ {
+/^[\t ]*PLACE[\t ]/ {
 	if (currentenvironment && currenttable) {
 		maxtt=0
 		for (i=2;i<=NF;i++) {