source: vendor/bash/3.1/builtins/getopt.h@ 3230

Last change on this file since 3230 was 3228, checked in by bird, 19 years ago

bash 3.1

File size: 2.1 KB
RevLine 
[3228]1/* Declarations for getopt.
2 Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
7 later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
17
18/* XXX THIS HAS BEEN MODIFIED FOR INCORPORATION INTO BASH XXX */
19
20#ifndef _SH_GETOPT_H
21#define _SH_GETOPT_H 1
22
23#include "stdc.h"
24
25/* For communication from `getopt' to the caller.
26 When `getopt' finds an option that takes an argument,
27 the argument value is returned here.
28 Also, when `ordering' is RETURN_IN_ORDER,
29 each non-option ARGV-element is returned here. */
30
31extern char *sh_optarg;