2 #pragma src "/sys/src/libaml"
5 * b uchar* buffer amllen() returns number of bytes
6 * s char* string amllen() is strlen()
7 * n char* undefined name amllen() is strlen()
9 * p void** package amllen() is # of elements
18 uvlong amlint(void *);
21 void* amlnew(char tag, int len);
26 int amlload(uchar *data, int len);
27 void* amlwalk(void *dot, char *name);
28 int amleval(void *dot, char *fmt, ...);
29 void amlenum(void *dot, char *seg, int (*proc)(void *, void *), void *arg);
32 * exclude from garbage collection
40 #pragma varargck type "V" void*
41 #pragma varargck type "N" void*
43 /* to be provided by operating system */
44 extern void* amlalloc(int);
45 extern void amlfree(void*);
47 extern void amldelay(int); /* microseconds */
60 typedef struct Amlio Amlio;
70 int (*read)(Amlio *io, void *data, int len, int off);
71 int (*write)(Amlio *io, void *data, int len, int off);
74 extern int amlmapio(Amlio *io);
75 extern void amlunmapio(Amlio *io);