home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / BASH_112.ZIP / BASH-112.TAR / bash-1.12 / builtins.h < prev    next >
C/C++ Source or Header  |  1991-10-30  |  1KB  |  42 lines

  1. /* builtins.h -- What a builtin looks like, and where to find them. */
  2.  
  3. /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GNU Bash, the Bourne Again SHell.
  6.  
  7.    Bash is free software; you can redistribute it and/or modify it
  8.    under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 1, or (at your option)
  10.    any later version.
  11.  
  12.    Bash is distributed in the hope that it will be useful, but WITHOUT
  13.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14.    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  15.    License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with Bash; see the file COPYING.  If not, write to the Free
  19.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21. #include "config.h"
  22. #include "general.h"
  23.  
  24. #if defined (ALIAS)
  25. #include "alias.h"
  26. #endif
  27.  
  28. /* The thing that we build the array of builtins out of. */
  29. struct builtin {
  30.   char *name;
  31.   Function *function;
  32.   int enabled;
  33.   char **long_doc;        /* NULL terminated array of strings. */
  34.   char *short_doc;
  35. };
  36.  
  37. /* Found in builtins.c, created by builtins/mkbuiltins. */
  38. extern struct builtin shell_builtins[];
  39. extern int num_shell_builtins;
  40.  
  41.  
  42.