public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] localedef: Do not compile with mcheck
@ 2016-05-10 14:37 Florian Weimer
  2016-05-10 17:56 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2016-05-10 14:37 UTC (permalink / raw)
  To: libc-alpha

__malloc_initialize_hook is deprecated.

2016-05-10  Florian Weimer  <fweimer@redhat.com>

	Do not use mcheck in localedef.
	* locale/programs/localedef.c (turn_on_mcheck)
	(__malloc_initialize_hook): Remove.

diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index 6becd9a..bfc5d22 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -24,7 +24,6 @@
 #include <fcntl.h>
 #include <libintl.h>
 #include <locale.h>
-#include <mcheck.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -634,14 +633,3 @@ cannot open locale definition file `%s'"), result->name));
 
   return result;
 }
-
-static void
-turn_on_mcheck (void)
-{
-  /* Enable `malloc' debugging.  */
-  mcheck (NULL);
-  /* Use the following line for a more thorough but much slower testing.  */
-  /* mcheck_pedantic (NULL); */
-}
-
-void (*__malloc_initialize_hook) (void) = turn_on_mcheck;

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

* Re: [PATCH] localedef: Do not compile with mcheck
  2016-05-10 14:37 [PATCH] localedef: Do not compile with mcheck Florian Weimer
@ 2016-05-10 17:56 ` Mike Frysinger
  2016-05-10 18:44   ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2016-05-10 17:56 UTC (permalink / raw)
  To: Florian Weimer; +Cc: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

On 10 May 2016 16:37, Florian Weimer wrote:
> 2016-05-10  Florian Weimer  <fweimer@redhat.com>
> 
> 	Do not use mcheck in localedef.
> 	* locale/programs/localedef.c (turn_on_mcheck)
> 	(__malloc_initialize_hook): Remove.

i'm fine with the change, but this changelog entry confuses me.
what's with the first line summary ?
shouldn't there be something at the end of the 2nd line like ": Delete." ?
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH] localedef: Do not compile with mcheck
  2016-05-10 17:56 ` Mike Frysinger
@ 2016-05-10 18:44   ` Florian Weimer
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2016-05-10 18:44 UTC (permalink / raw)
  To: libc-alpha

On 05/10/2016 07:56 PM, Mike Frysinger wrote:
> On 10 May 2016 16:37, Florian Weimer wrote:
>> 2016-05-10  Florian Weimer  <fweimer@redhat.com>
>>
>> 	Do not use mcheck in localedef.
>> 	* locale/programs/localedef.c (turn_on_mcheck)
>> 	(__malloc_initialize_hook): Remove.
>
> i'm fine with the change, but this changelog entry confuses me.
> what's with the first line summary ?
> shouldn't there be something at the end of the 2nd line like ": Delete." ?

It's the GNU standard way of line wrapping in ChangeLogs:

<https://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html#Style-of-Change-Logs>

(Search for “keyboard.c”.)

Emacs produces this automatically.

Florian

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

end of thread, other threads:[~2016-05-10 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-10 14:37 [PATCH] localedef: Do not compile with mcheck Florian Weimer
2016-05-10 17:56 ` Mike Frysinger
2016-05-10 18:44   ` Florian Weimer

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).