Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/glob.h
          +++ new/usr/src/head/glob.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  
  23   23  /*
       24 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24   25   * Copyright 1985, 1992 by Mortice Kern Systems Inc.  All rights reserved.
  25   26   */
  26   27  
  27   28  /*
  28   29   * Copyright (c) 1989, 1993
  29   30   *      The Regents of the University of California.  All rights reserved.
  30   31   *
  31   32   * This code is derived from software contributed to Berkeley by
  32   33   * Guido van Rossum.
  33   34   *
↓ open down ↓ 118 lines elided ↑ open up ↑
 152  153  #define GLOB_ABEND      GLOB_ABORTED    /* backward compatibility */
 153  154  
 154  155  #ifdef __PRAGMA_REDEFINE_EXTNAME
 155  156  #pragma redefine_extname        glob    _glob_ext
 156  157  #pragma redefine_extname        globfree        _globfree_ext
 157  158  #else /* __PRAGMA_REDEFINE_EXTNAME */
 158  159  #define glob    _glob_ext
 159  160  #define globfree        _globfree_ext
 160  161  #endif /* __PRAGMA_REDEFINE_EXTNAME */
 161  162  
 162      -#if defined(__STDC__)
 163      -
 164  163  extern int glob(const char *_RESTRICT_KYWD, int, int(*)(const char *, int),
 165  164                  glob_t *_RESTRICT_KYWD);
 166  165  extern void globfree(glob_t *);
 167  166  
 168      -#else /* __STDC__ */
 169      -
 170      -extern int glob();
 171      -extern void globfree();
 172      -
 173      -#endif /* __STDC__ */
 174      -
 175  167  #ifdef  __cplusplus
 176  168  }
 177  169  #endif
 178  170  
 179  171  #endif  /* _GLOB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX