lbessard@49: /* lbessard@49: * (c) 2003 Mario de Sousa lbessard@49: * lbessard@49: * Offered to the public under the terms of the GNU General Public License lbessard@49: * as published by the Free Software Foundation; either version 2 of the lbessard@49: * License, or (at your option) any later version. lbessard@49: * lbessard@49: * This program is distributed in the hope that it will be useful, but lbessard@49: * WITHOUT ANY WARRANTY; without even the implied warranty of lbessard@49: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General lbessard@49: * Public License for more details. lbessard@49: * lbessard@49: * This code is made available on the understanding that it will not be lbessard@49: * used in safety-critical situations without a full and competent review. lbessard@49: */ etisserant@40: lbessard@49: /* lbessard@49: * An IEC 61131-3 IL and ST compiler. lbessard@49: * lbessard@49: * Based on the lbessard@49: * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) lbessard@49: * lbessard@49: */ lbessard@49: lbessard@49: etisserant@40: /**** etisserant@40: * IEC 61131-3 standard function lib etisserant@40: * generated code, do not edit by hand etisserant@40: */ etisserant@40: etisserant@40: /* Macro that expand to subtypes */ etisserant@40: #define ANY(DO) ANY_DERIVED(DO) ANY_ELEMENTARY(DO) etisserant@40: #define ANY_DERIVED(DO) etisserant@40: #define ANY_ELEMENTARY(DO) ANY_MAGNITUDE(DO) ANY_BIT(DO) ANY_STRING(DO) ANY_DATE(DO) etisserant@40: #define ANY_MAGNITUDE(DO) ANY_NUM(DO) DO(TIME) etisserant@40: #define ANY_BIT(DO) ANY_NBIT(DO) DO(BOOL) etisserant@40: #define ANY_NBIT(DO) DO(BYTE) DO(WORD) DO(DWORD) DO(LWORD) etisserant@40: #define ANY_STRING(DO) DO(STRING) etisserant@40: #define ANY_DATE(DO) DO(DATE) DO(TOD) DO(DT) etisserant@40: #define ANY_NUM(DO) ANY_REAL(DO) ANY_INT(DO) etisserant@40: #define ANY_REAL(DO) DO(REAL) DO(LREAL) etisserant@40: #define ANY_INT(DO) ANY_SINT(DO) ANY_UINT(DO) etisserant@40: #define ANY_SINT(DO) DO(SINT) DO(INT) DO(DINT) DO(LINT) etisserant@40: #define ANY_UINT(DO) DO(USINT) DO(UINT) DO(UDINT) DO(ULINT)