Changeset 81


Ignore:
Timestamp:
Nov 23, 2005 8:55:37 PM (18 years ago)
Author:
bennylp
Message:

Added pj_cis_add_cis()

Location:
pjproject/trunk/pjlib-util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner.h

    r77 r81  
    116116 */ 
    117117PJ_DECL(void) pj_cis_add_str( pj_cis_t *cis, const char *str); 
     118 
     119/** 
     120 * Add specification from another specification. 
     121 * 
     122 * @param cis       The specification is to be set. 
     123 * @param rhs       The specification to be copied. 
     124 */ 
     125PJ_DECL(void) pj_cis_add_cis( pj_cis_t *cis, const pj_cis_t *rhs); 
    118126 
    119127/** 
  • pjproject/trunk/pjlib-util/src/pjlib-util/scanner.c

    r79 r81  
    7373} 
    7474 
     75PJ_DEF(void) pj_cis_add_cis( pj_cis_t *cis, const pj_cis_t *rhs) 
     76{ 
     77    int i; 
     78    for (i=0; i<256; ++i) { 
     79        if (PJ_CIS_ISSET(rhs, i)) 
     80            PJ_CIS_SET(cis, i); 
     81    } 
     82} 
     83 
    7584PJ_DEF(void) pj_cis_del_range( pj_cis_t *cis, int cstart, int cend) 
    7685{ 
Note: See TracChangeset for help on using the changeset viewer.