| 1 | #ifdef RCSID |
| 2 | static char RCSid[] = |
| 3 | "$Header$"; |
| 4 | #endif |
| 5 | |
| 6 | /* |
| 7 | * Copyright (c) 1999, 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 | tcprsnf.cpp - TADS 3 Compiler Parser - "no files" module |
| 15 | Function |
| 16 | This module can be linked with programs that don't require any symbol or |
| 17 | object file read/write functionality. This module contains dummy |
| 18 | entrypoints for functions and methods that would normally be linked from |
| 19 | tcprsfil.cpp, which contains the actual implementations of these methods. |
| 20 | This is needed for interpreter builds that link in the compiler for |
| 21 | "eval()" functionality, which doesn't require any intermediate file |
| 22 | creation or loading. |
| 23 | Notes |
| 24 | |
| 25 | Modified |
| 26 | 04/30/99 MJRoberts - Creation |
| 27 | */ |
| 28 | |
| 29 | #include <assert.h> |
| 30 | #include <stdlib.h> |
| 31 | #include <string.h> |
| 32 | #include <stdio.h> |
| 33 | |
| 34 | #include "os.h" |
| 35 | #include "t3std.h" |
| 36 | #include "tcprs.h" |
| 37 | #include "tctarg.h" |
| 38 | #include "tcgen.h" |
| 39 | #include "vmhash.h" |
| 40 | #include "tcmain.h" |
| 41 | #include "vmfile.h" |
| 42 | #include "tcmake.h" |
| 43 | |
| 44 | /* ------------------------------------------------------------------------ */ |
| 45 | /* |
| 46 | * Object file readers |
| 47 | */ |
| 48 | void CTcSymObjBase::load_refs_from_obj_file( |
| 49 | CVmFile *, const char *, tctarg_obj_id_t *, tctarg_prop_id_t *) |
| 50 | { |
| 51 | assert(FALSE); |
| 52 | } |
| 53 | |
| 54 | |
| 55 | /* ------------------------------------------------------------------------ */ |
| 56 | /* |
| 57 | * Object file writers |
| 58 | */ |
| 59 | int CTcSymbolBase::write_to_obj_file(CVmFile *) |
| 60 | { |
| 61 | assert(FALSE); |
| 62 | return 0; |
| 63 | } |
| 64 | int CTcSymObjBase::write_to_obj_file(CVmFile *) |
| 65 | { |
| 66 | assert(FALSE); |
| 67 | return 0; |
| 68 | } |
| 69 | int CTcSymObjBase::write_refs_to_obj_file(class CVmFile *) |
| 70 | { |
| 71 | assert(FALSE); |
| 72 | return FALSE; |
| 73 | } |
| 74 | int CTcSymPropBase::write_to_obj_file(CVmFile *) |
| 75 | { |
| 76 | assert(FALSE); |
| 77 | return 0; |
| 78 | } |
| 79 | int CTcSymFuncBase::write_to_obj_file(CVmFile *) |
| 80 | { |
| 81 | assert(FALSE); |
| 82 | return 0; |
| 83 | } |
| 84 | int CTcSymEnumBase::write_to_obj_file(CVmFile *) |
| 85 | { |
| 86 | assert(FALSE); |
| 87 | return 0; |
| 88 | } |
| 89 | int CTcSymMetaclassBase::write_to_obj_file(CVmFile *) |
| 90 | { |
| 91 | assert(FALSE); |
| 92 | return 0; |
| 93 | } |
| 94 | int CTcSymBifBase::write_to_obj_file(CVmFile *) |
| 95 | { |
| 96 | assert(FALSE); |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | /* ------------------------------------------------------------------------ */ |
| 101 | /* |
| 102 | * Symbol file writers |
| 103 | */ |
| 104 | int CTcSymbolBase::write_to_sym_file(CVmFile *) |
| 105 | { |
| 106 | assert(FALSE); |
| 107 | return 0; |
| 108 | } |
| 109 | int CTcSymObjBase::write_to_sym_file(CVmFile *) |
| 110 | { |
| 111 | assert(FALSE); |
| 112 | return 0; |
| 113 | } |
| 114 | int CTcSymFuncBase::write_to_sym_file(CVmFile *) |
| 115 | { |
| 116 | assert(FALSE); |
| 117 | return 0; |
| 118 | } |
| 119 | int CTcSymEnumBase::write_to_sym_file(CVmFile *) |
| 120 | { |
| 121 | assert(FALSE); |
| 122 | return 0; |
| 123 | } |
| 124 | int CTcSymPropBase::write_to_sym_file(CVmFile *) |
| 125 | { |
| 126 | assert(FALSE); |
| 127 | return 0; |
| 128 | } |
| 129 | int CTcSymMetaclassBase::write_to_sym_file(CVmFile *) |
| 130 | { |
| 131 | assert(FALSE); |
| 132 | return 0; |
| 133 | } |
| 134 | |
| 135 | |
| 136 | /* ------------------------------------------------------------------------ */ |
| 137 | /* |
| 138 | * build the dictionary |
| 139 | */ |
| 140 | void CTcSymObjBase::build_dictionary() |
| 141 | { |
| 142 | assert(FALSE); |
| 143 | } |
| 144 | |
| 145 |