Differences From Artifact [64ffbf7186]:
- File wgsync/src/pqp.c — part of check-in [81321a2c01] at 2022-11-01 14:33:33 on branch trunk — iterate, add linked list template (user: lexi, size: 1516) [annotate] [blame] [check-ins using]
To Artifact [720f5ee89f]:
- File wgsync/src/pqp.c — part of check-in [a1d7d9de5e] at 2025-04-15 10:28:43 on branch trunk — fix idiot typo (user: lexi, size: 1497) [annotate] [blame] [check-ins using]
8 8 } pq_array; 9 9 10 10 typedef _layout pq_array_elt { 11 11 uint32_t sz; /* -1 for null */ 12 12 char body []; 13 13 } pq_array_elt; 14 14 15 -#include <stdio.h> 16 15 struct pqp_array* 17 16 pqp_array_read(const void* pqary) { 18 17 const pq_array* pqa = pqary; 19 18 pqp_array* r = calloc(1, sizeof(pqp_array) 20 19 + (sizeof(pqp_array_elt) * pqa -> nelts)); 21 20 *r = (pqp_array) { 22 21 .ty = ntohl(pqa -> ty),