Subversion Repositories spk

Rev

Rev 196 | Rev 218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 196 Rev 197
Line 90... Line 90...
90
 
90
 
91
		if ( verbose )
91
		if ( verbose )
92
		{
92
		{
93
			for ( SDiffFile *d = Diff.GetDiffFiles().First(); d; d = Diff.GetDiffFiles().Next() )
93
			for ( SDiffFile *d = Diff.GetDiffFiles().First(); d; d = Diff.GetDiffFiles().Next() )
94
			{
94
			{
95
				printf("Changes to File: %s\n", d->sFile.c_str() );
95
				wprintf(L"Changes to File: %s\n", d->sFile.c_str() );
96
				for ( SDiffEntry *e = d->m_lEntries.First(); e; e = d->m_lEntries.Next() )
96
				for ( SDiffEntry *e = d->m_lEntries.First(); e; e = d->m_lEntries.Next() )
97
				{
97
				{
98
					switch(e->iType)
98
					switch(e->iType)
99
					{
99
					{
100
						case DIFFTYPE_CHANGE:
100
						case DIFFTYPE_CHANGE:
101
							printf( "\tPosition(%d) Entry(%d) %s => %s\n", e->iID, ((SDiffEntryChange *)e)->iPos, ((SDiffEntryChange *)e)->sFrom.c_str(), ((SDiffEntryChange *)e)->sEntry.c_str());
101
							wprintf(L"\tPosition(%d) Entry(%d) %s => %s\n", e->iID, ((SDiffEntryChange *)e)->iPos, ((SDiffEntryChange *)e)->sFrom.c_str(), ((SDiffEntryChange *)e)->sEntry.c_str());
102
							break;
102
							break;
103
						case DIFFTYPE_ADDITION:
103
						case DIFFTYPE_ADDITION:
104
							printf( "\tPosition(%d) Add Entry: ...%s\n", e->iID, ((SDiffEntryAddition *)e)->sEntry.token(";", -2).c_str());
104
							wprintf(L"\tPosition(%d) Add Entry: ...%s\n", e->iID, ((SDiffEntryAddition *)e)->sEntry.token(L";", -2).c_str());
105
							break;
105
							break;
106
					}
106
					}
107
				}
107
				}
108
			}
108
			}
109
		}
109
		}