Exemplo n.º 1
0
/*
//    NextLibrary
//        Called (indirectly) from the code generator to inject automagically defined symbols.
//    Inputs:
//        index    (n-1)
//            Usually called from a loop until we return 0/NULL to show no more libraries
//        request
//            NEXT_LIBRARY
//                examines the current flags to see if any libraries should be
//                automagically referenced and returns the relevant index if so.
//            LIBRARY_NAME
//                returns the requested name.
//
*/
static void addDefaultLibs( void )
{
    if( CompFlags.emit_library_names ) {
        if( _HAS_ANY_MAIN || CompFlags.pragma_library || CompFlags.emit_all_default_libs ) {
            AddLibraryName( CLIB_Name + 1, CLIB_Name[0] );
        }
        AddLibraryName( MATHLIB_Name + 1, MATHLIB_Name[0] );
        if( EmuLib_Name != NULL ) {
            AddLibraryName( EmuLib_Name + 1, EmuLib_Name[0] );
        }
    }
}
Exemplo n.º 2
0
local void GetLibraryNames( void )
/********************************/
{
    while( IS_ID_OR_KEYWORD( CurToken ) || CurToken == T_STRING ) {
        AddLibraryName( Buffer, USER_LIB_PRIO );
        NextToken();
    }
}