[pure-lang-svn] SF.net SVN: pure-lang: [89] pure/trunk
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-05-16 16:37:37
|
Revision: 89 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=89&view=rev Author: agraef Date: 2008-05-16 09:37:31 -0700 (Fri, 16 May 2008) Log Message: ----------- Fixed C compilation problems with runtime.h. Modified Paths: -------------- pure/trunk/ChangeLog pure/trunk/runtime.h Modified: pure/trunk/ChangeLog =================================================================== --- pure/trunk/ChangeLog 2008-05-16 08:46:10 UTC (rev 88) +++ pure/trunk/ChangeLog 2008-05-16 16:37:31 UTC (rev 89) @@ -1,3 +1,8 @@ +2008-05-16 Albert Graef <Dr....@t-...> + + * runtime.h: Fix compilation problems when header gets included + from C. + 2008-05-14 Albert Graef <Dr....@t-...> * funcall.h: Reduce maximum number of function parameters to Modified: pure/trunk/runtime.h =================================================================== --- pure/trunk/runtime.h 2008-05-16 08:46:10 UTC (rev 88) +++ pure/trunk/runtime.h 2008-05-16 16:37:31 UTC (rev 89) @@ -4,6 +4,7 @@ /* The Pure runtime interface. */ #include <stdint.h> +#include <stdbool.h> #include <setjmp.h> #include <gmp.h> @@ -124,9 +125,12 @@ /* Run a Pure function and catch exceptions. If everything goes normal, pure_invoke returns the return value of the executed function. Otherwise it returns 0 and sets e to the exception value, as given by pure_throw(). - XXXFIXME: Only supports parameterless functions right now. */ + XXXFIXME: This only works with C++ and only supports parameterless + functions right now. */ +#ifdef __cplusplus pure_expr *pure_invoke(void *f, pure_expr*& e); +#endif /* Count a new reference to an expression. This should be called whenever you want to store an expression somewhere, in order to prevent it from being This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |