[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 22.2.90 pretest

From: Kenichi Handa
Subject: Re: Emacs 22.2.90 pretest
Date: Thu, 21 Aug 2008 20:25:51 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, YAMAMOTO Mitsuharu <address@hidden> writes:

> > Is nm the only variable in danger?  If so, how about if we simply
> > copy it on all platforms?

> I think it is one possible solution if properly commented.

Another is to do something like this (excerpted from send_process ()).

                      int offset = 0;
                      /* Running filters might relocate buffers or strings.
                         Arrange to relocate BUF.  */
                      if (BUFFERP (object))
                        offset = BUF_PTR_BYTE_POS (XBUFFER (object), buf);
                      else if (STRINGP (object))
                        offset = buf - SDATA (object);

                      wait_reading_process_output (0, 20000, 0, 0, Qnil, NULL, 
                      wait_reading_process_output (1, 0, 0, 0, Qnil, NULL, 0);

                      if (BUFFERP (object))
                        buf = BUF_BYTE_ADDRESS (XBUFFER (object), offset);
                      else if (STRINGP (object))
                        buf = offset + SDATA (object);

Kenichi Handa

reply via email to

[Prev in Thread] Current Thread [Next in Thread]