Changeset 39175 for trunk/ippTools/src/pxtools.h
- Timestamp:
- Nov 20, 2015, 3:15:38 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxtools.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxtools.h
r30907 r39175 206 206 207 207 #define PXOPT_COPY_PRIMITIVE(from, to, type, suffix, oldname, newname, newcomment) \ 208 {\209 psMetadataItem *item = psMetadataLookup(from, oldname);\210 if (!item) {\208 { \ 209 psMetadataItem *item = psMetadataLookup(from, oldname); \ 210 if (!item) { \ 211 211 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for %s", oldname); \ 212 return false; \213 }\214 psAssert(item->comment, "metadata item comment should be defined"); \215 \216 if (psStrcasestr(item->comment, "(found)")) {\212 return false; \ 213 } \ 214 psAssert(item->comment, "metadata item comment should be defined"); \ 215 \ 216 if (psStrcasestr(item->comment, "(found)")) { \ 217 217 if (!psMetadataAdd##suffix(to, PS_LIST_TAIL, newname, PS_META_DUPLICATE_OK, newcomment, item->data.suffix)) { \ 218 psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \219 psFree(to);\220 return false;\221 } \222 }\223 }218 psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \ 219 psFree(to); \ 220 return false; \ 221 } \ 222 } \ 223 } 224 224 225 225 #define PXOPT_COPY_V(from, to, type, suffix, oldname, newname, comment) \
Note:
See TracChangeset
for help on using the changeset viewer.
