]> git.eshelyaron.com Git - emacs.git/commit
Clean up __executable_start, monstartup when --enable-profiling.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 May 2012 19:23:37 +0000 (12:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 May 2012 19:23:37 +0000 (12:23 -0700)
commit9e4bf381b7f2ffa95c64cac0cd8015152a33289c
tree81ec2f9d47a0fb963ab83083c5ca849c3f85b9ba
parent6e8a178669e918fb40a0cffce00757b2caae973d
Clean up __executable_start, monstartup when --enable-profiling.

The following changes affect the code only when profiling.
* dispnew.c (__executable_start): Rename from safe_bcopy.
Define only on platforms that need it.
* emacs.c: Include <sys/gmon.h> when profiling.
(_mcleanup): Remove decl, since <sys/gmon.h> does it now.
(__executable_start): Remove decl, since lisp.h does it now.
(safe_bcopy): Remove decl; no longer has that name.
(main): Coalesce #if into single bit of code, for simplicity.
Cast pointers to uintptr_t, since standard libraries want integers
and not pointers.
* lisp.h (__executable_start): New decl.
src/ChangeLog
src/dispnew.c
src/emacs.c
src/lisp.h