diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 18:18:41 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 18:18:41 +0200 |
commit | 90e6023292e2bfe927bd633bac42fc355bb9f4d1 (patch) | |
tree | 14664b9e9d98f43c83b78547ea7c554fef8de9d1 /functions.h | |
parent | 383e3e833a7fbb8b1560ba861b76e8be96542c6f (diff) |
Add support for fixnums.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 12 |
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); |