binary ****************/
| 61 | |
| 62 | /**************** binary ****************/ |
| 63 | static inline int format_to_size(char format) { |
| 64 | switch (format) { |
| 65 | case 'c': |
| 66 | case 'b': |
| 67 | case 'B': |
| 68 | return 1; |
| 69 | case 'h': |
| 70 | case 'H': |
| 71 | return 2; |
| 72 | case 'i': |
| 73 | case 'I': |
| 74 | case 'l': |
| 75 | case 'L': |
| 76 | case 'f': |
| 77 | return 4; |
| 78 | case 'q': |
| 79 | case 'Q': |
| 80 | case 'd': |
| 81 | return 8; |
| 82 | default: |
| 83 | ERROR("unknown format '%c'\n", format); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | typedef struct { |
| 88 | int32_t time_offset; |
no outgoing calls
no test coverage detected