Bash  5.0-beta2
Bash - Bourne Again shell
input.h File Reference
#include "stdc.h"

Go to the source code of this file.

Data Structures

union  INPUT_STREAM
 
struct  BASH_INPUT
 

Macros

#define _FUNCTION_DEF
 

Typedefs

typedef int Function()
 
typedef void VFunction()
 
typedef char * CPFunction()
 
typedef char ** CPPFunction()
 
typedef int sh_cget_func_t __P((void))
 

Enumerations

enum  stream_type {
  st_none, st_stdin, st_stream, st_string,
  st_bstream
}
 

Functions

void initialize_bash_input __P ((void))
 
void init_yy_io __P ((sh_cget_func_t *, sh_cunget_func_t *, enum stream_type, const char *, INPUT_STREAM))
 
void with_input_from_string __P ((char *, const char *))
 
void with_input_from_stream __P ((FILE *, const char *))
 
void push_stream __P ((int))
 
int stream_on_stack __P ((enum stream_type))
 
int find_reserved_word __P ((char *))
 
void execute_variable_command __P ((char *, char *))
 
void restore_token_state __P ((int *))
 
int getc_with_restart __P ((FILE *))
 
int ungetc_with_restart __P ((int, FILE *))
 

Variables

BASH_INPUT bash_input
 

Data Structure Documentation

◆ INPUT_STREAM

union INPUT_STREAM

Definition at line 75 of file input.h.

Data Fields
FILE * file
char * string

◆ BASH_INPUT

struct BASH_INPUT

Definition at line 83 of file input.h.

Data Fields
enum stream_type type
char * name
INPUT_STREAM location
sh_cget_func_t * getter
sh_cunget_func_t * ungetter

Macro Definition Documentation

◆ _FUNCTION_DEF

#define _FUNCTION_DEF

Definition at line 28 of file input.h.

Typedef Documentation

◆ Function

typedef int Function()

Definition at line 29 of file input.h.

◆ VFunction

typedef void VFunction()

Definition at line 30 of file input.h.

◆ CPFunction

typedef char* CPFunction()

Definition at line 31 of file input.h.

◆ CPPFunction

typedef char** CPPFunction()

Definition at line 32 of file input.h.

◆ __P

typedef int sh_cunget_func_t __P((int))

Definition at line 35 of file input.h.

Enumeration Type Documentation

◆ stream_type

Enumerator
st_none 
st_stdin 
st_stream 
st_string 
st_bstream 

Definition at line 38 of file input.h.

Function Documentation

◆ __P() [1/11]

void initialize_bash_input __P ( (void)  )

◆ __P() [2/11]

void init_yy_io __P ( (sh_cget_func_t *, sh_cunget_func_t *, enum stream_type, const char *, INPUT_STREAM )

◆ __P() [3/11]

void with_input_from_string __P ( (char *, const char *)  )

◆ __P() [4/11]

void with_input_from_stream __P ( (FILE *, const char *)  )

◆ __P() [5/11]

void push_stream __P ( (int)  )

◆ __P() [6/11]

int stream_on_stack __P ( (enum stream_type )

◆ __P() [7/11]

int find_reserved_word __P ( (char *)  )

◆ __P() [8/11]

void execute_variable_command __P ( (char *, char *)  )

◆ __P() [9/11]

void restore_token_state __P ( (int *)  )

◆ __P() [10/11]

int getc_with_restart __P ( (FILE *)  )

◆ __P() [11/11]

int ungetc_with_restart __P ( (int, FILE *)  )

Variable Documentation

◆ bash_input