Пример #1
0
void XWriteImports( void )
/*******************************/
{
    symbol *    sym;

    for( sym = HeadSym; sym != NULL; sym = sym->link ) {
        if( IS_SYM_IMPORTED(sym) && sym->p.import != NULL ) {
            if( !(FmtData.type & MK_NOVELL)
                   || sym->p.import != DUMMY_IMPORT_PTR  )
            {
                if(sym->prefix && (strlen(sym->prefix) > 0))
                    WriteFormat( 0, "%s@%s", sym->prefix, sym->name);
                else
                    WriteFormat( 0, "%s", sym->name );

#ifdef _OS2
                if( FmtData.type & (MK_OS2|MK_PE|MK_WIN_VXD) ) {
                    WriteFormat( 36, "%s", ImpModuleName( sym->p.import ) );
                }
#endif
                WriteMapNL( 1 );
            }
        }
    }
}
Пример #2
0
EXPORT_C void CSenLogger::WriteFormatWithClientId(TInt aClientId, TInt aChannel, TInt aLevel, TRefByValue<const TDesC8> aFmt,...)
    {
    // Write client id on separate line, for clarity & simplicity
    WriteFormat( aChannel, aLevel, KClientIdFmtNextLine8, aClientId);
    VA_LIST list;
    VA_START(list,aFmt);
    WriteFormat( aChannel, aLevel, aFmt, list);
    }
Пример #3
0
static void WriteAbsSeg( void *_leader )
/**************************************/
{
    seg_leader *leader = _leader;

    if( leader->info & SEG_ABSOLUTE ) {
        WriteFormat( 0, "%s", leader->segname );
        WriteFormat( 24, "%s", leader->class->name );
        WriteFormat( 40, "%a", &leader->seg_addr );
        WriteFormat( 60, "%h", leader->size );
        WriteMapNL( 1 );
    }
Пример #4
0
static void WriteSym( symbol * sym, char star )
/*********************************************/
{
    if( sym->info & SYM_STATIC ) {
        star = 's';
    }
    if( (FmtData.type & MK_16BIT) && ( sym->p.seg != NULL ) && sym->p.seg->is32bit ) {
        WriteFormat( 0, "%A%c", &sym->addr, star );
    } else {
        WriteFormat( 0, "%a%c", &sym->addr, star );
    }
    WriteFormat( 15, "%S", sym );
}
Пример #5
0
void WriteGroups( void )
/*****************************/
{
    group_entry     *currgrp;

    if( Groups != NULL ) {
        WriteBox( MSG_MAP_BOX_GROUP );
        Msg_Write_Map( MSG_MAP_TITLE_GROUP_0 );
        Msg_Write_Map( MSG_MAP_TITLE_GROUP_1 );
        WriteMapNL( 1 );
        for( currgrp = Groups; currgrp != NULL; currgrp = currgrp->next_group ) {
            if( !currgrp->isautogrp ) { /* if not an autogroup */
                WriteFormat( 0, "%s", currgrp->sym->name );
                WriteFormat( 32, "%a", &currgrp->grp_addr );
                WriteFormat( 53, "%h", currgrp->totalsize );
                WriteMapNL( 1 );
            }
        }
    }
}
Пример #6
0
EXPORT_C void RTestExecuteLogServ::WriteFormat(TRefByValue<const TDesC8> aFmt,...)
/**
 * @param aFmt - Narrow format string
 */
	{
	// Set up a Variable argument list and call private method
	VA_LIST aList;
	VA_START(aList, aFmt);
	WriteFormat(aFmt, aList);
	VA_END(aList); 
	}
Пример #7
0
status _af_wave_write_init (AFfilesetup setup, AFfilehandle filehandle)
{
	u_int32_t	zero = 0;

	if (_af_filesetup_make_handle(setup, filehandle) == AF_FAIL)
		return AF_FAIL;

	filehandle->formatSpecific = waveinfo_new();

	af_fseek(filehandle->fh, 0, SEEK_SET);
	af_fwrite("RIFF", 4, 1, filehandle->fh);
	af_fwrite(&zero, 4, 1, filehandle->fh);
	af_fwrite("WAVE", 4, 1, filehandle->fh);

	WriteMiscellaneous(filehandle);
	WriteFormat(filehandle);
	WriteData(filehandle);

	return AF_SUCCEED;
}
Пример #8
0
INLINE void Write(DbTable   const &dt) {
    var cols = dt.ColumnCount();
    var rows = dt.RowCount();
    if (cols == 0) {
        Write("No any columns found!\n");
        return;
    }
    WriteFormat("Columns: %0, Rows: %1\n", cols, rows);
    for (UInt32 i = 0; i < cols; i++) {
        Write(dt.ColumnNames()[i]);
        WriteChar('\t');
    }
    WriteChar('\n');
    for (UInt32 i = 0; i < rows; i++) {
        for (UInt32 j = 0; j < cols; j++) {
            WriteColFuncs[dt.ColumnTypes()[j]](dt.ColumnDatas()[j], i);
            if (j < cols - 1)
                WriteChar('\t');
        }
        WriteChar('\n');
    }
}
Пример #9
0
INLINE void Write(DbSet     const &ds) {
    var len = ds.Length();
    WriteFormat("Tables: %0, AffectedRows: %1, Message = %2\n", len, ds.AffectedRows(), ds.Message());
    for (UInt32 i = 0; i < len; ++i)
        Write(ds[i]);
}
Пример #10
0
EXPORT_C void CSenLogger::WriteFormatWithClientId(TInt aClientId, TInt aChannel, TInt aLevel, TRefByValue<const TDesC8> aFmt, VA_LIST& aList)
    {
    WriteFormat( aChannel, aLevel, KClientIdFmtNextLine8, aClientId);
    WriteFormat( aChannel, aLevel, aFmt, aList);
    }
Пример #11
0
EXPORT_C void CSenLogger::WriteAllWithClientId(TInt aClientId, TInt aChannel, TInt aLevel, const TDesC8& aText)
    {
    // Write client id on separate line, for clarity & simplicity
    WriteFormat( aChannel, aLevel, KClientIdFmtNextLine8, aClientId);
    WriteAll( aChannel, aLevel, aText );
    }
Пример #12
0
EXPORT_C void CSenLogger::WriteWithClientId(TInt aClientId, TInt aChannel, TInt aLevel, const TDesC8& aText)
    {
    WriteFormat( aChannel, aLevel, KClientIdFmt8, aClientId, &aText );    	
    }