Ignore:
Timestamp:
Aug 16, 2007 10:11:44 AM (17 years ago)
Author:
bennylp
Message:

Ticket #354: continuing work to port the Symbian libraries to .DSO format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c

    r1241 r1417  
    106106{ 
    107107    PJ_UNUSED_ARG(uri); 
    108     return &pjsip_TEL_STR; 
     108    return &pjsip_parser_const()->pjsip_TEL_STR; 
    109109} 
    110110 
     
    183183    char *startbuf = buf; 
    184184    char *endbuf = buf+size; 
     185    const pjsip_parser_const_t *pc = pjsip_parser_const(); 
    185186 
    186187    PJ_UNUSED_ARG(context); 
    187188 
    188189    /* Print scheme. */ 
    189     copy_advance(buf, pjsip_TEL_STR); 
     190    copy_advance(buf, pc->pjsip_TEL_STR); 
    190191    *buf++ = ':'; 
    191192 
     
    371372    pj_str_t token; 
    372373    int skip_ws = scanner->skip_ws; 
     374    const pjsip_parser_const_t *pc = pjsip_parser_const(); 
    373375 
    374376    scanner->skip_ws = 0; 
    375377 
    376378    /* Parse scheme. */ 
    377     pj_scan_get(scanner, &pjsip_TOKEN_SPEC, &token); 
     379    pj_scan_get(scanner, &pc->pjsip_TOKEN_SPEC, &token); 
    378380    if (pj_scan_get_char(scanner) != ':') 
    379381        PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 
    380     if (pj_stricmp_alnum(&token, &pjsip_TEL_STR) != 0) 
     382    if (pj_stricmp_alnum(&token, &pc->pjsip_TEL_STR) != 0) 
    381383        PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 
    382384 
     
    395397    if (parse_params && *scanner->curptr==';') { 
    396398        pj_str_t pname, pvalue; 
     399        const pjsip_parser_const_t *pc = pjsip_parser_const(); 
    397400 
    398401        do { 
     
    401404 
    402405            /* Get pname. */ 
    403             pj_scan_get(scanner, &pjsip_PARAM_CHAR_SPEC, &pname); 
     406            pj_scan_get(scanner, &pc->pjsip_PARAM_CHAR_SPEC, &pname); 
    404407 
    405408            if (*scanner->curptr == '=') { 
     
    407410 
    408411#               if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 
    409                     pj_scan_get_unescape( scanner,  
    410                                           &pjsip_TEL_PARSING_PVALUE_SPEC_ESC, 
    411                                           &pvalue); 
     412                    pj_scan_get_unescape(scanner,  
     413                                         &pjsip_TEL_PARSING_PVALUE_SPEC_ESC, 
     414                                         &pvalue); 
    412415#               else 
    413416                    pj_scan_get(scanner, &pjsip_TEL_PARSING_PVALUE_SPEC,  
Note: See TracChangeset for help on using the changeset viewer.