shithub: lpa

ref: ddf9cc77ac875f0045e03dd59f516e302a4fbb7a
dir: /fns.h/

View raw version
/* array.c */
void initarrays(void);
Array *allocarray(int, int, usize);
void setint(Array *, usize, vlong);
void setarray(Array *, usize, Array *);
void setshape(Array *, int, usize);
Array *simplifyarray(Array *);

char *printarray(Array *);

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

/* memory.c */
void *alloc(int);
int getalloctag(void *);
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(void);
uvlong sym(Symtab *, char *);
char *symname(Symtab *, uvlong);
void *symval(Symtab *, uvlong);
void symset(Symtab *, uvlong, void *);
Symbol *symptr(Symtab *, uvlong);

Enumeration *enumsymbols(Symtab *);

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

/* util.c */
Enumeration *allocenum(uvlong);
void trim(char *);
void debugast(Ast *, int);

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