Ignore:
Timestamp:
Mar 18, 2006 12:26:55 PM (18 years ago)
Author:
bennylp
Message:

Added option to disable error message altogether, to save space footprint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/errno.c

    r315 r330  
    2424 * Message must be limited to 64 chars! 
    2525 */ 
     26 
     27#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
     28 
    2629static const struct  
    2730{ 
     
    4750 
    4851 
     52#endif  /* PJ_HAS_ERROR_STRING */ 
     53 
    4954 
    5055/* 
     
    5560{ 
    5661    pj_str_t errstr; 
     62 
     63#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
    5764 
    5865    if (statcode >= PJSIP_SIMPLE_ERRNO_START &&  
     
    94101    } 
    95102 
     103#endif  /* PJ_HAS_ERROR_STRING */ 
     104 
     105 
    96106    /* Error not found. */ 
    97107    errstr.ptr = buf; 
    98108    errstr.slen = pj_ansi_snprintf(buf, bufsize,  
    99                                    "Unknown error %d", 
     109                                   "Unknown pjsip-simple error %d", 
    100110                                   statcode); 
    101111 
Note: See TracChangeset for help on using the changeset viewer.