예제 #1
0
int CBanner( void )
{
    int     count;

    count = 0;
    if( !CompFlags.banner_printed && !CompFlags.quiet_mode ) {
#if defined( _BETAVER )
        ConsoleMessage( banner1w1( "C++ " _TARGET_ " Optimizing Compiler" ) );
        ++count;
        ConsoleMessage( banner1w2( _WPP_VERSION_ ) );
        ++count;
#else
        ConsoleMessage( banner1w( "C++ " _TARGET_ " Optimizing Compiler", _WPP_VERSION_ ) );
        ++count;
#endif
        ConsoleMessage( banner2 );
        ++count;
        ConsoleMessage( banner2a( "1989" ) );
        ++count;
        ConsoleMessage( banner3 );
        ++count;
        ConsoleMessage( banner3a );
        ++count;
        if( Token[0] != '$' ) {             /* if finger print present */
            ConsoleMessage( Token );                /* - print it */
            ++count;
        }
        CompFlags.banner_printed = 1;
    }
    return( count );
}
예제 #2
0
int main(int argc, char **argv )
/******************************/
{
    int     retval = 0;

    MemInit();
#if defined( _BETAVER )
    put( banner1w1( "Far Call Optimization Enabling Utility" ) );
    put( banner1w2( _FCENABLE_VERSION_ ) );
#else
    put( banner1w( "Far Call Optimization Enabling Utility", _FCENABLE_VERSION_ ) );
#endif
    put( banner2 );
    put( banner2a( "1990" ) );
    put( banner3 );
    put( banner3a );
    InputBuffer = InitRecStuff();
    InFile = NOFILE;
    OutFile = NOFILE;
    ClassList = MemAlloc( sizeof( name_list ) + sizeof( DEF_CLASS ) - 1 );
    ClassList->next = NULL;
    ClassList->lnameidx = 0;
    memcpy( ClassList->name, DEF_CLASS, sizeof( DEF_CLASS ) - 1 );
    if( ( argc < 2 ) || ( argv[1][0] == '?' ) ) {
        put( HelpMsg );
    } else {
        argv++;     // skip the program name
        retval = Spawn1( ProcessFiles, argv );
    }
    FinalCleanup();
    MemFini();
    return( retval );
}
예제 #3
0
int CBanner( void )
{
    int     count;

    count = 0;
    if( !CompFlags.banner_printed && !CompFlags.quiet_mode ) {
#if defined( _BETAVER )
        BannerMsg( banner1w1( "C " _TARGET_ " Optimizing Compiler" ) );
        ++count;
        BannerMsg( banner1w2( _WCC_VERSION_ ) );
        ++count;
#else
        BannerMsg( banner1w1( "C " _TARGET_ " Optimizing Compiler", _WCC_VERSION_ ) );
        ++count;
#endif
        BannerMsg( banner2 );
        ++count;
        BannerMsg( banner2a( 1984 ) );
        ++count;
        BannerMsg( banner3 );
        ++count;
        BannerMsg( banner3a );
        ++count;
        CompFlags.banner_printed = true;
    }
    return( count );
}
예제 #4
0
void OpeningStatement( void )
{
#if defined( VERSION_ON_EXTRA_LINE )
    Output( banner1w1( SERVNAME ) "\r\n" );
    Output( banner1w2( _XXXSERV_VERSION_ ) "\r\n" );
#else
    Output( banner1w( SERVNAME, _XXXSERV_VERSION_ ) "\r\n" );
#endif
    Output( banner2 "\r\n" );
    Output( banner2a( "1988" ) "\r\n" );
    Output( banner3 "\r\n" );
    Output( banner3a "\r\n" );
}
예제 #5
0
void    PrtBanner( void ) {
//===========================

#if defined( _BETAVER )
    puts( banner1w1( "F77 " _TARGET_ " Compile and Link Utility" ) );
    puts( banner1w2( _WFL_VERSION_ ) );
#else
    puts( banner1w( "F77 " _TARGET_ " Compile and Link Utility", _WFL_VERSION_ ) );
#endif
    puts( banner2 );
    puts( banner2a( 1990 ) );
    puts( banner3 );
    puts( banner3a );
}
예제 #6
0
void print_banner( void )
{
    static int  done;

    if( done )
        return;
#if defined( _BETAVER )
    puts( banner1w1( "C/C++ " _TARGET_ " Compiler Driver Program" ) );
    puts( banner1w2( _WCL_VERSION_ ) );
#else
    puts( banner1w( "C/C++ " _TARGET_ " Compiler Driver Program", _WCL_VERSION_ ) );
#endif
    puts( banner2 );
    puts( banner2a( "1988" ) );
    puts( banner3 );
    puts( banner3a );
    done = 1;
}
예제 #7
0
void CBanner( void )
{
    if( CompFlags.banner_printed ) return;
    if( CompFlags.quiet_mode )     return;
#if defined( _BETAVER )
    __puts( banner1w1( "C++ " _TARGET_ " Optimizing Compiler" ) );
    __puts( banner1w2( _WPP_VERSION_ ) );
#else
    __puts( banner1w( "C++ " _TARGET_ " Optimizing Compiler", _WPP_VERSION_ ) );
#endif
    __puts( banner2 );
    __puts( banner2a( "1989" ) );
    __puts( banner3 );
    __puts( banner3a );
    if( Token[0] != '$' ) {             /* if finger print present */
        __puts( Token );                /* - print it */
    }
    CompFlags.banner_printed = 1;                       /* 13-mar-90 */
}
예제 #8
0
void print_banner( void )
/***********************/
{
    static int done;

    if( done )
        return;
#if defined( _BETAVER )
    puts( banner1w1( "C/C++ " _TARGET_ " Compile and Link Utility" ) );
    puts( banner1w2( _WCL_VERSION_ ) );
#else
    puts( banner1w( "C/C++ " _TARGET_ " Compile and Link Utility", _WCL_VERSION_ ) );
#endif
    puts( banner2 );
    puts( banner2a( "1988" ) );
    puts( banner3 );
    puts( banner3a );
    done = 1;
}
예제 #9
0
/*
 * Print the copyright banner.
 */
