#ifndef __NUMBERS_INTEGER2_H #define __NUMBERS_INTEGER2_H /* 6D programming language Copyright (C) 2011 Danny Milosavljevic This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include "6D/FFIs" #include "6D/Values" #include "Values/Values" #include "Numbers/Small" BEGIN_NAMESPACE_6D(Values) BEGIN_STRUCT_6D(Integer) NODET tail; /* Integer or Int */ NATIVEUINT value; END_STRUCT_6D(Integer) DECLARE_SMALL_VALUE(Int, NATIVEUINT) void initIntegers(void); bool intP(NODET node); END_NAMESPACE_6D(Values) BEGIN_NAMESPACE_6D(FFIs) bool toNativeInt(NODET aP, NativeInt* result); bool toNearestNativeInt(NODET node, NativeInt* result); NODET internNativeInt(NativeInt value); NODET internNativeUInt(NativeUInt value); END_NAMESPACE_6D(FFIs) #endif /* ndef __NUMBERS_INTEGER2_H */