home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / bug-lucid-emacs / text0119.txt < prev    next >
Encoding:
Text File  |  1993-07-04  |  1.1 KB  |  30 lines

  1. Tor Lillqvist wrote:
  2. > The problem is that in xdisp.c:decode_mode_spec() a pointer to "static
  3. > char lots_of_dashes[]" is returned.  However, in s-hpux8.h, static is
  4. > defined as empty, so lots_of_dashes is actually allocated on the
  5. > stack.  I don't know if the definition of static as empty is really
  6. > required on HP-UX (any longer) or not.  Anyway, move lots_of_dashes to
  7. > global level and %- works.
  8.  
  9. This would imply that there is another problem; why should lots_of_dashes
  10. not being static cause some other stack element to overlap it?  It should
  11. work whether it's static or not.
  12.  
  13. Dipankar Gupta wrote:
  14. > Unsolicited advice to Emacs source hackers:
  15. > *** Please *DON'T* use static variables inside function scope.*** 
  16. > It sucks raw eggs when an executable is dumped. Variables in the
  17. > dumped executable don't reset themselves by magic.
  18.  
  19. Only if those functions are called both before and after the dump, which
  20. most functions are not.  Also, in most cases I suspect that it doesn't
  21. matter that they aren't reset at dump-time.
  22.  
  23. Why do the HP config files disable "static"?  This seems like a staggeringly
  24. bad idea to me.  Is it really necessary?  
  25.  
  26.     -- Jamie
  27.  
  28.