Changeset 1417 for pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_tel_uri.c
r1241 r1417 106 106 { 107 107 PJ_UNUSED_ARG(uri); 108 return &pjsip_ TEL_STR;108 return &pjsip_parser_const()->pjsip_TEL_STR; 109 109 } 110 110 … … 183 183 char *startbuf = buf; 184 184 char *endbuf = buf+size; 185 const pjsip_parser_const_t *pc = pjsip_parser_const(); 185 186 186 187 PJ_UNUSED_ARG(context); 187 188 188 189 /* Print scheme. */ 189 copy_advance(buf, p jsip_TEL_STR);190 copy_advance(buf, pc->pjsip_TEL_STR); 190 191 *buf++ = ':'; 191 192 … … 371 372 pj_str_t token; 372 373 int skip_ws = scanner->skip_ws; 374 const pjsip_parser_const_t *pc = pjsip_parser_const(); 373 375 374 376 scanner->skip_ws = 0; 375 377 376 378 /* Parse scheme. */ 377 pj_scan_get(scanner, &p jsip_TOKEN_SPEC, &token);379 pj_scan_get(scanner, &pc->pjsip_TOKEN_SPEC, &token); 378 380 if (pj_scan_get_char(scanner) != ':') 379 381 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 380 if (pj_stricmp_alnum(&token, &p jsip_TEL_STR) != 0)382 if (pj_stricmp_alnum(&token, &pc->pjsip_TEL_STR) != 0) 381 383 PJ_THROW(PJSIP_SYN_ERR_EXCEPTION); 382 384 … … 395 397 if (parse_params && *scanner->curptr==';') { 396 398 pj_str_t pname, pvalue; 399 const pjsip_parser_const_t *pc = pjsip_parser_const(); 397 400 398 401 do { … … 401 404 402 405 /* Get pname. */ 403 pj_scan_get(scanner, &p jsip_PARAM_CHAR_SPEC, &pname);406 pj_scan_get(scanner, &pc->pjsip_PARAM_CHAR_SPEC, &pname); 404 407 405 408 if (*scanner->curptr == '=') { … … 407 410 408 411 # if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 409 pj_scan_get_unescape( 410 411 412 pj_scan_get_unescape(scanner, 413 &pjsip_TEL_PARSING_PVALUE_SPEC_ESC, 414 &pvalue); 412 415 # else 413 416 pj_scan_get(scanner, &pjsip_TEL_PARSING_PVALUE_SPEC,
Note: See TracChangeset
for help on using the changeset viewer.