scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 452190b652a22d2d5ba1fbc2106bf7847944f582
parent 87e4396fb51faf4eac6fbd0a853e8c9d93c88fa2
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Tue, 18 Nov 2025 16:47:52 +0100

include: Remove parameter names in prototypes

Just be consistent and apply the same style in all the files.

Diffstat:
Minclude/scc/bits/scc/scc.h | 26+++++++++++++-------------
Minclude/scc/signal.h | 2+-
Minclude/scc/wchar.h | 4++--
Msrc/cmd/scc-ld/ld.h | 28++++++++++++++--------------
4 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/include/scc/bits/scc/scc.h b/include/scc/bits/scc/scc.h @@ -27,19 +27,19 @@ struct fprop { typedef struct alloc Alloc; -void die(const char *fmt, ...); -void dbg(const char *fmt, ...); -void newitem(struct items *items, char *item); -void *xmalloc(size_t size); -void *xcalloc(size_t nmemb, size_t size); -char *xstrdup(const char *s); -void *xrealloc(void *buff, size_t size); -Alloc *alloc(size_t size, size_t nmemb); -void dealloc(Alloc *allocp); -void *new(Alloc *allocp); -void delete(Alloc *allocp, void *p); -int casecmp(const char *s1, const char *s2); -unsigned genhash(char *name); +void die(const char *, ...); +void dbg(const char *, ...); +void newitem(struct items *, char *); +void *xmalloc(size_t); +void *xcalloc(size_t, size_t); +char *xstrdup(const char *); +void *xrealloc(void *, size_t); +Alloc *alloc(size_t, size_t); +void dealloc(Alloc *); +void *new(Alloc *); +void delete(Alloc *, void *); +int casecmp(const char *, const char *); +unsigned genhash(char *); char *canonical(char *); #ifdef CLOCKS_PER_SEC diff --git a/include/scc/signal.h b/include/scc/signal.h @@ -3,7 +3,7 @@ #include <sys/signal.h> -void (*signal(int, void (*handler)(int)))(int); +void (*signal(int, void (*)(int)))(int); int raise(int); #endif diff --git a/include/scc/wchar.h b/include/scc/wchar.h @@ -22,7 +22,7 @@ struct _FILE; int vswscanf(const wchar_t *restrict, const wchar_t *restrict, __va_list); int vwprintf(const wchar_t *restrict, __va_list); -int vwscanf(const wchar_t *restrict format, __va_list); +int vwscanf(const wchar_t *restrict, __va_list); int fwprintf(struct _FILE *restrict, const wchar_t *restrict, ...); int fwscanf(struct _FILE *restrict, const wchar_t *restrict, ...); @@ -32,7 +32,7 @@ int vfwscanf(struct _FILE *restrict, const wchar_t *restrict, __va_list); int vswprintf(wchar_t *restrict, size_t, const wchar_t *restrict, __va_list); wint_t fgetwc(struct _FILE *); -wint_t fputwc(wchar_t c, struct _FILE *); +wint_t fputwc(wchar_t, struct _FILE *); wint_t getwc(struct _FILE *); wint_t putwc(wchar_t, struct _FILE *); wint_t getwchar(void); diff --git a/src/cmd/scc-ld/ld.h b/src/cmd/scc-ld/ld.h @@ -1,27 +1,27 @@ /* passes */ -void pass1(int argc, char *argv[]); -void pass2(int argc, char *argv[]); -void pass3(int argc, char *argv[]); -void pass4(int argc, char *argv[]); -void pass5(int argc, char *argv[]); +void pass1(int, char *[]); +void pass2(int, char *[]); +void pass3(int, char *[]); +void pass4(int, char *[]); +void pass5(int, char *[]); /* main.c */ -void error(char *fmt, ...); -char *nextarg(char **argp, char ***argv); +void error(char *, ...); +char *nextarg(char **, char ***); /* symbol.c */ -int hasref(char *name); -Symbol *lookupsym(char *name); +int hasref(char *); +Symbol *lookupsym(char *); int moreundef(void); void listundef(void); -Symbol *define(Symbol *osym, Obj *obj); +Symbol *define(Symbol *, Obj *); void debugsym(void); /* section.c */ -Section *lookupsec(char *name); -void copy(Obj *obj, Section *osec, Section *sec); -void grow(Section *sec, int nbytes); -void merge(Section *seg); +Section *lookupsec(char *); +void copy(Obj *, Section *, Section *); +void grow(Section *, int); +void merge(Section *); void debugsec(void); /* globals */