[DGD] [Melville] non-static mappings
    Brett Kail 
    junkaddr at hotmail.com
       
    Tue Feb  5 06:34:39 CET 2002
    
    
  
Hello,
>I'm trying to add a better aliasing to Melville.  What I've done is added 
>an alias mapping to shell.c in melville.  My code then checks this mapping 
>& if the first word of a command matches a key in the alias mapping, it 
>replaces that word with the associated value.  This works fine as long as 
>the mapping is static, but when I try to make it non-static, so that it 
>will be saved, I get an "Index on bad type" error whenever the 
>process_alias() function is called.
>
It sounds as if your 'aliases' mapping gets set to 0.  I've no idea how 
saving works, but is it possible that:
  - you have some sort of 'restore from save file' operation that occurs 
after calling initialize_shell()
  - the restore code only affects non-static variables
  - the restore code fails to find a variable named 'aliases' in the save 
file and then sets it to 0
?
-Brett
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd
    
    
More information about the DGD
mailing list