1996-07-25 22:56:11 +00:00
|
|
|
|
/* classes: h_files */
|
|
|
|
|
|
|
2001-08-31 12:13:50 +00:00
|
|
|
|
#ifndef SCM_STRPORTS_H
|
|
|
|
|
|
#define SCM_STRPORTS_H
|
|
|
|
|
|
|
2010-01-07 11:00:37 +01:00
|
|
|
|
/* Copyright (C) 1995,1996,2000,2001,2002, 2006, 2008, 2010 Free Software Foundation, Inc.
|
2001-08-31 12:13:50 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
|
|
* as published by the Free Software Foundation; either version 3 of
|
|
|
|
|
|
* the License, or (at your option) any later version.
|
2001-08-31 12:13:50 +00:00
|
|
|
|
*
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* This library is distributed in the hope that it will be useful, 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
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
|
* 02110-1301 USA
|
2003-04-05 19:15:35 +00:00
|
|
|
|
*/
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-03-15 11:24:45 +00:00
|
|
|
|
|
|
|
|
|
|
#define SCM_STRPORTP(x) (!SCM_IMP (x) && \
|
|
|
|
|
|
(SCM_TYP16 (x) == scm_tc16_strport))
|
|
|
|
|
|
#define SCM_OPSTRPORTP(x) (SCM_STRPORTP (x) && \
|
|
|
|
|
|
(SCM_CELL_WORD_0 (x) & SCM_OPN))
|
|
|
|
|
|
#define SCM_OPINSTRPORTP(x) (SCM_OPSTRPORTP (x) && \
|
|
|
|
|
|
(SCM_CELL_WORD_0 (x) & SCM_RDNG))
|
|
|
|
|
|
#define SCM_OPOUTSTRPORTP(x) (SCM_OPSTRPORTP (x) && \
|
|
|
|
|
|
(SCM_CELL_WORD_0 (x) & SCM_WRTNG))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API scm_t_bits scm_tc16_strport;
|
2001-03-15 11:24:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_mkstrport (SCM pos, SCM str, long modes, const char * caller);
|
|
|
|
|
|
SCM_API SCM scm_strport_to_string (SCM port);
|
|
|
|
|
|
SCM_API SCM scm_object_to_string (SCM obj, SCM printer);
|
|
|
|
|
|
SCM_API SCM scm_call_with_output_string (SCM proc);
|
|
|
|
|
|
SCM_API SCM scm_call_with_input_string (SCM str, SCM proc);
|
|
|
|
|
|
SCM_API SCM scm_open_input_string (SCM str);
|
|
|
|
|
|
SCM_API SCM scm_open_output_string (void);
|
|
|
|
|
|
SCM_API SCM scm_get_output_string (SCM port);
|
|
|
|
|
|
SCM_API SCM scm_c_read_string (const char *expr);
|
|
|
|
|
|
SCM_API SCM scm_c_eval_string (const char *expr);
|
2002-08-13 20:54:12 +00:00
|
|
|
|
SCM_API SCM scm_c_eval_string_in_module (const char *expr, SCM module);
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_eval_string (SCM string);
|
2002-08-13 20:54:12 +00:00
|
|
|
|
SCM_API SCM scm_eval_string_in_module (SCM string, SCM module);
|
2008-05-14 05:20:47 +02:00
|
|
|
|
SCM_INTERNAL void scm_init_strports (void);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2001-08-31 12:13:50 +00:00
|
|
|
|
#endif /* SCM_STRPORTS_H */
|
2000-03-19 19:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
|
c-file-style: "gnu"
|
|
|
|
|
|
End:
|
|
|
|
|
|
*/
|