From xemacs-m  Fri Mar 21 00:14:09 1997
Received: from GS213.SP.CS.CMU.EDU (GS213.SP.CS.CMU.EDU [128.2.209.183])
	by xemacs.org (8.8.5/8.8.5) with SMTP id AAA29993
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 00:14:08 -0600 (CST)
Received: by GS213.SP.CS.CMU.EDU (AIX 3.2/UCB 5.64/4.03)
          id AA45660; Fri, 21 Mar 1997 01:14:08 -0500
Date: Fri, 21 Mar 1997 01:14:08 -0500
Message-Id: <9703210614.AA45660@GS213.SP.CS.CMU.EDU>
From: Darrell Kindred <dkindred@cmu.edu>
To: xemacs-beta@xemacs.org
Subject: alloca.h not included
Organization: Carnegie Mellon University School of Computer Science

In regex.c, the following code appears:

    /* AIX requires this to be the first thing in the file. */
    #if defined (_AIX) && !defined (REGEX_MALLOC)
      #pragma alloca
    #endif

and further down,

    /* Emacs already defines alloca, sometimes.  */
    #ifndef alloca
    
    /* Make alloca work the best possible way.  */
    #ifdef __GNUC__
    #define alloca __builtin_alloca
    #else /* not __GNUC__ */
    #if HAVE_ALLOCA_H
    #include <alloca.h>
    #else /* not __GNUC__ or HAVE_ALLOCA_H */
    #ifndef _AIX /* Already did AIX, up at the top.  */
    char *alloca ();
    #endif /* not _AIX */
    #endif /* not HAVE_ALLOCA_H */ 
    #endif /* not __GNUC__ */
    
    #endif /* not alloca */

However, none of this stuff appears elsewhere in the XEmacs
source, despite the fact that buffer.h defines macros that
use alloca() (GET_STRING_EXT_DATA_ALLOCA).  Should this
stuff be inserted in buffer.h or somewhere?

It's probably a bit late to consider this for 19.15, but
perhaps it should be addressed in 20.1.

- Darrell

