]> gcc.gnu.org Git - gcc.git/blame - libchill/rtsdummy.c
Update copyright.
[gcc.git] / libchill / rtsdummy.c
CommitLineData
b79f73df
JL
1/* Implement runtime actions for CHILL.
2 Copyright (C) 1992,1993 Free Software Foundation, Inc.
3 Author: Wilfried Moser
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING. If not, write to
19the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20
502b941f
JL
21/* As a special exception, if you link this library with other files,
22 some of which are compiled with GCC, to produce an executable,
23 this library does not by itself cause the resulting executable
24 to be covered by the GNU General Public License.
25 This exception does not however invalidate any other reasons why
26 the executable file might be covered by the GNU General Public License. */
27
b79f73df
JL
28#define __CHILL_LIB__
29
b79f73df
JL
30#include <stdio.h>
31#include <stdlib.h>
32#include <setjmp.h>
33/*#include "gvarargs.h" Gcc source and runtime libs use gvarargs.h */
34
35#include "rtltypes.h"
36
37typedef void (*init_ptr) ();
38typedef int * tasking_ptr;
39
40/* Dummy functions for rts access. When we come here we have an error. */
41
42typedef char *(*fetch_names) (int number);
43typedef int (*fetch_numbers) (char *name);
44
45static void __rts_main_loop ()
46{
47 /* do nothing in case of no run time system */
48}
49init_ptr __RTS_MAIN_LOOP__ = __rts_main_loop;
50
51static void __rts_init ()
52{
53 /* do nothing in case of no run time system */
54}
55init_ptr __RTS_INIT__ = __rts_init;
56
57static char *__fetch_name (int number)
58{
59 fprintf (stderr, "ChillLib: fetch_name: no runtime system library linked.\n");
60 fflush (stderr);
61 abort ();
62}
63fetch_names __RTS_FETCH_NAMES__ = __fetch_name;
64
65static int __fetch_number (char *name)
66{
67 fprintf (stderr, "ChillLib: fetch_number: no runtime system library linked.\n");
68 fflush (stderr);
69 abort ();
70}
71fetch_numbers __RTS_FETCH_NUMBERS__ = __fetch_number;
This page took 0.056344 seconds and 5 git commands to generate.