[Scummvm-cvs-logs] SF.net SVN: scummvm: [28424] tools/branches/gsoc2007-toolsgui/ compress_scumm_sou.c

lightcast at users.sourceforge.net lightcast at users.sourceforge.net
Fri Aug 3 05:29:20 CEST 2007


Revision: 28424
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28424&view=rev
Author:   lightcast
Date:     2007-08-02 20:29:19 -0700 (Thu, 02 Aug 2007)

Log Message:
-----------
Formatting corrections.

Modified Paths:
--------------
    tools/branches/gsoc2007-toolsgui/compress_scumm_sou.c

Modified: tools/branches/gsoc2007-toolsgui/compress_scumm_sou.c
===================================================================
--- tools/branches/gsoc2007-toolsgui/compress_scumm_sou.c	2007-08-03 03:28:42 UTC (rev 28423)
+++ tools/branches/gsoc2007-toolsgui/compress_scumm_sou.c	2007-08-03 03:29:19 UTC (rev 28424)
@@ -41,8 +41,7 @@
 static CompressMode gCompMode = kMP3Mode;
 
 
-void end_of_file(char *inputPath)
-{
+void end_of_file(char *inputPath) {
 	FILE *in;
 	int idx_size = ftell(output_idx);
 	size_t size;
@@ -78,16 +77,14 @@
 	exit(-1);
 }
 
-void append_byte(int size, char buf[])
-{
+void append_byte(int size, char buf[]) {
 	int i;
 	for (i = 0; i < (size - 1); i++)
 		buf[i] = buf[i + 1];
 	buf[i] = fgetc(input);
 }
 
-void get_part(char *inputPath)
-{
+void get_part(char *inputPath) {
 	FILE *f;
 	uint32 tot_size;
 	char outname[256];
@@ -150,9 +147,8 @@
 	writeUint32BE(output_idx, tot_size);
 }
 
-void showhelp(char *exename)
-{
-	printf("\nUsage: %s <params> monster.sou\n", exename);
+void showhelp(char *exename) {
+	printf("\nUsage: %s [params] monster.sou\n", exename);
 
 	printf("\nParams:\n");
 	printf(" --mp3        encode to MP3 format (default)\n");
@@ -191,8 +187,7 @@
 	exit(2);
 }
 
-int main(int argc, char *argv[])
-{
+int main(int argc, char *argv[]) {
 	char *p;
 	char inputPath[768];
 	char buf[2048];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list