Ignore:
Timestamp:
Mar 20, 2006 12:39:24 PM (18 years ago)
Author:
bennylp
Message:

Ported pjlib to PowerPC/MacOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_unix.c

    r304 r338  
    2525#include <pj/string.h> 
    2626#include <pj/guid.h> 
    27 #include <pj/compat/sprintf.h> 
    2827#include <pj/except.h> 
    2928#include <pj/errno.h> 
     
    205204 
    206205    if(cstr_thread_name && pj_strlen(&thread_name) < sizeof(thread->obj_name)-1) 
    207         pj_sprintf(thread->obj_name, cstr_thread_name, thread->thread); 
     206        pj_ansi_sprintf(thread->obj_name, cstr_thread_name, thread->thread); 
    208207    else 
    209         pj_sprintf(thread->obj_name, "thr%p", (void*)thread->thread); 
     208        pj_ansi_sprintf(thread->obj_name, "thr%p", (void*)thread->thread); 
    210209     
    211210    rc = pj_thread_local_set(thread_tls_id, thread); 
     
    315314     
    316315    if (strchr(thread_name, '%')) { 
    317         pj_snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec); 
     316        pj_ansi_snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec); 
    318317    } else { 
    319318        strncpy(rec->obj_name, thread_name, PJ_MAX_OBJ_NAME); 
     
    805804    } 
    806805    if (strchr(name, '%')) { 
    807         pj_snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex); 
     806        pj_ansi_snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex); 
    808807    } else { 
    809808        strncpy(mutex->obj_name, name, PJ_MAX_OBJ_NAME); 
     
    11261125    } 
    11271126    if (strchr(name, '%')) { 
    1128         pj_snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem); 
     1127        pj_ansi_snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem); 
    11291128    } else { 
    11301129        strncpy(sem->obj_name, name, PJ_MAX_OBJ_NAME); 
Note: See TracChangeset for help on using the changeset viewer.