unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* strange change in store_symval_forwarding (data.c)
@ 2003-03-26  2:53 Kenichi Handa
  2003-03-26 14:41 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kenichi Handa @ 2003-03-26  2:53 UTC (permalink / raw)


Currently, store_symval_forwarding has this code:

	case Lisp_Misc_Buffer_Objfwd:
	  {
	    int offset = XBUFFER_OBJFWD (valcontents)->offset;
	    Lisp_Object type;

	    if (! NILP (type) && ! NILP (newval)
		&& XTYPE (newval) != XINT (type))
	      buffer_slot_type_mismatch (offset);

Please note that the local variable `type' is used without
being initialized.

Previously, the code has this initilization part:

	    Lisp_Object type;

	    type = PER_BUFFER_TYPE (offset);
	    if (XINT (type) == -1)
	      error ("Variable %s is read-only", SDATA (SYMBOL_NAME (symbol)));

ChangeLog doesn't say anything about this change, but it
seems that it was done when this change was installed.

2003-03-13  Andreas Schwab  <schwab@suse.de>
[...]
	* data.c (long_to_cons): Fix type of top.

Andreas, do you know somthing about it?

---
Ken'ichi HANDA
handa@m17n.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-27  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26  2:53 strange change in store_symval_forwarding (data.c) Kenichi Handa
2003-03-26 14:41 ` Andreas Schwab
2003-03-26 14:51 ` Andreas Schwab
2003-03-27  0:58   ` Kenichi Handa
2003-03-26 15:38 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).