X-Git-Url: https://git.hcoop.net/bpt/guile.git/blobdiff_plain/90d892e32e07c0d1ad3ac30893e90cb85f0c9246..0683c24d323a30de0a44ec754a85af88a48586ea:/guile-readline/readline.h diff --git a/guile-readline/readline.h b/guile-readline/readline.h index 85d115b4a..2bf5f8000 100644 --- a/guile-readline/readline.h +++ b/guile-readline/readline.h @@ -1,11 +1,11 @@ #ifndef READLINEH #define READLINEH -/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2000, 2006 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, @@ -15,28 +15,41 @@ * * You should have received a copy of the GNU General Public License * along with this software; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307 USA + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA * */ +/* SCM_RL_API is a macro prepended to all function and data definitions + which should be exported or imported in the resulting dynamic link + library in the Win32 port. */ + +#if defined (SCM_RL_IMPORT) +# define SCM_RL_API __declspec (dllimport) extern +#elif defined (SCM_RL_EXPORT) || defined (DLL_EXPORT) +# define SCM_RL_API __declspec (dllexport) extern +#else +# define SCM_RL_API extern +#endif + #include "libguile/__scm.h" -extern scm_option_t scm_readline_opts[]; +SCM_RL_API scm_t_option scm_readline_opts[]; #define SCM_HISTORY_FILE_P scm_readline_opts[0].val #define SCM_HISTORY_LENGTH scm_readline_opts[1].val #define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val #define SCM_N_READLINE_OPTIONS 3 -extern SCM scm_readline_options (SCM setting); -extern void scm_readline_init_ports (SCM inp, SCM outp); -extern SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook); -extern SCM scm_add_history (SCM txt); -extern SCM scm_read_history (SCM file); -extern SCM scm_write_history (SCM file); -extern SCM scm_filename_completion_function (SCM text, SCM continuep); -extern void scm_init_readline (void); +SCM_RL_API SCM scm_readline_options (SCM setting); +SCM_RL_API void scm_readline_init_ports (SCM inp, SCM outp); +SCM_RL_API SCM scm_readline (SCM txt, SCM inp, SCM outp, SCM read_hook); +SCM_RL_API SCM scm_add_history (SCM txt); +SCM_RL_API SCM scm_clear_history (void); +SCM_RL_API SCM scm_read_history (SCM file); +SCM_RL_API SCM scm_write_history (SCM file); +SCM_RL_API SCM scm_filename_completion_function (SCM text, SCM continuep); +SCM_RL_API void scm_init_readline (void); #ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL void rl_cleanup_after_signal ();