Applied changes based on official version of TinyScheme (CVS commit dated

2008/06/28 19:28). Applied C++ patch by Shintaro Jingu.
This commit is contained in:
Kevin Cozens 2009-08-04 19:40:09 -04:00
parent 60ddcb625b
commit 101262b479
2 changed files with 15 additions and 0 deletions

View File

@ -144,6 +144,9 @@ enum scheme_opcodes {
OP_MAXDEFINED
};
#ifdef __cplusplus
extern "C" {
#endif
#define cons(sc,a,b) _cons(sc,a,b,0)
#define immutable_cons(sc,a,b) _cons(sc,a,b,1)
@ -189,4 +192,8 @@ int is_environment(pointer p);
int is_immutable(pointer p);
void setimmutable(pointer p);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -6,6 +6,10 @@
#include <stdio.h>
#include <glib.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Default values for #define'd symbols
*/
@ -237,5 +241,9 @@ struct scheme_interface {
};
#endif
#ifdef __cplusplus
}
#endif
#endif