]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/pge-boot/GStorage.cc
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / pge-boot / GStorage.cc
CommitLineData
fbd2eda1
GM
1/* do not edit automatically generated by mc from Storage. */
2/* Storage.mod provides access to the dynamic Storage handler.
3
a945c346 4Copyright (C) 2001-2024 Free Software Foundation, Inc.
fbd2eda1
GM
5Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6
7This file is part of GNU Modula-2.
8
9GNU Modula-2 is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 3, or (at your option)
12any later version.
13
14GNU Modula-2 is distributed in the hope that it will be useful, but
15WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17General Public License for more details.
18
19Under Section 7 of GPL version 3, you are granted additional
20permissions described in the GCC Runtime Library Exception, version
213.1, as published by the Free Software Foundation.
22
23You should have received a copy of the GNU General Public License and
24a copy of the GCC Runtime Library Exception along with this program;
25see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
26<http://www.gnu.org/licenses/>. */
27
9525daf0 28#include <stdbool.h>
fbd2eda1
GM
29# if !defined (PROC_D)
30# define PROC_D
31 typedef void (*PROC_t) (void);
32 typedef struct { PROC_t proc; } PROC;
33# endif
34
35#define _Storage_H
36#define _Storage_C
37
38# include "GSysStorage.h"
39
40extern "C" void Storage_ALLOCATE (void * *a, unsigned int Size);
41extern "C" void Storage_DEALLOCATE (void * *a, unsigned int Size);
42extern "C" void Storage_REALLOCATE (void * *a, unsigned int Size);
9525daf0 43extern "C" bool Storage_Available (unsigned int Size);
fbd2eda1
GM
44
45extern "C" void Storage_ALLOCATE (void * *a, unsigned int Size)
46{
47 SysStorage_ALLOCATE (a, Size);
48}
49
50extern "C" void Storage_DEALLOCATE (void * *a, unsigned int Size)
51{
52 SysStorage_DEALLOCATE (a, Size);
53}
54
55extern "C" void Storage_REALLOCATE (void * *a, unsigned int Size)
56{
57 SysStorage_REALLOCATE (a, Size);
58}
59
9525daf0 60extern "C" bool Storage_Available (unsigned int Size)
fbd2eda1
GM
61{
62 return SysStorage_Available (Size);
63 /* static analysis guarentees a RETURN statement will be used before here. */
64 __builtin_unreachable ();
65}
66
67extern "C" void _M2_Storage_init (__attribute__((unused)) int argc,__attribute__((unused)) char *argv[],__attribute__((unused)) char *envp[])
68{
69}
70
71extern "C" void _M2_Storage_fini (__attribute__((unused)) int argc,__attribute__((unused)) char *argv[],__attribute__((unused)) char *envp[])
72{
73}