void BannerMessage( void )
/************************/
{
    static bool         alreadyPrinted = false;
    static char *       helpMsg = {
#if defined( _BETAVER )
        banner1w1( "C/C++ CL Clone for " CPU_NAME ) "\n"
        banner1w2( _CL_CLONE_VERSION_ ) "\n"
#else
        banner1w( "C/C++ CL Clone for " CPU_NAME " ", _CL_CLONE_VERSION_ ) "\n"
#endif
        banner2 "\n"
        banner2a( "1995" ) "\n"
        banner3 "\n"
        banner3a "\n"
        "Compatible with CL Version " _MS_CL_VERSION_ "\n"
    };

    if( !alreadyPrinted && !quietMode ) {
        printf( helpMsg );
        alreadyPrinted = true;
    }
}
예제 #10
0
/*
 * GenerateConfiguration - write out a config file
 */
vi_rc GenerateConfiguration( const char *fname, bool is_cmdline )
{
    FILE        *fp;
    int         i;
    char        token[128];
    const char  *str;
    char        *buff;
    int         num;
    rgb         c;
    const char  *res;
    char        tmpstr[MAX_STR];

    if( fname == NULL ) {
        fname = CFG_NAME;
    }
    fp = fopen( fname, "w" );
    if( fp == NULL ) {
        return( ERR_FILE_OPEN );
    }
    isCmdLine = is_cmdline;
    buff = MemAllocUnsafe( VBUF_SIZE );
    if( buff != NULL ) {
        setvbuf( fp, buff, _IOFBF, VBUF_SIZE );
    }
    MyFprintf( fp, "#\n# %s configuration file\n# %s\n#\n",
#if defined( __WIN__ )
    banner1w1( "Text Editor for Windows" ), banner1w2( _VI_VERSION_ ) );
#else
    banner1w1( "Vi Text Editor" ), banner1w2( _VI_VERSION_ ) );
