From: Richard Stallman <rms@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: philippe.waroquiers@eurocontrol.int, emacs-devel@gnu.org
Subject: Re: emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set
Date: Fri, 07 Sep 2007 02:32:35 -0400 [thread overview]
Message-ID: <E1ITXON-0003il-QK@fencepost.gnu.org> (raw)
In-Reply-To: <ojk5r4gtpj.fsf@fencepost.gnu.org> (message from Glenn Morris on Thu, 06 Sep 2007 03:04:56 -0400)
I guess so. Do I just move all static variables to file scope,
irrespective of type? Does it matter whether they are explicitly
initialized, or if the values never change?
If the values never change, it is ok to have an initializer.
Variables with initializer may be put in pure space when Emacs is
dumped.
If the value can change, there must be no initializer. So initialize
the variable in init_FILENAME or some such function that is called at
a suitable time.
It is a good idea to rename the variable
to a name that relates to the function that uses it.
Don't keep a short name like `cnt'.
next prev parent reply other threads:[~2007-09-07 6:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 17:06 emacs 22.1 on hp-ux 11.11 core dumps when DISPLAY not set Philippe Waroquiers
2007-08-09 5:24 ` Richard Stallman
2007-08-09 7:39 ` WAROQUIERS Philippe
2007-09-04 9:58 ` WAROQUIERS Philippe
2007-09-04 22:58 ` Richard Stallman
2007-09-05 2:03 ` Glenn Morris
2007-09-05 20:01 ` Richard Stallman
2007-09-06 7:04 ` Glenn Morris
2007-09-07 6:32 ` Richard Stallman [this message]
2007-09-07 7:05 ` Glenn Morris
2007-09-08 7:01 ` Richard Stallman
2007-09-12 1:32 ` Glenn Morris
2007-09-13 16:30 ` Richard Stallman
2007-09-14 3:00 ` Glenn Morris
2007-09-14 6:28 ` Jan Djärv
2007-09-14 7:25 ` Glenn Morris
2007-09-15 2:09 ` Richard Stallman
2007-09-15 19:50 ` Glenn Morris
2007-09-15 8:04 ` Richard Stallman
2007-09-07 6:32 ` Richard Stallman
2007-09-12 7:31 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1ITXON-0003il-QK@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=philippe.waroquiers@eurocontrol.int \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.