view src/ploki/sub.h @ 6934:04f9cc15cad5

<hppavilion[1]> le/rn last-class function/A last-class function is a function that cannot be passed as an argument, accept a function as an argument, be returned by a function, return a function, set to a variable other than its initial name, or be called
author HackBot
date Tue, 23 Feb 2016 00:02:33 +0000
parents ac0403686959
children
line wrap: on
line source

#ifndef SUB_H_
#define SUB_H_

#include "config.h"

#include <stddef.h>

struct expr;
struct sub;

struct sub *sub_new(const struct expr *);
struct sub *sub_incr(struct sub *);
void sub_decr(struct sub *);
ATTR_PURE
struct expr *sub_expr(const struct sub *);
size_t sub_id(const struct sub *);

#endif /* SUB_H_ */