Ignore:
Timestamp:
Jul 5, 2006 8:45:55 PM (17 years ago)
Author:
bennylp
Message:

Some improvements in footprint generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/footprint.c

    r585 r586  
    3333#include <pjlib-util.h> 
    3434#include <pjlib.h> 
    35  
     35#include <stdlib.h> 
    3636 
    3737/* All flags: */ 
    3838#if 0 
     39#define HAS_PJLIB 
     40 
    3941#define HAS_PJLIB_STUN 
    4042#define HAS_PJLIB_GETOPT 
    4143#define HAS_PJLIB_XML 
     44#define HAS_PJLIB_SCANNER 
    4245 
    4346#define HAS_PJSIP_CORE 
     
    8285{ 
    8386    pj_caching_pool cp; 
    84  
     87  
     88    sprintf(NULL, "%d", 0); 
     89    rand(); 
     90     
     91#ifdef HAS_PJLIB 
    8592    pj_init(); 
    8693    pj_caching_pool_init(&cp, NULL, 0); 
     
    94101    pj_pool_alloc(NULL, 0); 
    95102    pj_timer_heap_create(NULL, 0, NULL); 
     103#endif 
    96104 
    97105#ifdef HAS_PJLIB_STUN 
     
    117125#endif 
    118126 
     127#ifdef HAS_PJLIB_SCANNER 
     128    pj_cis_buf_init(NULL); 
     129    pj_cis_init(NULL, NULL); 
     130    pj_cis_dup(NULL, NULL); 
     131    pj_cis_add_alpha(NULL); 
     132    pj_cis_add_str(NULL, NULL); 
     133 
     134    pj_scan_init(NULL, NULL, 0, 0, NULL); 
     135    pj_scan_fini(NULL); 
     136    pj_scan_peek(NULL, NULL, NULL); 
     137    pj_scan_peek_n(NULL, 0, NULL); 
     138    pj_scan_peek_until(NULL, NULL, NULL); 
     139    pj_scan_get(NULL, NULL, NULL); 
     140    pj_scan_get_unescape(NULL, NULL, NULL); 
     141    pj_scan_get_quote(NULL, 0, 0, NULL); 
     142    pj_scan_get_n(NULL, 0, NULL); 
     143    pj_scan_get_char(NULL); 
     144    pj_scan_get_until(NULL, NULL, NULL); 
     145    pj_scan_strcmp(NULL, NULL, 0); 
     146    pj_scan_stricmp(NULL, NULL, 0); 
     147    pj_scan_stricmp_alnum(NULL, NULL, 0); 
     148    pj_scan_get_newline(NULL); 
     149    pj_scan_restore_state(NULL, NULL); 
     150#endif 
     151     
    119152#ifdef HAS_PJSIP_CORE 
    120153    pjsip_endpt_create(NULL, NULL, NULL); 
Note: See TracChangeset for help on using the changeset viewer.