MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / CmpLogicalRev

Function CmpLogicalRev

src/Edit.c:3847–3859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3845}
3846
3847int CmpLogicalRev ( const void *s1, const void *s2 )
3848{
3849 int cmp = -1 * ( int ) pfnStrCmpLogicalW ( ( ( SORTLINE * ) s1 )->pwszSortEntry, ( ( SORTLINE * ) s2 )->pwszSortEntry );
3850 if ( cmp == 0 ) {
3851 cmp = -1 * ( int ) pfnStrCmpLogicalW ( ( ( SORTLINE * ) s1 )->pwszLine, ( ( SORTLINE * ) s2 )->pwszLine );
3852 }
3853 if ( cmp ) {
3854 return cmp;
3855 } else {
3856 cmp = -1 * StrCmp ( ( ( SORTLINE * ) s1 )->pwszSortEntry, ( ( SORTLINE * ) s2 )->pwszSortEntry );
3857 return ( cmp ) ? cmp : -1 * StrCmp ( ( ( SORTLINE * ) s1 )->pwszLine, ( ( SORTLINE * ) s2 )->pwszLine );
3858 }
3859}
3860
3861void EditSortLines ( HWND hwnd, int iSortFlags )
3862{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected