1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
m4_define(`dnl', `m4_dnl')`'dnl
m4_divert(-1)dnl
dnl This m4 file generates the file ppl_ocaml.cc
dnl using the code in ppl_interface_generator_ocaml_cc_code.m4.
dnl Copyright (C) 2001-2009 Roberto Bagnara <[email protected]>
dnl
dnl This file is part of the Parma Polyhedra Library (PPL).
dnl
dnl The PPL is free software; you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by the
dnl Free Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl The PPL is distributed in the hope that it will be useful, but WITHOUT
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software Foundation,
dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
dnl
dnl For the most up-to-date information see the Parma Polyhedra Library
dnl site: http://www.cs.unipr.it/ppl/ .
dnl Include files defining macros that generate the non-fixed part.
m4_include(`ppl_interface_generator_ocaml_cc_code.m4')
m4_include(`ppl_interface_generator_ocaml_procedure_generators.m4')
dnl -----------------------------------------------------------------
dnl Macros needed for the class-dependent code.
dnl -----------------------------------------------------------------
dnl Ensure any schematic procedure macro that is not defined
dnl in the code file outputs a warning message.
m4_define(`m4_default_code', `m4_dumpdef($1`'_code)')
dnl Prefix extra code for each class.
m4_define(`m4_pre_extra_class_code', `dnl
m4_define(`m4_current_interface', m4_interface_class`'$1)`'dnl
m4_define(`m4_current_cplusplus', m4_cplusplus_class`'$1)`'dnl
%<--%<--%<-- ppl_ocaml_`'m4_current_interface`'.cc
/* OCaml m4_current_interface interface code.
m4_include(`ppl_interface_generator_copyright')`'dnl
*/
`#'include "ppl_ocaml_domains.hh"
m4_custom_operations_class_code
using namespace Parma_Polyhedra_Library;
using namespace Parma_Polyhedra_Library::Interfaces::OCaml;
')
dnl -----------------------------------------------------------------
dnl Generate the main class-dependent code.
dnl -----------------------------------------------------------------
m4_divert`'dnl
m4_all_code
dnl
dnl End of file generation.
|