Campbell Barton
c1ae12bf5e
Cleanup: dna_genfile API for accessing struct member offsets
...
- Rename `find_elem` to `elem_offset` (matching `elem_exists`).
- Remove unused `SDNA_StructMember` return argument.
- Return an offset instead of a pointer which was being converted
back into an offset by one caller,
in this case there was no way to tell the difference between
and element that doesn't exist and a struct member
at the start of the array.
Resolves UBSan warning raised in T81340.
2020-10-01 14:32:43 +10:00
..
2020-10-01 14:32:43 +10:00
2019-04-17 06:21:24 +02:00
2020-08-07 09:50:34 +02:00
2020-09-25 14:20:59 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-10 22:07:43 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-15 12:47:09 -06:00
2020-08-07 09:50:34 +02:00
2020-09-16 15:55:22 +02:00
2020-09-16 10:20:38 -05:00
2020-09-16 10:20:38 -05:00
2020-08-07 10:04:57 +02:00
2020-09-18 14:10:23 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2019-08-18 04:26:34 +10:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-22 14:02:53 +02:00
2020-08-07 09:50:34 +02:00
2020-09-29 12:29:01 +02:00
2020-09-03 15:01:50 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-09 17:01:17 +02:00
2020-09-21 15:04:09 +10:00
2020-09-11 08:08:46 +02:00
2020-09-15 09:29:58 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-18 18:28:17 +02:00
2020-08-07 09:50:34 +02:00
2020-09-30 11:51:13 +10:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-30 17:20:29 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-03 15:01:50 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-21 15:24:36 +02:00
2020-08-25 10:04:15 -06:00
2020-08-07 09:50:34 +02:00
2020-09-17 13:33:53 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-09-09 17:01:17 +02:00
2020-09-02 14:20:41 +02:00
2020-08-17 12:39:08 +10:00
2020-09-21 12:25:45 +02:00
2020-09-30 11:51:13 +10:00
2020-09-29 12:29:01 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-09-15 11:25:49 -05:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-30 15:54:24 +02:00
2020-09-25 02:51:31 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-30 12:21:35 -05:00
2020-09-18 19:24:58 +02:00
2020-08-07 09:50:34 +02:00
2020-09-18 19:24:58 +02:00
2020-09-15 23:13:01 +05:30
2020-09-15 23:13:01 +05:30
2020-09-06 02:19:58 +10:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00