Lines Matching refs:st
363 #define pb_membersize(st, m) (sizeof ((st*)0)->m)
365 #define pb_arraysize(st, m) (pb_membersize(st, m) / pb_membersize(st, m[0]))
367 #define pb_delta(st, m1, m2) ((int)offsetof(st, m1) - (int)offsetof(st, m2))
373 #define PB_DATAOFFSET_FIRST(st, m1, m2) (offsetof(st, m1))
375 #define PB_DATAOFFSET_OTHER(st, m1, m2) (offsetof(st, m1) - offsetof(st, m2) - pb_membersize(st, m2))
377 #define PB_DATAOFFSET_CHOOSE(st, m1, m2) (int)(offsetof(st, m1) == offsetof(st, m2) \
378 ? PB_DATAOFFSET_FIRST(st, m1, m2) \
379 : PB_DATAOFFSET_OTHER(st, m1, m2))
385 #define PB_REQUIRED_STATIC(tag, st, m, fd, ltype, ptr) \
387 fd, 0, pb_membersize(st, m), 0, ptr}
390 #define PB_OPTIONAL_STATIC(tag, st, m, fd, ltype, ptr) \
393 pb_delta(st, has_ ## m, m), \
394 pb_membersize(st, m), 0, ptr}
397 #define PB_REPEATED_STATIC(tag, st, m, fd, ltype, ptr) \
400 pb_delta(st, m ## _count, m), \
401 pb_membersize(st, m[0]), \
402 pb_arraysize(st, m), ptr}
405 #define PB_REQUIRED_POINTER(tag, st, m, fd, ltype, ptr) \
407 fd, 0, pb_membersize(st, m[0]), 0, ptr}
410 #define PB_OPTIONAL_POINTER(tag, st, m, fd, ltype, ptr) \
412 fd, 0, pb_membersize(st, m[0]), 0, ptr}
415 #define PB_REPEATED_POINTER(tag, st, m, fd, ltype, ptr) \
417 fd, pb_delta(st, m ## _count, m), \
418 pb_membersize(st, m[0]), 0, ptr}
421 #define PB_REQUIRED_CALLBACK(tag, st, m, fd, ltype, ptr) \
423 fd, 0, pb_membersize(st, m), 0, ptr}
425 #define PB_OPTIONAL_CALLBACK(tag, st, m, fd, ltype, ptr) \
427 fd, 0, pb_membersize(st, m), 0, ptr}
429 #define PB_REPEATED_CALLBACK(tag, st, m, fd, ltype, ptr) \
431 fd, 0, pb_membersize(st, m), 0, ptr}
434 #define PB_OPTEXT_STATIC(tag, st, m, fd, ltype, ptr) \
438 pb_membersize(st, m), 0, ptr}
440 #define PB_OPTEXT_CALLBACK(tag, st, m, fd, ltype, ptr) \
442 0, 0, pb_membersize(st, m), 0, ptr}