1/* BEGIN LICENSE BLOCK
2 * Version: CMPL 1.1
3 *
4 * The contents of this file are subject to the Cisco-style Mozilla Public
5 * License Version 1.1 (the "License"); you may not use this file except
6 * in compliance with the License.  You may obtain a copy of the License
7 * at www.eclipse-clp.org/license.
8 *
9 * Software distributed under the License is distributed on an "AS IS"
10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
11 * the License for the specific language governing rights and limitations
12 * under the License.
13 *
14 * The Original Code is  The ECLiPSe Constraint Logic Programming System.
15 * The Initial Developer of the Original Code is  Cisco Systems, Inc.
16 * Portions created by the Initial Developer are
17 * Copyright (C) 2006 Cisco Systems, Inc.  All Rights Reserved.
18 *
19 * Contributor(s): Pascal Brisset
20 *
21 * END LICENSE BLOCK */
22// -*- mode: c++;-*-
23// $Id: ec2il.h,v 1.1 2006/09/23 01:54:04 snovello Exp $
24
25#ifndef EC2IL_H
26#define EC2IL_H
27
28#include "stdecil.h"
29
30class Ec2ilException {};
31class IsLongException {};
32IlcConstraint ec2il_cstr(EC_word);
33IlcIntExp ec2il_expr(EC_word);
34
35extern long EC_long(EC_word); // No check
36extern IlcIntVar var_or_int(EC_word); // may raise Ec2ilException
37
38extern IlcIntArray int_array_of_list(EC_word list);
39// may raise Ec2ilException or IsLongException
40
41#endif
42