#endif
    if( is_cmdline ) {
        GetDateTimeString( token );
        MyFprintf( fp, "# File generated on %s\n#\n", token );
    }

    writeTitle( fp, "Hook script assignments" );
    doHookAssign( fp, SRC_HOOK_WRITE );
    doHookAssign( fp, SRC_HOOK_READ );
    doHookAssign( fp, SRC_HOOK_BUFFIN );
    doHookAssign( fp, SRC_HOOK_BUFFOUT );
    doHookAssign( fp, SRC_HOOK_COMMAND );
    doHookAssign( fp, SRC_HOOK_MODIFIED );
    doHookAssign( fp, SRC_HOOK_MENU );
    doHookAssign( fp, SRC_HOOK_MOUSE_LINESEL );
    doHookAssign( fp, SRC_HOOK_MOUSE_CHARSEL );

    writeTitle( fp, "General Settings" );
    num = GetNumberOfTokens( SetVarTokens );
    for( i = 0; i < num; i++ ) {
        if( i == SETVAR_T_TILECOLOR || i == SETVAR_T_FIGNORE || i == SETVAR_T_FILENAME ) {
            continue;
        }
        res = GetASetVal( GetTokenStringCVT( SetVarTokens, i, token, true ), tmpstr );
        switch( i ) {
        case SETVAR_T_STATUSSTRING:
        case SETVAR_T_FILEENDSTRING:
        case SETVAR_T_HISTORYFILE:
        case SETVAR_T_TMPDIR:
            /* strings with possible spaces */
            MyFprintf( fp, "set %s = \"%s\"\n", token, res );
            break;
        case SETVAR_T_GADGETSTRING:
            if( !IsGadgetStringChanged( res ) )
                break;
            // fall through
        default:
            MyFprintf( fp, "set %s = %s\n", token, res );
            break;
        }
    }

    writeTitle( fp, "Boolean Settings" );
    num = GetNumberOfTokens( SetFlagTokens );
    for( i = 0; i < num; i++ ) {
        str = GetASetVal( GetTokenStringCVT( SetFlagTokens, i, token, true ), tmpstr );
        MyFprintf( fp, "set %s%s\n", (*str == '0') ? "no" : "", token );
    }
    writeTitle( fp, "Match pairs" );
    for( i = INITIAL_MATCH_COUNT; i < MatchCount; i += 2 ) {
        MyFprintf( fp, "match /" );
        outputMatchData( fp, MatchData[i] );
        outputMatchData( fp, MatchData[i + 1] );
        MyFprintf( fp, "\n" );
    }

    writeTitle( fp, "Command Mode Mappings" );
    doMaps( fp, KeyMaps, "" );
    writeTitle( fp, "Insert Mode Mappings" );
    doMaps( fp, InputKeyMaps, "!" );

    writeTitle( fp, "Color Settings" );
    for( i = 0; i < GetNumColors(); i++ ) {
        if( GetColorSetting( i, &c ) ) {
            MyFprintf( fp, "setcolor %d %d %d %d\n", i, c.red, c.green, c.blue );
        }
    }

#ifdef __WIN__
    writeTitle( fp, "Font Settings" );
    BarfFontData( fp );
#endif

    writeTitle( fp, "Window Configuration" );
    doWindow( fp, PCL_T_COMMANDWINDOW, &cmdlinew_info, false );
    doWindow( fp, PCL_T_STATUSWINDOW, &statusw_info, false );
    doWindow( fp, PCL_T_COUNTWINDOW, &repcntw_info, false );
    doWindow( fp, PCL_T_EDITWINDOW, &editw_info, false );
    doWindow( fp, PCL_T_FILECWINDOW, &filecw_info, false );
    doWindow( fp, PCL_T_DIRWINDOW, &dirw_info, false );
    doWindow( fp, PCL_T_FILEWINDOW, &filelistw_info, false );
    doWindow( fp, PCL_T_MESSAGEWINDOW, &messagew_info, false );
