author | ecalot
<ecalot> 2005-02-04 03:29:58 UTC |
committer | ecalot
<ecalot> 2005-02-04 03:29:58 UTC |
parent | 697d9745796f7c10342afa3a7331e87c5aadf65a |
FP/src/conf/awk/text_conf.awk | +7 | -7 |
FP/src/conf/awk/walls_conf.awk | +1 | -1 |
diff --git a/FP/src/conf/awk/text_conf.awk b/FP/src/conf/awk/text_conf.awk index a2d439c..94370c7 100644 --- a/FP/src/conf/awk/text_conf.awk +++ b/FP/src/conf/awk/text_conf.awk @@ -68,7 +68,7 @@ BEGIN { state=waitingForTop k++ } else { - fprintf(stderr,"Error: Unexpected character") + printf("Error: Unexpected character") exit 75 } } @@ -78,7 +78,7 @@ BEGIN { len=length($1) state=0 } else { - fprintf(stderr,"Error: Unexpected image beginning") + printf("Error: Unexpected image beginning") exit 74 } } @@ -87,7 +87,7 @@ BEGIN { if (state>=0) { l=length($0) if (l!=len) { - fprintf(stderr,"Error: the image length is not valid") + printf("Error: the image length is not valid") exit 70 } for (i=0;i<l-2;i++) { @@ -100,7 +100,7 @@ BEGIN { } state++ } else { - fprintf(stderr,"Error: unexpected image") + printf("Error: unexpected image") exit 73 } } @@ -109,7 +109,7 @@ BEGIN { if (state>0) { l=length($0) if (l!=len) { - fprintf(stderr,"Error: the image length is not valid") + printf("Error: the image length is not valid") exit 70 } offset+=l-2; @@ -118,7 +118,7 @@ BEGIN { list[k]=c offs[k]=offset } else { - fprintf(stderr,"Error: Unexpected end of image") + printf("Error: Unexpected end of image") exit 71 } } @@ -130,7 +130,7 @@ BEGIN { END { if (state!=waitingForChar) { - fprintf(stderr,"Error: Unexpected end of file") + printf("Error: Unexpected end of file") exit 76 } diff --git a/FP/src/conf/awk/walls_conf.awk b/FP/src/conf/awk/walls_conf.awk index b8c1685..e4f7b16 100644 --- a/FP/src/conf/awk/walls_conf.awk +++ b/FP/src/conf/awk/walls_conf.awk @@ -145,7 +145,7 @@ function additem(base) { # Calculate bits # ########################## -func getbits(k) { +function getbits(k) { i=0 for (;k;i++) k=(k-k%2)/2 return i