~pbatch/patchwerk

ref: 9c2653569bc76eb4b0150d966b77eeb3bb2646bf patchwerk/header.w -rw-r--r-- 788 bytes
9c265356 — paul plan9 additions from Sigrid 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@** Header. \mkref{headerfile}
This is the single header file for patchwerk.

@(patchwerk.h@>=
#ifndef PATCHWERK_H
#define PATCHWERK_H
#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.
% TODO: consolidate all type declarations into a named section that
% can be appended to
@<Header@>+=
#ifndef PWFLT
#define PWFLT float
#endif

typedef struct pw_node pw_node;
typedef struct pw_pointer pw_pointer;
typedef void (*pw_function)(pw_node *);
typedef void (*pw_nodefun)(pw_node *, void *);
@<Type Declarations@>

@* C structs.
@<Header@>+=
@<Cable Data@>@/