[MPlayer-cvslog] r25893 - trunk/TOOLS/alaw-gen.c
diego
subversion at mplayerhq.hu
Sun Jan 27 19:42:00 CET 2008
Author: diego
Date: Sun Jan 27 19:42:00 2008
New Revision: 25893
Log:
Add multiple inclusion guards to generated header file.
Modified:
trunk/TOOLS/alaw-gen.c
Modified: trunk/TOOLS/alaw-gen.c
==============================================================================
--- trunk/TOOLS/alaw-gen.c (original)
+++ trunk/TOOLS/alaw-gen.c Sun Jan 27 19:42:00 2008
@@ -13,7 +13,10 @@ fclose(f);
system("sox -t raw -A -r 8000 -b alaw.dat -t sw alaw.out");
-printf("// Generated by TOOLS/alaw-gen.c\n");
+printf("// Generated by TOOLS/alaw-gen.c\n\n");
+
+printf("#ifndef ALAW_H\n");
+printf("#define ALAW_H\n");
printf("\nconst short alaw2short[]={\n");
@@ -41,7 +44,9 @@ for(i=0;i<256;i++){
if((i&7)==7) printf("\n");
}
fclose(f);
-printf("};\n");
+printf("};\n\n");
+
+printf("#endif /* ALAW_H */\n");
return 0;
}
More information about the MPlayer-cvslog
mailing list