xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / gcc / m2 / gm2-libs / M2Dependent.def
blob9e31d57285b9a43a7700241d1eb69cfdb50f1638
1 (* M2Dependent.def defines the run time module dependencies interface.
3 Copyright (C) 2022-2024 Free Software Foundation, Inc.
4 Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6 This file is part of GNU Modula-2.
8 GNU Modula-2 is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GNU Modula-2 is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. *)
27 DEFINITION MODULE M2Dependent ;
29 FROM SYSTEM IMPORT ADDRESS ;
32 TYPE
33 ArgCVEnvP = PROCEDURE (INTEGER, ADDRESS, ADDRESS) ;
36 PROCEDURE ConstructModules (applicationmodule, libname,
37 overrideliborder: ADDRESS;
38 argc: INTEGER; argv, envp: ADDRESS) ;
40 PROCEDURE DeconstructModules (applicationmodule, libname: ADDRESS;
41 argc: INTEGER; argv, envp: ADDRESS) ;
45 RegisterModule - adds module name to the list of outstanding
46 modules which need to have their dependencies
47 explored to determine initialization order.
50 PROCEDURE RegisterModule (modulename, libname: ADDRESS;
51 init, fini: ArgCVEnvP;
52 dependencies: PROC) ;
56 RequestDependant - used to specify that modulename:libname
57 is dependant upon
58 module dependantmodule:dependantlibname
61 PROCEDURE RequestDependant (modulename, libname,
62 dependantmodule, dependantlibname: ADDRESS) ;
65 END M2Dependent.