shithub: lpa

ref: ad872eeb19b4fcc41a5d34750ca6cdcf88a39795
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);