diff options
author | Jim Blandy <jimb@red-bean.com> | 1996-10-14 01:33:50 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1996-10-14 01:33:50 +0000 |
commit | 1cc91f1b2937a230a2dc80dd25cc6003b7b8f2b5 (patch) | |
tree | 64ddce6a971f0e0ca6ddd41d9ac0f5b999122484 /libguile/vectors.c | |
parent | 1717856b4e8072b5aebab2324fcfba55bc504369 (diff) | |
download | guile-1cc91f1b2937a230a2dc80dd25cc6003b7b8f2b5.tar.gz |
* __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.)
Diffstat (limited to 'libguile/vectors.c')
-rw-r--r-- | libguile/vectors.c | 72 |
1 files changed, 12 insertions, 60 deletions
diff --git a/libguile/vectors.c b/libguile/vectors.c index 05e07d046..4484bf841 100644 --- a/libguile/vectors.c +++ b/libguile/vectors.c @@ -49,28 +49,20 @@ SCM_PROC(s_vector_p, "vector?", 1, 0, 0, scm_vector_p); -#ifdef __STDC__ -SCM -scm_vector_p(SCM x) -#else + SCM scm_vector_p(x) SCM x; -#endif { if SCM_IMP(x) return SCM_BOOL_F; return SCM_VECTORP(x) ? SCM_BOOL_T : SCM_BOOL_F; } SCM_PROC(s_vector_length, "vector-length", 1, 0, 0, scm_vector_length); -#ifdef __STDC__ -SCM -scm_vector_length(SCM v) -#else + SCM scm_vector_length(v) SCM v; -#endif { SCM_ASSERT(SCM_NIMP(v) && SCM_VECTORP(v), v, SCM_ARG1, s_vector_length); return SCM_MAKINUM(SCM_LENGTH(v)); @@ -78,14 +70,10 @@ scm_vector_length(v) SCM_PROC(s_list_to_vector, "list->vector", 1, 0, 0, scm_vector); SCM_PROC(s_vector, "vector", 0, 0, 1, scm_vector); -#ifdef __STDC__ -SCM -scm_vector(SCM l) -#else + SCM scm_vector(l) SCM l; -#endif { SCM res; register SCM *data; @@ -99,15 +87,11 @@ scm_vector(l) } SCM_PROC(s_vector_ref, "vector-ref", 2, 0, 0, scm_vector_ref); -#ifdef __STDC__ -SCM -scm_vector_ref(SCM v, SCM k) -#else + SCM scm_vector_ref(v, k) SCM v; SCM k; -#endif { SCM_ASSERT(SCM_NIMP(v) && SCM_VECTORP(v), v, SCM_ARG1, s_vector_ref); SCM_ASSERT(SCM_INUMP(k), k, SCM_ARG2, s_vector_ref); @@ -117,16 +101,12 @@ scm_vector_ref(v, k) SCM_PROC(s_vector_set_x, "vector-set!", 3, 0, 0, scm_vector_set_x); -#ifdef __STDC__ -SCM -scm_vector_set_x(SCM v, SCM k, SCM obj) -#else + SCM scm_vector_set_x(v, k, obj) SCM v; SCM k; SCM obj; -#endif { SCM_ASSERT(SCM_NIMP(v) && SCM_VECTORP(v), v, SCM_ARG1, s_vector_set_x); SCM_ASSERT(SCM_INUMP(k), k, SCM_ARG2, s_vector_set_x); @@ -137,16 +117,12 @@ scm_vector_set_x(v, k, obj) SCM_PROC(s_make_vector, "make-vector", 1, 2, 0, scm_make_vector); -#ifdef __STDC__ -SCM -scm_make_vector(SCM k, SCM fill, SCM multip) -#else + SCM scm_make_vector(k, fill, multip) SCM k; SCM fill; SCM multip; -#endif { SCM v; int multi; @@ -180,14 +156,10 @@ scm_make_vector(k, fill, multip) SCM_PROC(s_vector_to_list, "vector->list", 1, 0, 0, scm_vector_to_list); -#ifdef __STDC__ -SCM -scm_vector_to_list(SCM v) -#else + SCM scm_vector_to_list(v) SCM v; -#endif { SCM res = SCM_EOL; long i; @@ -200,15 +172,11 @@ scm_vector_to_list(v) SCM_PROC(s_vector_fill_x, "vector-fill!", 2, 0, 0, scm_vector_fill_x); -#ifdef __STDC__ -SCM -scm_vector_fill_x(SCM v, SCM fill_x) -#else + SCM scm_vector_fill_x(v, fill_x) SCM v; SCM fill_x; -#endif { register long i; register SCM *data; @@ -219,15 +187,11 @@ scm_vector_fill_x(v, fill_x) } -#ifdef __STDC__ -SCM -scm_vector_equal_p(SCM x, SCM y) -#else + SCM scm_vector_equal_p(x, y) SCM x; SCM y; -#endif { long i; for(i = SCM_LENGTH(x)-1;i >= 0;i--) @@ -238,10 +202,7 @@ scm_vector_equal_p(x, y) SCM_PROC (s_vector_move_left_x, "vector-move-left!", 5, 0, 0, scm_vector_move_left_x); -#ifdef __STDC__ -SCM -scm_vector_move_left_x (SCM vec1, SCM start1, SCM end1, SCM vec2, SCM start2) -#else + SCM scm_vector_move_left_x (vec1, start1, end1, vec2, start2) SCM vec1; @@ -249,7 +210,6 @@ scm_vector_move_left_x (vec1, start1, end1, vec2, start2) SCM end1; SCM vec2; SCM start2; -#endif { long i; long j; @@ -272,10 +232,7 @@ scm_vector_move_left_x (vec1, start1, end1, vec2, start2) } SCM_PROC (s_vector_move_right_x, "vector-move-right!", 5, 0, 0, scm_vector_move_right_x); -#ifdef __STDC__ -SCM -scm_vector_move_right_x (SCM vec1, SCM start1, SCM end1, SCM vec2, SCM start2) -#else + SCM scm_vector_move_right_x (vec1, start1, end1, vec2, start2) SCM vec1; @@ -283,7 +240,6 @@ scm_vector_move_right_x (vec1, start1, end1, vec2, start2) SCM end1; SCM vec2; SCM start2; -#endif { long i; long j; @@ -306,13 +262,9 @@ scm_vector_move_right_x (vec1, start1, end1, vec2, start2) } -#ifdef __STDC__ -void -scm_init_vectors (void) -#else + void scm_init_vectors () -#endif { #include "vectors.x" } |