summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 18:18:41 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 18:18:41 +0200
commit90e6023292e2bfe927bd633bac42fc355bb9f4d1 (patch)
tree14664b9e9d98f43c83b78547ea7c554fef8de9d1 /functions.h
parent383e3e833a7fbb8b1560ba861b76e8be96542c6f (diff)
Add support for fixnums.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/functions.h b/functions.h
index a4989cc..aac32e0 100644
--- a/functions.h
+++ b/functions.h
@@ -16,13 +16,23 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#import "MLKInteger.h"
+
#import <Foundation/NSString.h>
#include <stdint.h>
+NSString *MLKPrintToString (id object);
+
BOOL MLKFixnumP (id thing);
BOOL MLKInstanceP (id thing);
+
intptr_t MLKIntWithFixnum (id fixnum);
id MLKFixnumWithInt (intptr_t value);
id MLKIntegerWithInt (intptr_t value);
-NSString *MLKPrintToString (id object);
+id MLKCanoniseInteger (MLKInteger *x);
+
+id MLKAddFixnums (id x, id y);
+id MLKSubtractFixnums (id x, id y);
+id MLKIDivideFixnums (id x, id y);
+id MLKMultiplyFixnums (id x, id y);