yast2-core
|
*.ybc I/O More...
#include <Bytecode.h>
Classes | |
class | Invalid |
struct | namespaceentry_t |
references to namespaces More... | |
Static Public Member Functions | |
static std::ostream & | writeBool (std::ostream &streamref, bool value) |
static bool | readBool (bytecodeistream &streamref) |
static std::ostream & | writeString (std::ostream &streamref, const std::string &stringref) |
static bool | readString (bytecodeistream &streamref, std::string &stringref) |
static std::ostream & | writeUstring (std::ostream &streamref, const Ustring ustringref) |
static Ustring | readUstring (bytecodeistream &streamref) |
static std::ostream & | writeCharp (std::ostream &streamref, const char *charp) |
static char * | readCharp (bytecodeistream &streamref) |
static std::ostream & | writeBytep (std::ostream &streamref, const unsigned char *bytep, unsigned int len) |
static unsigned char * | readBytep (bytecodeistream &streamref) |
static std::ostream & | writeInt32 (std::ostream &str, const u_int32_t value) |
static u_int32_t | readInt32 (bytecodeistream &str) |
static std::ostream & | writeType (std::ostream &str, constTypePtr type) |
static TypePtr | readType (bytecodeistream &str) |
static std::ostream & | writeValue (std::ostream &str, const YCPValue value) |
static YCPValue | readValue (bytecodeistream &str) |
static std::ostream & | writeYCodelist (std::ostream &str, const ycodelist_t *codelist) |
static bool | readYCodelist (bytecodeistream &str, ycodelist_t **anchor) |
static void | namespaceInit () |
static int | namespaceId (const Y2Namespace *name_space) |
static const Y2Namespace * | namespacePtr (int namespace_id) |
static int | pushNamespace (const Y2Namespace *name_space, bool with_xrefs=false) |
static int | popNamespace (const Y2Namespace *name_space) |
static void | popUptoNamespace (const Y2Namespace *name_space) |
static int | tareStack () |
static void | untareStack (int tare_id) |
static std::ostream & | writeEntry (std::ostream &str, const SymbolEntryPtr entry) |
static SymbolEntryPtr | readEntry (bytecodeistream &str) |
static YCodePtr | readCode (bytecodeistream &str) |
static YBlockPtr | readModule (const string &mname) |
static YCodePtr | readFile (const string &filename) |
static bool | writeFile (const YCodePtr code, const string &filename) |
Static Private Attributes | |
static int | m_namespace_nesting_level = -1 |
static int | m_namespace_nesting_array_size = 0 |
static int | m_namespace_tare_level = 0 |
static namespaceentry_t * | m_namespace_nesting_array = 0 |
static map< string, YBlockPtr > * | m_bytecodeCache = NULL |
*.ybc I/O
|
static |
References m_namespace_nesting_array, m_namespace_nesting_level, m_namespace_tare_level, and y2error.
Referenced by writeEntry().
|
static |
References m_namespace_nesting_array_size, m_namespace_nesting_level, m_namespace_tare_level, and y2debug.
|
static |
References m_namespace_nesting_array, m_namespace_nesting_level, m_namespace_tare_level, Bytecode::namespaceentry_t::name_space, and y2error.
Referenced by readEntry().
|
static |
References SymbolTable::closeXRefs(), m_namespace_nesting_array, m_namespace_nesting_array_size, m_namespace_nesting_level, m_namespace_tare_level, Y2Namespace::table(), y2debug, and y2error.
Referenced by YFunction::setDefinition(), YEBuiltin::toStream(), YFunction::toStreamDefinition(), and YEBuiltin::YEBuiltin().
|
static |
|
static |
References m_namespace_nesting_array, m_namespace_nesting_array_size, m_namespace_nesting_level, m_namespace_tare_level, Bytecode::namespaceentry_t::name_space, SymbolTable::openXRefs(), Y2Namespace::table(), Bytecode::namespaceentry_t::with_xrefs, y2debug, and y2error.
Referenced by YFunction::setDefinition(), YBlock::toStream(), YEBuiltin::toStream(), YSImport::toStream(), YFunction::toStreamDefinition(), YBlock::YBlock(), YEBuiltin::YEBuiltin(), and YSImport::YSImport().
|
static |
Referenced by FunctionType::FunctionType(), Point::Point(), YFunction::setDefinition(), YConst::YConst(), YEBuiltin::YEBuiltin(), YFunction::YFunction(), YSDo::YSDo(), YSIf::YSIf(), YSInclude::YSInclude(), YSRepeat::YSRepeat(), YSReturn::YSReturn(), YSWhile::YSWhile(), and YSymbolEntry::YSymbolEntry().
|
static |
References readInt32().
|
static |
References readInt32().
Referenced by StaticDeclaration::readDeclaration(), YELocale::YELocale(), YETerm::YETerm(), YLocale::YLocale(), YSImport::YSImport(), and YSymbolEntry::YSymbolEntry().
|
static |
References bytecodeistream::isVersion(), YECall::readCall(), y2error, YCode::ycConstant, YCode::ycFunction, YCode::ycLocale, YCode::yeBinary, YCode::yeBlock, YCode::yeBracket, YCode::yeBuiltin, YCode::yeCompare, YCode::yeExpression, YCode::yeFunction, YCode::yeFunctionPointer, YCode::yeIs, YCode::yeList, YCode::yeLocale, YCode::yeMap, YCode::yePropagate, YCode::yeReference, YCode::yeReturn, YCode::yeTerm, YCode::yeTriple, YCode::yeUnary, YCode::yeVariable, YCode::ysAssign, YCode::ysBlock, YCode::ysBracket, YCode::ysBreak, YCode::ysContinue, YCode::ysDo, YCode::ysExpression, YCode::ysFilename, YCode::ysFunction, YCode::ysIf, YCode::ysImport, YCode::ysInclude, YCode::ysRepeat, YCode::ysReturn, YCode::ysSwitch, YCode::ysTextdomain, YCode::ysTypedef, YCode::ysVariable, and YCode::ysWhile.
Referenced by YECall::readCall(), readFile(), readYCodelist(), YFunction::setDefinition(), TableEntry::TableEntry(), YBlock::YBlock(), YCPCode::YCPCode(), YEBinary::YEBinary(), YEBracket::YEBracket(), YEBuiltin::YEBuiltin(), YECall::YECall(), YECompare::YECompare(), YEIs::YEIs(), YELocale::YELocale(), YEMap::YEMap(), YEPropagate::YEPropagate(), YEReturn::YEReturn(), YETriple::YETriple(), YEUnary::YEUnary(), YFunction::YFunction(), YSAssign::YSAssign(), YSBlock::YSBlock(), YSBracket::YSBracket(), YSDo::YSDo(), YSExpression::YSExpression(), YSFunction::YSFunction(), YSIf::YSIf(), YSRepeat::YSRepeat(), YSReturn::YSReturn(), YSSwitch::YSSwitch(), YSWhile::YSWhile(), and YSymbolEntry::YSymbolEntry().
|
static |
References SymbolTable::getXRef(), Y2Namespace::name(), namespacePtr(), readInt32(), Y2Namespace::symbolEntry(), Y2Namespace::table(), y2debug, y2error, and ycp2error.
Referenced by YECall::readCall(), TableEntry::TableEntry(), YConst::YConst(), YEReference::YEReference(), YEVariable::YEVariable(), YSAssign::YSAssign(), and YSBracket::YSBracket().
|
static |
|
static |
Referenced by fromStream(), readBytep(), YECall::readCall(), readCharp(), readEntry(), readString(), readType(), readUstring(), readYCodelist(), TupleType::TupleType(), YBlock::YBlock(), YCPList::YCPList(), YCPMap::YCPMap(), YCPPath::YCPPath(), YECall::YECall(), YEMap::YEMap(), YSImport::YSImport(), YSSwitch::YSSwitch(), YStatement::YStatement(), and YSymbolEntry::YSymbolEntry().
|
static |
References YCPPathSearch::findModule(), m_bytecodeCache, readFile(), tareStack(), untareStack(), y2error, and ycperror.
Referenced by TestY2Component::import(), and Y2WFMComponent::import().
|
static |
References readInt32().
Referenced by fromStream(), YBlock::YBlock(), and YCPTerm::YCPTerm().
|
static |
References Type::AnyT, Type::BlockT, Type::BooleanT, Type::ByteblockT, Type::Error, Type::ErrorT, Type::FlexT, Type::FloatT, Type::FunctionT, Type::IntegerT, Type::ListT, Type::LocaleT, Type::MapT, Type::NFlexT, Type::NilT, Type::PathT, readInt32(), Type::StringT, Type::SymbolT, Type::TermT, Type::TupleT, Type::UnspecT, Type::VariableT, Type::VoidT, Type::WildcardT, y2debug, and y2error.
Referenced by FunctionType::FunctionType(), StaticDeclaration::readDeclaration(), TupleType::TupleType(), YEBracket::YEBracket(), YEBuiltin::YEBuiltin(), YSImport::YSImport(), YSTypedef::YSTypedef(), and YSymbolEntry::YSymbolEntry().
|
static |
References SymbolEntry::_nameHash, and readInt32().
Referenced by YCPPathRep::Component::Component().
|
static |
References YCode::toString(), y2error, y2warning, YT_BOOLEAN, YT_BYTEBLOCK, YT_CODE, YT_FLOAT, YT_INTEGER, YT_LIST, YT_MAP, YT_PATH, YT_STRING, YT_SYMBOL, YT_TERM, and YT_VOID.
Referenced by YCPList::YCPList(), YCPMap::YCPMap(), and YSSwitch::YSSwitch().
|
static |
References ycodelist::code, ycodelist::next, readCode(), readInt32(), y2debug, and y2error.
Referenced by YEBuiltin::YEBuiltin(), YEList::YEList(), and YETerm::YETerm().
|
static |
References m_namespace_nesting_level, and m_namespace_tare_level.
Referenced by readModule().
|
static |
References m_namespace_tare_level.
Referenced by readModule().
|
static |
Referenced by YCPBooleanRep::toStream(), Point::toStream(), YSymbolEntry::toStream(), YSReturn::toStream(), Type::toStream(), YConst::toStream(), YSIf::toStream(), YSWhile::toStream(), YSRepeat::toStream(), YSDo::toStream(), YEBuiltin::toStream(), YFunction::toStream(), YSInclude::toStream(), FunctionType::toStream(), and YFunction::toStreamDefinition().
|
static |
References writeInt32().
Referenced by YCPByteblockRep::toStream().
|
static |
References writeInt32().
Referenced by YSymbolEntry::toStream(), YETerm::toStream(), YELocale::toStream(), YLocale::toStream(), StaticDeclaration::writeDeclaration(), and SymbolTable::writeUsage().
|
static |
References namespaceId(), writeInt32(), and y2error.
Referenced by YEVariable::toStream(), Point::toStream(), TableEntry::toStream(), YEReference::toStream(), YSFunction::toStream(), YSAssign::toStream(), YCPEntryRep::toStream(), YSBracket::toStream(), and YECall::toStream().
|
static |
References y2error, YaST_BYTECODE_HEADER, YaST_BYTECODE_MAJOR, YaST_BYTECODE_MINOR, and YaST_BYTECODE_RELEASE.
Referenced by compilefile(), and processfile().
|
static |
Referenced by YStatement::toStream(), Point::toStream(), YSymbolEntry::toStream(), YCPMapRep::toStream(), YCPPathRep::toStream(), Type::toStream(), YCPListRep::toStream(), YEMap::toStream(), YBlock::toStream(), NFlexType::toStream(), YECall::toStream(), TupleType::toStream(), YSSwitch::toStream(), writeBytep(), writeCharp(), writeEntry(), writeString(), SymbolTable::writeUsage(), writeUstring(), and writeYCodelist().
|
static |
References writeInt32().
Referenced by YCPFloatRep::toStream(), YCPStringRep::toStream(), YCPPathRep::toStream(), and YBlock::toStream().
|
static |
|
static |
|
static |
References YCPElement::isNull(), str, and y2error.
Referenced by YCPMapRep::toStream(), YCPListRep::toStream(), and YSSwitch::toStream().
|
static |
References ycodelist::code, ycodelist::next, str, writeInt32(), y2debug, and y2error.
Referenced by YETerm::toStream(), YEList::toStream(), and YEBuiltin::toStream().
|
staticprivate |
Referenced by readModule().
|
staticprivate |
Referenced by namespaceId(), namespacePtr(), popNamespace(), popUptoNamespace(), and pushNamespace().
|
staticprivate |
Referenced by namespaceInit(), popNamespace(), popUptoNamespace(), and pushNamespace().
|
staticprivate |
Referenced by namespaceId(), namespaceInit(), namespacePtr(), popNamespace(), popUptoNamespace(), pushNamespace(), and tareStack().
|
staticprivate |
Referenced by namespaceId(), namespaceInit(), namespacePtr(), popNamespace(), popUptoNamespace(), pushNamespace(), tareStack(), and untareStack().