ref: ad872eeb19b4fcc41a5d34750ca6cdcf88a39795
dir: /value.c/
#include <u.h> #include <libc.h> #include <thread.h> #include "dat.h" #include "fns.h" /* Anything that can have a name in LPA: Arrays, functions, ... */ char * printval(void *v) { if(v) return smprint("some value: %p :)", v); else return smprint("no value :("); } void * parseval(char *buf, char **errp) { void *val = nil; TokenList *tokens = scan(buf, errp); if(tokens != nil){ /* Parse the tokens as a constant. TODO: Support function definitions as well... */ val = parseaplan(tokens, errp); } return val; } void * init_quadio(void) { return nil; }