mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
31444: Basic code for enable/disable -p
This commit is contained in:
parent
e36e7d9ade
commit
fdf2867e5f
8 changed files with 313 additions and 12 deletions
16
Src/zsh.h
16
Src/zsh.h
|
|
@ -1413,6 +1413,21 @@ enum zpc_chars {
|
|||
ZPC_COUNT /* Number of special chararacters */
|
||||
};
|
||||
|
||||
/*
|
||||
* Structure to save disables special characters for function scope.
|
||||
*/
|
||||
struct zpc_disables_save {
|
||||
struct zpc_disables_save *next;
|
||||
/*
|
||||
* Bit vector of ZPC_COUNT disabled characters.
|
||||
* We'll live dangerously and assumed ZPC_COUNT is no greater
|
||||
* than the number of bits an an unsigned int.
|
||||
*/
|
||||
unsigned int disables;
|
||||
};
|
||||
|
||||
typedef struct zpc_disables_save *Zpc_disables_save;
|
||||
|
||||
/*
|
||||
* Special match types used in character classes. These
|
||||
* are represented as tokens, with Meta added. The character
|
||||
|
|
@ -2074,6 +2089,7 @@ enum {
|
|||
LISTROWSFIRST,
|
||||
LISTTYPES,
|
||||
LOCALOPTIONS,
|
||||
LOCALPATTERNS,
|
||||
LOCALTRAPS,
|
||||
LOGINSHELL,
|
||||
LONGLISTJOBS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue