all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lee Duhem <lee.duhem@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: [PATCH] src/eval.c (Fbacktrace): Avoid unnecessary strlen calls
Date: Tue, 25 Nov 2014 11:47:07 +0800	[thread overview]
Message-ID: <CAOSer0AK-cQBW6quqoajFNvMbFcU-WmZignoMb8RrznL-LM=Fw@mail.gmail.com> (raw)

---
 src/ChangeLog | 4 ++++
 src/eval.c    | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 448de36..c6e3c59 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-25  Lee Duhem  <lee.duhem@gmail.com>
+
+ * eval.c(Fbacktrace): Avoid unnecessary strlen calls.
+
 2014-11-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>

  * gnutls.c: Fix compilation warnings given fix --enable-gcc-warnings.
diff --git a/src/eval.c b/src/eval.c
index 77b1db9..268472b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3315,22 +3315,22 @@ Output stream used is value of `standard-output'.  */)
  {
   Fprin1 (Fcons (backtrace_function (pdl), *backtrace_args (pdl)),
   Qnil);
-  write_string ("\n", -1);
+  write_string ("\n", 1);
  }
       else
  {
   tem = backtrace_function (pdl);
   Fprin1 (tem, Qnil); /* This can QUIT.  */
-  write_string ("(", -1);
+  write_string ("(", 1);
   {
     ptrdiff_t i;
     for (i = 0; i < backtrace_nargs (pdl); i++)
       {
- if (i) write_string (" ", -1);
+ if (i) write_string (" ", 1);
  Fprin1 (backtrace_args (pdl)[i], Qnil);
       }
   }
-  write_string (")\n", -1);
+  write_string (")\n", 2);
  }
       pdl = backtrace_next (pdl);
     }
-- 
1.9.3



                 reply	other threads:[~2014-11-25  3:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAOSer0AK-cQBW6quqoajFNvMbFcU-WmZignoMb8RrznL-LM=Fw@mail.gmail.com' \
    --to=lee.duhem@gmail.com \
    --cc=emacs-devel@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.