pch_status PCHWriteModuleData( void ) { uint_8 has_state_table; SymbolPCHWrite( module_init_func ); ScopePCHWrite( module_init_scope ); ScopePCHWrite( module_fd.fn_scope ); has_state_table = module_fd.has_state_tab; PCHWriteVar( has_state_table ); LabelPCHWrite( &module_fd.label_mem ); return( PCHCB_OK ); }
pch_status PCHWriteGenerators( void ) { RTN_GEN *c; for( c = useSYMBOL; c != NULL; c = c->next ) { SymbolPCHWrite( c->parm ); PCHWriteUInt( c->index ); } PCHWriteCVIndexTerm(); for( c = useTYPE; c != NULL; c = c->next ) { TypePCHWrite( c->parm ); PCHWriteUInt( c->index ); } PCHWriteCVIndexTerm(); return( PCHCB_OK ); }
static void writeExtrefs( void ) { unsigned len; PRAG_EXT_REF *e; RingIterBeg( pragmaExtrefs, e ) { if( e->symbol != NULL ) { SymbolPCHWrite( e->symbol ); } } RingIterEnd( e ) PCHWriteCVIndexTerm(); RingIterBeg( pragmaExtrefs, e ) { if( e->symbol == NULL ) { len = strlen( e->name ); PCHWriteUInt( len ); PCHWrite( e->name, len + 1 ); } } RingIterEnd( e ) PCHWriteUInt( 0 ); }