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