From 1cc91f1b2937a230a2dc80dd25cc6003b7b8f2b5 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 14 Oct 1996 01:33:50 +0000 Subject: * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c, arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h, chars.c, chars.h, continuations.c, continuations.h, debug.c, debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c, eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c, filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c, gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h, hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h, kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c, markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h, objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h, ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c, procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h, root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h, stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to declare functions with prototypes. (Patch thanks to Marius Vollmer.) --- libguile/struct.h | 41 ++++++++++------------------------------- 1 file changed, 10 insertions(+), 31 deletions(-) (limited to 'libguile/struct.h') diff --git a/libguile/struct.h b/libguile/struct.h index a8bff944c..1b2b44924 100644 --- a/libguile/struct.h +++ b/libguile/struct.h @@ -70,37 +70,16 @@ -#ifdef __STDC__ -extern SCM scm_make_struct_layout (SCM fields); -extern SCM scm_struct_p (SCM x); -extern SCM scm_struct_vtable_p (SCM x); -extern SCM scm_make_struct (SCM vtable, SCM tail_array_size, SCM init); -extern SCM scm_make_vtable_vtable (SCM extra_fields, SCM tail_array_size, SCM init); -extern SCM scm_struct_ref (SCM handle, SCM pos); -extern SCM scm_struct_set_x (SCM handle, SCM pos, SCM val); -extern SCM scm_struct_vtable (SCM handle); -extern SCM scm_struct_vtable_tag (SCM handle); -extern void scm_init_struct (void); - -#else /* STDC */ -extern SCM scm_make_struct_layout (); -extern SCM scm_struct_p (); -extern SCM scm_struct_vtable_p (); -extern SCM scm_make_struct (); -extern SCM scm_make_vtable_vtable (); -extern SCM scm_struct_ref (); -extern SCM scm_struct_set_x (); -extern SCM scm_struct_vtable (); -extern SCM scm_struct_vtable_tag (); -extern void scm_init_struct (); - -#endif /* STDC */ - - - - - - +extern SCM scm_make_struct_layout SCM_P ((SCM fields)); +extern SCM scm_struct_p SCM_P ((SCM x)); +extern SCM scm_struct_vtable_p SCM_P ((SCM x)); +extern SCM scm_make_struct SCM_P ((SCM vtable, SCM tail_array_size, SCM init)); +extern SCM scm_make_vtable_vtable SCM_P ((SCM extra_fields, SCM tail_array_size, SCM init)); +extern SCM scm_struct_ref SCM_P ((SCM handle, SCM pos)); +extern SCM scm_struct_set_x SCM_P ((SCM handle, SCM pos, SCM val)); +extern SCM scm_struct_vtable SCM_P ((SCM handle)); +extern SCM scm_struct_vtable_tag SCM_P ((SCM handle)); +extern void scm_init_struct SCM_P ((void)); #endif /* STRUCTH */ -- cgit v1.2.3