Another try in normalizing C coding style.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5362 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2012-01-02 11:54:15 +00:00
parent 0cb60439c8
commit 8abedd2bae

View File

@@ -171,7 +171,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
void printCHeader(void) {
static void printCHeader (void) {
fprintf (outputCFile,
"//\n"
@@ -184,7 +184,7 @@ void printCHeader(void) {
}
void printSHeader(void) {
static void printSHeader (void) {
fprintf (outputSFile,
";\n"
@@ -197,7 +197,7 @@ void printSHeader(void) {
}
void openCFile(void) {
static void openCFile (void) {
if ((outputCFile = fopen (outputCName,outputCMode)) == 0) {
AbEnd ("Can't open file %s for writing: %s", outputCName, strerror (errno));
@@ -211,7 +211,7 @@ void openCFile(void) {
}
void openSFile(void) {
static void openSFile (void) {
if ((outputSFile = fopen (outputSName, outputSMode)) == 0) {
AbEnd ("Can't open file %s for writing: %s", outputSName, strerror (errno));
@@ -225,7 +225,7 @@ void openSFile(void) {
}
int findToken(const char **tokenTbl, const char *token) {
static int findToken (const char **tokenTbl, const char *token) {
/* takes as input table of tokens and token, returns position in table or -1 if not found */
int a = 0;
@@ -240,23 +240,23 @@ int findToken(const char **tokenTbl, const char *token) {
}
char *nextPhrase() {
static char *nextPhrase (void) {
return strtok (NULL, "\"");
}
char *nextWord() {
static char *nextWord (void) {
return strtok (NULL, " ");
}
void setLen(char *name, unsigned len) {
static void setLen (char *name, unsigned len) {
if (strlen (name) > len)
name[len] = '\0';
}
void fillOut(char *name, int len, char *filler) {
static void fillOut (char *name, int len, char *filler) {
int a;
@@ -270,7 +270,7 @@ void fillOut(char *name, int len, char *filler) {
}
char *bintos(unsigned char a, char out[7]) {
static char *bintos (unsigned char a, char out[7]) {
int i=0;
@@ -284,7 +284,7 @@ char *bintos(unsigned char a, char out[7]) {
}
int getNameSize(const char *word) {
static int getNameSize (const char *word) {
/* count length of a word using BSW 9 font table */
int a = 0, i = 0;
@@ -298,7 +298,7 @@ int getNameSize(const char *word) {
}
void DoMenu(void) {
static void DoMenu (void) {
int a, size, tmpsize, item = 0;
char *token;
@@ -406,7 +406,7 @@ void DoMenu(void) {
}
void DoHeader(void) {
static void DoHeader (void) {
time_t t;
struct tm *my_tm;
@@ -640,7 +640,7 @@ void DoHeader(void) {
}
void DoVLIR(void) {
static void DoVLIR (void) {
char *token;
int record, lastrecord;
@@ -729,7 +729,7 @@ void DoVLIR(void) {
}
char *filterInput(FILE *F, char *tbl) {
static char *filterInput (FILE *F, char *tbl) {
/* loads file into buffer filtering it out */
int a, prevchar = -1, i = 0, bracket = 0, quote = 1;
@@ -772,7 +772,7 @@ char *filterInput(FILE *F, char *tbl) {
}
void processFile(const char *filename) {
static void processFile (const char *filename) {
FILE *F;