1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-16 08:40:19 +02:00

* __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.)
This commit is contained in:
Jim Blandy 1996-10-14 01:33:50 +00:00
parent 1717856b4e
commit 1cc91f1b29
115 changed files with 1793 additions and 5912 deletions

View file

@ -55,14 +55,10 @@
SCM_PROC(s_multi_byte_string_p, "multi-byte-string?", 1, 0, 0, scm_multi_byte_string_p);
#ifdef __STDC__
SCM
scm_multi_byte_string_p (SCM obj)
#else
SCM
scm_multi_byte_string_p (obj)
SCM obj;
#endif
{
return (SCM_MB_STRINGP (obj)
? SCM_BOOL_T
@ -70,14 +66,10 @@ scm_multi_byte_string_p (obj)
}
#ifdef __STDC__
SCM
scm_regular_string_p (SCM obj)
#else
SCM
scm_regular_string_p (obj)
SCM obj;
#endif
{
return (SCM_REGULAR_STRINGP (obj)
? SCM_BOOL_T
@ -86,14 +78,10 @@ scm_regular_string_p (obj)
SCM_PROC(s_list_to_multi_byte_string, "list->multi-byte-string", 1, 0, 0, scm_multi_byte_string);
SCM_PROC(s_multi_byte_string, "multi-byte-string", 0, 0, 1, scm_multi_byte_string);
#ifdef __STDC__
SCM
scm_multi_byte_string (SCM chrs)
#else
SCM
scm_multi_byte_string (chrs)
SCM chrs;
#endif
{
SCM res;
register char *data;
@ -125,15 +113,11 @@ scm_multi_byte_string (chrs)
return res;
}
#ifdef __STDC__
int
scm_mb_ilength (unsigned char * data, int size)
#else
int
scm_mb_ilength (data, size)
unsigned char * data;
int size;
#endif
{
int pos;
int len;
@ -160,14 +144,10 @@ scm_mb_ilength (data, size)
}
SCM_PROC(s_multi_byte_string_length, "multi-byte-string-length", 1, 0, 0, scm_multi_byte_string_length);
#ifdef __STDC__
SCM
scm_multi_byte_string_length (SCM str)
#else
SCM
scm_multi_byte_string_length (str)
SCM str;
#endif
{
int size;
int len;
@ -184,28 +164,20 @@ scm_multi_byte_string_length (str)
SCM_PROC(s_symbol_multi_byte_p, "symbol-multi-byte?", 1, 0, 0, scm_symbol_multi_byte_p);
#ifdef __STDC__
SCM
scm_symbol_multi_byte_p (SCM symbol)
#else
SCM
scm_symbol_multi_byte_p (symbol)
SCM symbol;
#endif
{
return SCM_SYMBOL_MULTI_BYTE_STRINGP(symbol);
}
SCM_PROC(s_set_symbol_multi_byte_x, "set-symbol-multi-byte!", 2, 0, 0, scm_set_symbol_multi_byte_x);
#ifdef __STDC__
SCM
scm_set_symbol_multi_byte_x (SCM symbol, SCM val)
#else
SCM
scm_set_symbol_multi_byte_x (symbol, val)
SCM symbol;
SCM val;
#endif
{
if (SCM_TYP7 (symbol) == scm_tc7_msymbol)
{
@ -218,14 +190,10 @@ scm_set_symbol_multi_byte_x (symbol, val)
SCM_PROC(s_regular_port_p, "regular-port?", 1, 0, 0, scm_regular_port_p);
#ifdef __STDC__
SCM
scm_regular_port_p (SCM p)
#else
SCM
scm_regular_port_p (p)
SCM p;
#endif
{
return (SCM_PORT_REPRESENTATION(p) == scm_regular_port
? SCM_BOOL_T
@ -233,28 +201,20 @@ scm_regular_port_p (p)
}
SCM_PROC(s_regular_port_x, "regular-port!", 1, 0, 0, scm_regular_port_x);
#ifdef __STDC__
SCM
scm_regular_port_x (SCM p)
#else
SCM
scm_regular_port_x (p)
SCM p;
#endif
{
SCM_PORT_REPRESENTATION(p) = scm_regular_port;
return SCM_UNSPECIFIED;
}
SCM_PROC(s_multi_byte_port_p, "multi-byte-port?", 1, 0, 0, scm_multi_byte_port_p);
#ifdef __STDC__
SCM
scm_multi_byte_port_p (SCM p)
#else
SCM
scm_multi_byte_port_p (p)
SCM p;
#endif
{
return (SCM_PORT_REPRESENTATION(p) == scm_mb_port
? SCM_BOOL_T
@ -262,14 +222,10 @@ scm_multi_byte_port_p (p)
}
SCM_PROC(s_multi_byte_port_x, "multi-byte-port!", 1, 0, 0, scm_multi_byte_port_x);
#ifdef __STDC__
SCM
scm_multi_byte_port_x (SCM p)
#else
SCM
scm_multi_byte_port_x (p)
SCM p;
#endif
{
SCM_PORT_REPRESENTATION(p) = scm_mb_port;
return SCM_UNSPECIFIED;
@ -277,14 +233,10 @@ scm_multi_byte_port_x (p)
SCM_PROC(s_wide_character_port_p, "wide-character-port?", 1, 0, 0, scm_wide_character_port_p);
#ifdef __STDC__
SCM
scm_wide_character_port_p (SCM p)
#else
SCM
scm_wide_character_port_p (p)
SCM p;
#endif
{
return (SCM_PORT_REPRESENTATION(p) == scm_wchar_port
? SCM_BOOL_T
@ -292,14 +244,10 @@ scm_wide_character_port_p (p)
}
SCM_PROC(s_wide_character_port_x, "wide-character-port!", 1, 0, 0, scm_wide_character_port_x);
#ifdef __STDC__
SCM
scm_wide_character_port_x (SCM p)
#else
SCM
scm_wide_character_port_x (p)
SCM p;
#endif
{
SCM_PORT_REPRESENTATION(p) = scm_wchar_port;
return SCM_UNSPECIFIED;
@ -309,16 +257,12 @@ scm_wide_character_port_x (p)
#ifdef __STDC__
void
scm_put_wchar (int c, SCM port, int writing)
#else
void
scm_put_wchar (c, port, writing)
int c;
SCM port;
int writing;
#endif
{
if (writing)
scm_gen_puts (scm_regular_string, "#\\", port);
@ -379,16 +323,12 @@ scm_put_wchar (c, port, writing)
#ifdef __STDC__
void
scm_print_mb_string (SCM exp, SCM port, int writing)
#else
void
scm_print_mb_string (exp, port, writing)
SCM exp;
SCM port;
int writing;
#endif
{
if (writing)
{
@ -431,15 +371,11 @@ scm_print_mb_string (exp, port, writing)
}
#ifdef __STDC__
void
scm_print_mb_symbol (SCM exp, SCM port)
#else
void
scm_print_mb_symbol (exp, port)
SCM exp;
SCM port;
#endif
{
int pos;
int end;
@ -560,13 +496,9 @@ scm_print_mb_symbol (exp, port)
#ifdef __STDC__
void
scm_init_mbstrings (void)
#else
void
scm_init_mbstrings ()
#endif
{
#include "mbstrings.x"
}