Changeset 4 in svn


Ignore:
Timestamp:
Mar 10, 2015 6:08:18 PM (11 years ago)
Author:
jglee
Message:

DSTAR 구분

Location:
trunk/zasc/app_c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zasc/app_c/DST_WinEngineerMenu.c

    r2 r4  
    177177                this->DrawText(this, 2, 22, this->rect.w, 20, strText[0], &(this->font)); 
    178178 
     179#ifdef DSTAR 
     180#else 
    179181                sprintf(strText[1], "FrontEnd: %s, SNR: %ddB, PowerLevel: %ddBmV", bLock?(char*)"lock":(char*)"unlock", snr/256, ((origin_power_level)/2)-60); 
     182#endif 
    180183                this->DrawText(this, 2, 42, this->rect.w, 20, strText[1], &(this->font)); 
    181184 
  • trunk/zasc/app_c/dst_eroum_interface.c

    r2 r4  
    13801380{ 
    13811381        if (size <= 0) return 0; 
     1382#ifdef DSTAR 
     1383        void *p = malloc(size); 
     1384#else 
    13821385        void *p = OS_Malloc(size); 
     1386#endif 
     1387 
    13831388        memset(p, 0, size); 
    13841389        return p; 
     
    13921397void DST_OS_FreeDirect( void *ptr) // free 
    13931398{ 
     1399#ifdef DSTAR 
     1400        free(ptr); 
     1401#else 
    13941402        OS_FreeDirect(ptr); 
     1403#endif 
    13951404} 
    13961405 
Note: See TracChangeset for help on using the changeset viewer.