#ifndef __WIN__
    doWindow( fp, PCL_T_SETWINDOW, &setw_info, false );
    doWindow( fp, PCL_T_LINENUMBERWINDOW, &linenumw_info, false );
    doWindow( fp, PCL_T_EXTRAINFOWINDOW, &extraw_info, false );
    doWindow( fp, PCL_T_SETVALWINDOW, &setvalw_info, false );
    doWindow( fp, PCL_T_MENUWINDOW, &menuw_info, false );
    doWindow( fp, PCL_T_MENUBARWINDOW, &menubarw_info, true );
    doWindow( fp, PCL_T_ACTIVEMENUWINDOW, &activemenu_info, true );
    doWindow( fp, PCL_T_GREYEDMENUWINDOW, &greyedmenu_info, true );
    doWindow( fp, PCL_T_ACTIVEGREYEDMENUWINDOW, &activegreyedmenu_info, true );
#endif

    writeTitle( fp, "Menu Configuration" );
    BarfMenuData( fp );

#ifdef __WIN__
    writeTitle( fp, "ToolBar Configuration" );
    BarfToolBarData( fp );
#endif

    writeTitle( fp, "File Type Source" );
    FTSBarfData( fp );

    fclose( fp );
    if( is_cmdline ) {
        Message1( "Configuration file \"%s\" generated", fname );
    }

    MemFree( buff );
    return( DO_NOT_CLEAR_MESSAGE_WINDOW );

} /* GenerateConfiguration */
예제 #11
0
    PrefixWrite( Commands[RUN_SLOT], "name ", 5 );
    if( Commands[MAP_SLOT] != NULL ) {
        PrefixWrite( Commands[MAP_SLOT], "option map=", 11 );
        MapOption = false;     // make sure it isn't generated a second time.
    }
    PrefixWrite( Commands[LIBRARY_SLOT], "library ", 8 );
    if( MapOption ) {
        CommandOut( "option map" );
    }
    ListWrite( Commands[OPTION_SLOT] );
}

#define NL "\n"
static const char TheHelp[] = {
    banner1w1( "Microsoft to Watcom linker command translation utility" ) NL
    banner1w2( _MS2WLINK_VERSION_ ) NL
    banner2 NL
    banner2a( 1990 ) NL
    banner3 NL
    "usage: pass this program the same arguments that would be passed to the" NL
    "       Microsoft linker, and an equivalent set of wlink commands" NL
    "       will be written to standard output." NL
    NL
    "Usage:" NL
    NL
    "ms2wlink" NL
    "ms2wlink @<response file>" NL
    "ms2wlink <objs>,<exefile>,<mapfile>,<libs>,<deffile>" NL
    NL
    "Recognized options are:" NL
};
예제 #12
0
/********************************/
{
    char        *val;

    if( ideCb != NULL && !initInfo->ignore_env ) {
        if( !ideCb->GetInfo( cbHandle, IDE_GET_ENV_VAR, (IDEGetInfoWParam)name, (IDEGetInfoLParam)&val ) ) {
            return( val );
        }
    }
    return( NULL );
}

static const char * BannerText =
#if defined( _BETAVER )
    banner1w1( "Windows and OS/2 Resource Compiler" )"\n"
    banner1w2( _WRC_VERSION_ )"\n"
#else
    banner1w( "Windows and OS/2 Resource Compiler", _WRC_VERSION_ )"\n"
#endif
    banner2         "\n"
    banner2a("1993") "\n"
    banner3         "\n"
    banner3a        "\n"
;

static void RcIoPrintBanner( void )
/*********************************/
{
    OutPutInfo          errinfo;

    InitOutPutInfo( &errinfo );