#define R_PATH 		 1
#define R_DEST     2
#define R_EXPLICIT 3
#define R_IMPLICIT 4
#define R_MACRO    5

typedef struct registry {
	struct registry *link;
	short *name;
	int canchange:1;
	int isdef:1;
	int isenv:1;
	int type;

	short *depends;
	struct {
		short *path;
		short *macro;
		short **commands;
	} x;
} REGISTRY;

#include "register.p"