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

Function CmpLogical

src/Edit.c:3833–3845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3831}
3832
3833int CmpLogical ( const void *s1, const void *s2 )
3834{
3835 int cmp = ( int ) pfnStrCmpLogicalW ( ( ( SORTLINE * ) s1 )->pwszSortEntry, ( ( SORTLINE * ) s2 )->pwszSortEntry );
3836 if ( cmp == 0 ) {
3837 cmp = ( int ) pfnStrCmpLogicalW ( ( ( SORTLINE * ) s1 )->pwszLine, ( ( SORTLINE * ) s2 )->pwszLine );
3838 }
3839 if ( cmp ) {
3840 return cmp;
3841 } else {
3842 cmp = StrCmp ( ( ( SORTLINE * ) s1 )->pwszSortEntry, ( ( SORTLINE * ) s2 )->pwszSortEntry );
3843 return ( cmp ) ? cmp : StrCmp ( ( ( SORTLINE * ) s1 )->pwszLine, ( ( SORTLINE * ) s2 )->pwszLine );
3844 }
3845}
3846
3847int CmpLogicalRev ( const void *s1, const void *s2 )
3848{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected