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

Re: reserved words and aliases



coleman@xxxxxxxxxxxxxxx wrote:
>   In your patch to split reserved words and aliases,
> you are missing the piece of the patch for zsh.h.  Your
> patch doesn't define "struct reswd" which is a slight
> problem of course :-)

oops --- yes, reswd is a reduced `struct alias' with just the token
number remaining.

*** Src/zsh.h~	Fri May 19 10:10:18 1995
--- Src/zsh.h	Thu May 25 12:13:29 1995
***************
*** 645,650 ****
--- 645,658 ----
      int inuse;			/* alias is being expanded                  */
  };
  
+ /* node in shell reserved word list */
+ 
+ struct reswd {
+     struct hashnode *next;
+     char *nam;			/* name of reserved word */
+     int cmd;			/* corresponding token */
+ };
+ 
  /* node in sched list */
  
  struct schedcmd {

-- 
Peter Stephenson <P.Stephenson@xxxxxxxxxxxxx>  Tel: +44 1792 205678 extn. 4461
WWW:  http://python.swan.ac.uk/~pypeters/      Fax: +44 1792 295324
Department of Physics, University of Wales, Swansea,
Singleton Park, Swansea, SA2 8PP, U.K.



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