Changeset 5237 for pjproject/trunk/pjsip/include/pjsip/print_util.h
- Timestamp:
- Jan 27, 2016 5:42:20 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/print_util.h
r4979 r5237 106 106 #define copy_advance_pair copy_advance_pair_check 107 107 108 /* 109 * Append str1 and quoted str2 and copy to buf. 110 * No string is copied if str2 is empty. 111 */ 108 112 #define copy_advance_pair_quote_cond(buf,str1,len1,str2,quotebegin,quoteend) \ 109 113 do { \ … … 113 117 copy_advance_pair(buf,str1,len1,str2); \ 114 118 } while (0) 119 120 /* 121 * Append str1 and quoted str2 and copy to buf. 122 * In case str2 is empty, str1 will be appended with empty quote. 123 */ 124 #define copy_advance_pair_quote_cond_always(buf,str1,len1,str2,quotebegin, \ 125 quoteend)\ 126 do { \ 127 if (!str2.slen) \ 128 copy_advance_pair_quote(buf,str1,len1,str2,quotebegin,quoteend); \ 129 else \ 130 copy_advance_pair_quote_cond(buf,str1,len1,str2,quotebegin,quoteend);\ 131 } while (0) 115 132 116 133 /*
Note: See TracChangeset
for help on using the changeset viewer.