Debian Codegraph @

terps/tads/tads3/vmbifregx.cpp

raw
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header: d:/cvsroot/tads/tads3/vmbifreg.cpp,v 1.2 1999/05/17 02:52:29 MJRoberts Exp $";
4 #endif
5
6 /*
7 * Copyright (c) 1998, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 vmbifregx.cpp - built-in function set registry, with tads-io-ext
15 Function
16 Defines the built-in functions that are linked in to this implementation
17 of the VM. This version of the registry includes tads-io-ext, the extended
18 I/O function set.
19 Notes
20
21 Modified
22 03/02/2005 MJRoberts - Creation
23 */
24
25 #include "vmbifreg.h"
26
27 /* ------------------------------------------------------------------------ */
28 /*
29 * Include the function set vector definitions. Define
30 * VMBIF_DEFINE_VECTOR so that the headers all generate vector
31 * definitions.
32 */
33 #define VMBIF_DEFINE_VECTOR
34
35 #include "vmbiftad.h"
36 #include "vmbiftio.h"
37 #include "vmbift3.h"
38 #include "vmbiftix.h"
39
40 // !!! INCLUDE HOST-SPECIFIC FUNCTION SET HEADERS HERE ("vmbifxxx.h")
41
42 /* done with the vector definition */
43 #undef VMBIF_DEFINE_VECTOR
44
45 #define MAKE_ENTRY(entry_name, cls) \
46 { entry_name, countof(cls::bif_table), cls::bif_table, \
47 &cls::attach, &cls::detach }
48
49 /* ------------------------------------------------------------------------ */
50 /*
51 * The function set registration table. Each entry in the table
52 * provides the definition of one function set, keyed by the function
53 * set's universally unique identifier.
54 */
55 vm_bif_entry_t G_bif_reg_table[] =
56 {
57 /* T3 VM system function set */
58 MAKE_ENTRY("t3vm/010006", CVmBifT3),
59
60 /* T3 VM Testing interface */
61 MAKE_ENTRY("t3vmTEST/010000", CVmBifT3Test),
62
63 /* TADS generic data manipulation functions */
64 MAKE_ENTRY("tads-gen/030008", CVmBifTADS),
65
66 /* TADS input/output functions */
67 MAKE_ENTRY("tads-io/030007", CVmBifTIO),
68
69 /* TADS extended input/output functions (if the platform supports them) */
70 MAKE_ENTRY("tads-io-ext/030000", CVmBifTIOExt),
71
72 // !!! ADD ANY HOST-SPECIFIC FUNCTION SETS HERE
73
74 /* end of table marker */
75 { 0, 0, 0 }
76 };
77
78 /* we don't need the MAKE_ENTRY macro any longer */
79 #undef MAKE_ENTRY
80