1996-07-25 22:56:11 +00:00
|
|
|
|
/* classes: h_files */
|
|
|
|
|
|
|
2001-08-31 12:13:50 +00:00
|
|
|
|
#ifndef SCM_GSUBR_H
|
|
|
|
|
|
#define SCM_GSUBR_H
|
|
|
|
|
|
|
|
|
|
|
|
/* Copyright (C) 1995,1996,1998,2000,2001 Free Software Foundation, Inc.
|
|
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-08-31 12:13:50 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
1996-07-25 22:56:11 +00:00
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
* Lesser General Public License for more details.
|
2001-08-31 12:13:50 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
*/
|
2001-08-31 12:13:50 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: #include "libguile/__scm.h", not
<libguile/__scm.h>. This allows 'gcc -MM' to determine which
dependencies are within libguile properly.
1996-09-05 21:19:08 +00:00
|
|
|
|
#include "libguile/__scm.h"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-04 11:32:05 +00:00
|
|
|
|
#define SCM_GSUBR_MAKTYPE(req, opt, rst) ((req)|((opt)<<4)|((rst)<<8))
|
2001-05-26 20:51:22 +00:00
|
|
|
|
#define SCM_GSUBR_REQ(x) ((long)(x)&0xf)
|
|
|
|
|
|
#define SCM_GSUBR_OPT(x) (((long)(x)&0xf0)>>4)
|
|
|
|
|
|
#define SCM_GSUBR_REST(x) ((long)(x)>>8)
|
1998-05-04 11:32:05 +00:00
|
|
|
|
|
|
|
|
|
|
#define SCM_GSUBR_MAX 10
|
2000-09-26 20:11:22 +00:00
|
|
|
|
#define SCM_GSUBR_TYPE(cclo) (SCM_CCLO_REF ((cclo), 1))
|
|
|
|
|
|
#define SCM_SET_GSUBR_TYPE(cclo, type) (SCM_CCLO_SET ((cclo), 1, (type)))
|
|
|
|
|
|
#define SCM_GSUBR_PROC(cclo) (SCM_CCLO_REF ((cclo), 2))
|
|
|
|
|
|
#define SCM_SET_GSUBR_PROC(cclo, proc) (SCM_CCLO_SET ((cclo), 2, (proc)))
|
1998-05-04 11:32:05 +00:00
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_f_gsubr_apply;
|
1998-05-04 11:32:05 +00:00
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_c_make_gsubr (const char *name,
|
|
|
|
|
|
int req, int opt, int rst, SCM (*fcn) ());
|
|
|
|
|
|
SCM_API SCM scm_c_make_gsubr_with_generic (const char *name,
|
|
|
|
|
|
int req, int opt, int rst,
|
|
|
|
|
|
SCM (*fcn) (), SCM *gf);
|
|
|
|
|
|
SCM_API SCM scm_c_define_gsubr (const char *name,
|
|
|
|
|
|
int req, int opt, int rst, SCM (*fcn) ());
|
|
|
|
|
|
SCM_API SCM scm_c_define_gsubr_with_generic (const char *name,
|
|
|
|
|
|
int req, int opt, int rst,
|
|
|
|
|
|
SCM (*fcn) (), SCM *gf);
|
2001-05-20 00:34:10 +00:00
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_gsubr_apply (SCM args);
|
|
|
|
|
|
SCM_API void scm_init_gsubr (void);
|
2001-05-20 00:34:10 +00:00
|
|
|
|
|
2001-08-31 12:13:50 +00:00
|
|
|
|
#endif /* SCM_GSUBR_H */
|
2000-03-19 19:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
|
c-file-style: "gnu"
|
|
|
|
|
|
End:
|
|
|
|
|
|
*/
|