~pbatch/patchwerk

9c2653569bc76eb4b0150d966b77eeb3bb2646bf — paul 2 months ago abf5b62 master
plan9 additions from Sigrid

FossilOrigin-Name: 924050b79a9ddc6c62f47dffd1e038a708d58188ec2c319175bd9cccfd4181fd
2 files changed, 10 insertions(+), 2 deletions(-)

M header.w
M patch.w
M header.w => header.w +8 -0
@@ 7,6 7,14 @@ This is the single header file for patchwerk.
#include <stdio.h>
#include <stdarg.h> /* needed for print functionality */
@<Header@>@/

#ifdef __plan9__
#pragma incomplete pw_buffer
#pragma incomplete pw_patch
#pragma incomplete pw_node
#pragma incomplete pw_pointer
#pragma incomplete pw_stack
#endif
#endif

@* Type Definitions.

M patch.w => patch.w +2 -2
@@ 296,10 296,10 @@ pw_cable* pw_patch_get_out(pw_patch *patch)

@ The function |pw_patch_size| returns the size of the |pw_patch| data struct.
@<Header@>+=
size_t pw_patch_size();
size_t pw_patch_size(void);

@ @<Patch Top@>+=
size_t pw_patch_size()
size_t pw_patch_size(void)
{
    return sizeof(pw_patch);
}