public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: [tcl] Undefined NULL in tcl/compat/strstr.c
       [not found] <EE8EE936-F2AD-41D0-9C29-5DB98D3AE80C@monami-software.com>
@ 2008-04-23 18:10 ` Keith Seitz
  2008-04-23 18:14   ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2008-04-23 18:10 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: insight

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

[Moving to correct list]

Masaki Muranaka wrote:
> Hello,
> 
> This is obvious. Could anyone commit my patch?
> 
> 
> 2008-04-24  Masaki Muranaka  <monaka@monami-software.com>
> 
>         * compat/strstr.c : Add include stddef.h to get NULL define.

Having seen this patch, I took a peek at what the upstream Tcl group has 
done. They've taken a slightly different tack, which I have committed:

tcl/ChangeLog
2008-04-23  Keith Seitz  <keiths@redhat.com>

         Based on patch from Masaki Muranaka  <monaka@monami-software.com>:
         * compat/strstr.c: Include tcl.h and define NULL if it is
         not already defined.

[-- Attachment #2: tcl-strstr-NULL.patch --]
[-- Type: text/x-patch, Size: 526 bytes --]

Index: tcl/compat/strstr.c
===================================================================
RCS file: /cvs/src/src/tcl/compat/strstr.c,v
retrieving revision 1.5
diff -u -p -r1.5 strstr.c
--- tcl/compat/strstr.c	21 Jan 2003 19:39:57 -0000	1.5
+++ tcl/compat/strstr.c	23 Apr 2008 18:07:50 -0000
@@ -12,6 +12,11 @@
  * RCS: @(#) $Id: strstr.c,v 1.3 2002/01/26 01:10:08 dgp Exp $
  */
 
+#include "tcl.h"
+#ifndef NULL
+#define NULL 0
+#endif
+
 /*
  *----------------------------------------------------------------------
  *

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

* Re: [tcl] Undefined NULL in tcl/compat/strstr.c
  2008-04-23 18:10 ` [tcl] Undefined NULL in tcl/compat/strstr.c Keith Seitz
@ 2008-04-23 18:14   ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2008-04-23 18:14 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: insight

Keith Seitz wrote:
> Having seen this patch, I took a peek at what the upstream Tcl group has 
> done. They've taken a slightly different tack, which I have committed:

PS. Thank you for the patch!

Keith

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

end of thread, other threads:[~2008-04-23 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <EE8EE936-F2AD-41D0-9C29-5DB98D3AE80C@monami-software.com>
2008-04-23 18:10 ` [tcl] Undefined NULL in tcl/compat/strstr.c Keith Seitz
2008-04-23 18:14   ` Keith Seitz

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