- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip/include/pjsip/print_util.h
r4979 r5513 30 30 do { \ 31 31 if ((str).slen >= (endbuf-buf)) return -1; \ 32 pj_memcpy(buf, (str).ptr, (str).slen); \ 33 buf += (str).slen; \ 32 if ((str).slen) { \ 33 pj_memcpy(buf, (str).ptr, (str).slen); \ 34 buf += (str).slen; \ 35 } \ 34 36 } while (0) 35 37 … … 106 108 #define copy_advance_pair copy_advance_pair_check 107 109 110 /* 111 * Append str1 and quoted str2 and copy to buf. 112 * No string is copied if str2 is empty. 113 */ 108 114 #define copy_advance_pair_quote_cond(buf,str1,len1,str2,quotebegin,quoteend) \ 109 115 do { \ … … 113 119 copy_advance_pair(buf,str1,len1,str2); \ 114 120 } while (0) 121 122 /* 123 * Append str1 and quoted str2 and copy to buf. 124 * In case str2 is empty, str1 will be appended with empty quote. 125 */ 126 #define copy_advance_pair_quote_cond_always(buf,str1,len1,str2,quotebegin, \ 127 quoteend)\ 128 do { \ 129 if (!str2.slen) \ 130 copy_advance_pair_quote(buf,str1,len1,str2,quotebegin,quoteend); \ 131 else \ 132 copy_advance_pair_quote_cond(buf,str1,len1,str2,quotebegin,quoteend);\ 133 } while (0) 115 134 116 135 /*
Note: See TracChangeset
for help on using the changeset viewer.