shithub: lpa

ref: 7d2f1a2d83df21f0520180537eba7f930bbdb7ee
dir: /fns.h/

View raw version
/* aplan.c */
Array *parseaplan(TokenList *, char **);

/* array.c */
void initarrays(void);
Array *allocarray(int, int, usize);
void setint(Array *, usize, vlong);
void setshape(Array *, int, usize);

/* fs.c */
Qid freshobjqid(void);
void startfs(char *, char *);

/* memory.c */
void *alloc(int);
void setroot(void *, int);
void *allocextra(void *, usize);

/* module.c */
Module *addmodule(Session *, char *);
Enumeration *enummodules(Session *s);

/* parse.c */
Ast *parse(TokenList *, char **);

/* scan.c */
TokenList *scan(char *, char **);

/* session.c */
void initsessions(void);
Session *allocsession(void);
Enumeration *enumsessions(void);
void appendlog(Session *s, char *data);

/* symtab.c */
Symtab *allocsymtab(int);
uvlong sym(Symtab *, char *);
char *symname(Symtab *, uvlong);
void *symval(Symtab *, uvlong);
Qid symqid(Symtab *, uvlong);
void symset(Symtab *, uvlong, void *);
Enumeration *enumsymbols(Symtab *);

/* systemcmd.c */
void systemcmd(Session *, char *, int);

/* util.c */
Enumeration *allocenum(uvlong);
void trim(char *);

/* value.c */
char *printval(void *);
void *parseval(char *, char **);

void *init_quadio(void);