[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs can't be built on HPUX 10.
From: |
Kenichi Handa |
Subject: |
Re: Emacs can't be built on HPUX 10. |
Date: |
Thu, 16 Nov 2000 09:58:04 +0900 (JST) |
"Eli Zaretskii" <address@hidden> writes:
> Please note that local static variables are against Emacs coding
> guidelines (see the node "Writing Emacs Primitives" in the ELisp
> manual). This is because on some systems "static" gets defined away
> (is HP-UX one of those systems, per chance?).
> So I think the change that Handa-san suggested needs to be done
> anyway, no matter what are the particulars of this problem on HP-UX.
Ok, I've just installed the attached change.
---
Ken'ichi HANDA
address@hidden
2000-11-16 Kenichi Handa <address@hidden>
* dispnew.c (null_row): New global static variable.
(clear_glyph_row): Delete local static variable null_row.
Index: dispnew.c
===================================================================
RCS file: /cvs/emacs/src/dispnew.c,v
retrieving revision 1.241
retrieving revision 1.242
diff -c -c -r1.241 -r1.242
*** dispnew.c 2000/10/31 13:32:08 1.241
--- dispnew.c 2000/11/16 00:53:28 1.242
***************
*** 976,987 ****
changes in the glyph_row structure, i.e. addition or removal of
structure members. */
void
clear_glyph_row (row)
struct glyph_row *row;
{
struct glyph *p[1 + LAST_AREA];
- static struct glyph_row null_row;
/* Save pointers. */
p[LEFT_MARGIN_AREA] = row->glyphs[LEFT_MARGIN_AREA];
--- 976,988 ----
changes in the glyph_row structure, i.e. addition or removal of
structure members. */
+ static struct glyph_row null_row;
+
void
clear_glyph_row (row)
struct glyph_row *row;
{
struct glyph *p[1 + LAST_AREA];
/* Save pointers. */
p[LEFT_MARGIN_AREA] = row->glyphs[LEFT_MARGIN_AREA];