changeset 1464:6548bc27329b

[project @ 1995-09-22 07:29:21 by jwe]
author jwe
date Fri, 22 Sep 1995 07:29:42 +0000
parents 592291d9dfbb
children 3bb3848031a0
files readline/ansi_stdlib.h readline/chardefs.h readline/history.h readline/keymaps.h readline/memalloc.h readline/posixstat.h readline/readline.h readline/rlconf.h readline/rldefs.h readline/tilde.h
diffstat 10 files changed, 80 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/readline/ansi_stdlib.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/ansi_stdlib.h	Fri Sep 22 07:29:42 1995 +0000
@@ -23,6 +23,10 @@
 #if !defined (_STDLIB_H_)
 #define	_STDLIB_H_ 1
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* String conversion functions. */
 extern int atoi ();
 extern long int atol ();
@@ -38,4 +42,8 @@
 extern char *getenv ();
 extern void qsort ();
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _STDLIB_H  */
--- a/readline/chardefs.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/chardefs.h	Fri Sep 22 07:29:42 1995 +0000
@@ -23,6 +23,10 @@
 #ifndef _CHARDEFS_H
 #define _CHARDEFS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <ctype.h>
 
 #if defined (HAVE_STRING_H)
@@ -119,4 +123,8 @@
 
 #define ESC CTRL('[')
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif  /* _CHARDEFS_H */
--- a/readline/history.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/history.h	Fri Sep 22 07:29:42 1995 +0000
@@ -1,5 +1,9 @@
 /* History.h -- the names of functions that you can call in history. */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* The structure used to store a history entry. */
 typedef struct _hist_entry {
   char *line;
@@ -179,3 +183,7 @@
 extern char history_subst_char;
 extern char history_comment_char;
 extern char *history_no_expand_chars;
+
+#ifdef __cplusplus
+}
+#endif
--- a/readline/keymaps.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/keymaps.h	Fri Sep 22 07:29:42 1995 +0000
@@ -23,6 +23,10 @@
 #ifndef _KEYMAPS_H_
 #define _KEYMAPS_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined (READLINE_LIBRARY)
 #  include "chardefs.h"
 #else
@@ -92,4 +96,8 @@
 /* Set the current keymap to MAP. */
 extern void rl_set_keymap ();
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _KEYMAPS_H_ */
--- a/readline/memalloc.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/memalloc.h	Fri Sep 22 07:29:42 1995 +0000
@@ -22,6 +22,10 @@
 #if !defined (__MEMALLOC_H__)
 #  define __MEMALLOC_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined (sparc) && defined (sun) && !defined (HAVE_ALLOCA_H)
 #  define HAVE_ALLOCA_H
 #endif
@@ -53,4 +57,8 @@
 
 #endif /* !BUILDING_MAKEFILE */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __MEMALLOC_H__ */
--- a/readline/posixstat.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/posixstat.h	Fri Sep 22 07:29:42 1995 +0000
@@ -24,6 +24,10 @@
 #if !defined (_POSIXSTAT_H)
 #define _POSIXSTAT_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <sys/stat.h>
 
 #if defined (isc386)
@@ -146,4 +150,8 @@
 #define S_IWUGO		(S_IWUSR | S_IWGRP | S_IWOTH)
 #define S_IXUGO		(S_IXUSR | S_IXGRP | S_IXOTH)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _POSIXSTAT_H */
--- a/readline/readline.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/readline.h	Fri Sep 22 07:29:42 1995 +0000
@@ -23,6 +23,10 @@
 #if !defined (_READLINE_H_)
 #define _READLINE_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined (READLINE_LIBRARY)
 #  include "keymaps.h"
 #  include "tilde.h"
@@ -295,4 +299,8 @@
 extern char *savestring ();	/* XXX backwards compatibility */
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _READLINE_H_ */
--- a/readline/rlconf.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/rlconf.h	Fri Sep 22 07:29:42 1995 +0000
@@ -24,6 +24,10 @@
 #if !defined (_RLCONF_H_)
 #define _RLCONF_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Define this if you want the vi-mode editing available. */
 #define VI_MODE
 
@@ -54,4 +58,8 @@
 /* The string inserted by the vi-mode `insert comment' command. */
 #define VI_COMMENT_BEGIN_DEFAULT "#"
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RLCONF_H_ */
--- a/readline/rldefs.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/rldefs.h	Fri Sep 22 07:29:42 1995 +0000
@@ -26,6 +26,10 @@
 #if !defined (_RLDEFS_H)
 #define _RLDEFS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if defined (HAVE_CONFIG_H)
 #  include "config.h"
 #endif
@@ -209,4 +213,8 @@
 /* CONFIGURATION SECTION */
 #include "rlconf.h"
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !_RLDEFS_H */
--- a/readline/tilde.h	Fri Sep 22 07:18:44 1995 +0000
+++ b/readline/tilde.h	Fri Sep 22 07:29:42 1995 +0000
@@ -3,6 +3,10 @@
 #if !defined (__TILDE_H__)
 #  define __TILDE_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Function pointers can be declared as (Function *)foo. */
 #if !defined (__FUNCTION_DEF)
 #  define __FUNCTION_DEF
@@ -35,4 +39,8 @@
    tilde.  If there is no expansion, call tilde_expansion_failure_hook. */
 extern char *tilde_expand_word ();
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __TILDE_H__ */