1 ////////////////////////////////////////////////////////////////////////////// 2 //Copyright 2008 3 // Andrew Gacek, Steven Holte, Gopalan Nadathur, Xiaochu Qi, Zach Snow 4 ////////////////////////////////////////////////////////////////////////////// 5 // This file is part of Teyjus. // 6 // // 7 // Teyjus is free software: you can redistribute it and/or modify // 8 // it under the terms of the GNU General Public License as published by // 9 // the Free Software Foundation, either version 3 of the License, or // 10 // (at your option) any later version. // 11 // // 12 // Teyjus is distributed in the hope that it will be useful, // 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of // 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 15 // GNU General Public License for more details. // 16 // // 17 // You should have received a copy of the GNU General Public License // 18 // along with Teyjus. If not, see <http://www.gnu.org/licenses/>. // 19 ////////////////////////////////////////////////////////////////////////////// 20 #ifndef _STRINGS_H_ 21 #define _STRINGS_H_ 22 23 #include "../system/memory.h" 24 #include "../simulator/dataformats.h" 25 26 /** 27 * \brief Load the string table of a module. 28 * \pre The file position is at the beginning of the module files string table, ent points to the module table entry being loaded. 29 * \post The file position is moved to just after the string table. 30 * \throw LD_MallocError 31 **/ 32 void LD_STRING_LoadStrings(MEM_GmtEnt* ent); 33 34 /** 35 * \brief Load a string. 36 * \pre The file position is at the beginning of a string, ent points to the module table entry being loaded. 37 * \post The file position is moved to just after the string. 38 * \throw LD_MallocError 39 **/ 40 DF_StrDataPtr LD_STRING_LoadString(MEM_GmtEnt* ent); 41 42 DF_StrDataPtr LD_STRING_GetStringAddr(); 43 44 void LD_STRING_Cleanup(); 45 46 #endif //_STRINGS_H_ 47