Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PRINT_TYPESET vs PRINT_WHENCE_CSH



Either these sets of flags shouldn't overlap at all, or it shouldn't matter
that they both start at (1<<0) ... or there's some reason to imply that
whence and typeset are related?

I suspect it doesn't matter since PRINT_WHENCE_* are only in hashtable.c
whereas the other PRINT_* are only params.c, but ...

/* flags for controlling printing of hash table nodes */
#define PRINT_NAMEONLY		(1<<0)
#define PRINT_TYPE		(1<<1)
#define PRINT_LIST		(1<<2)
#define PRINT_KV_PAIR		(1<<3)
#define PRINT_INCLUDEVALUE	(1<<4)
#define PRINT_TYPESET		(1<<5)

/* flags for printing for the whence builtin */
#define PRINT_WHENCE_CSH	(1<<5)
#define PRINT_WHENCE_VERBOSE	(1<<6)
#define PRINT_WHENCE_SIMPLE	(1<<7)
#define PRINT_WHENCE_FUNCDEF	(1<<9)
#define PRINT_WHENCE_WORD	(1<<10)



Messages sorted by: Reverse Date, Date, Thread, Author