YAP 7.1.0
stream_desc

Public Attributes

YAP_Atom name
 
YAP_Term user_name
 
FILE * file
 
char * nbuf
 
size_t nsize
 
struct {
   struct {
      unsigned char *   buf
 
      unsigned char *   ptr
 
      int   left
 
   }   file
 
   memHandle   mem_string
 
   struct {
      int   fd
 
   }   pipe
 
   struct {
      const unsigned char *   buf
 
      const unsigned char *   ptr
 
   }   irl
 
   struct {
      unsigned char *   buf
 
      unsigned char *   ptr
 
   }   w_irl
 
   void *   private_data
 
u
 
struct {
   bool   on
 
   int   ch
 
   intptr_t   pos
 
   intptr_t   line
 
   intptr_t   lpos
 
buf
 
YAP_Int charcount
 
YAP_Int linecount
 
YAP_Int linestart
 
stream_flags_t status
 
int(* stream_putc )(int, int)
 
int(* stream_wputc )(int, wchar_t)
 function the stream uses for writing a single octet More...
 
int(* stream_getc )(int)
 function the stream uses for writing a character More...
 
int(* stream_wgetc )(int)
 function the stream uses for reading an octet More...
 
struct vfsvfs
 function the stream uses for reading a character More...
 
void * vfs_handle
 stream belongs to a space More...
 
int(* stream_wgetc_for_read )(int)
 direct handle to stream in that space More...
 
int(* stream_peek )(int)
 function the stream uses for parser More...
 
int(* stream_wpeek )(int)
 check if the next character is available More...
 
encoding_t encoding
 check if the next wide character is available More...
 
Atom name
 
Term user_name
 
union {
   struct {
      unsigned char *   buf
 
      unsigned char *   ptr
 
      int   left
 
   }   file
 
   memHandle   mem_string
 
   struct {
      int   fd
 
   }   pipe
 
   struct {
      const unsigned char *   buf
 
      const unsigned char *   ptr
 
   }   irl
 
u
 
Int charcount
 
Int linecount
 
Int linestart
 

Detailed Description

Definition at line 209 of file YapStreams.h.

Member Data Documentation

◆ buf [1/2]

unsigned char* buf

Definition at line 219 of file YapStreams.h.

◆ buf [2/2]

const unsigned char* buf

Definition at line 234 of file YapStreams.h.

◆ ch

int ch

Definition at line 243 of file YapStreams.h.

◆ charcount [1/2]

YAP_Int charcount

Definition at line 247 of file YapStreams.h.

◆ charcount [2/2]

Int charcount

Definition at line 60 of file stream.h.

◆ encoding

encoding_t encoding

check if the next wide character is available

Definition at line 265 of file YapStreams.h.

◆ fd

int fd

Definition at line 224 of file YapStreams.h.

◆ file

FILE * file

Definition at line 212 of file YapStreams.h.

◆ left

int left

Definition at line 220 of file YapStreams.h.

◆ line

intptr_t line

Definition at line 244 of file YapStreams.h.

◆ linecount [1/2]

YAP_Int linecount

Definition at line 247 of file YapStreams.h.

◆ linecount [2/2]

Int linecount

Definition at line 60 of file stream.h.

◆ linestart [1/2]

YAP_Int linestart

Definition at line 247 of file YapStreams.h.

◆ linestart [2/2]

Int linestart

Definition at line 60 of file stream.h.

◆ lpos

intptr_t lpos

Definition at line 244 of file YapStreams.h.

◆ mem_string

memHandle mem_string

Definition at line 222 of file YapStreams.h.

◆ name [1/2]

YAP_Atom name

Definition at line 210 of file YapStreams.h.

◆ name [2/2]

Atom name

Definition at line 32 of file stream.h.

◆ nbuf

char * nbuf

Definition at line 214 of file YapStreams.h.

◆ nsize

size_t nsize

Definition at line 215 of file YapStreams.h.

◆ on

bool on

Definition at line 242 of file YapStreams.h.

◆ pos

intptr_t pos

Definition at line 244 of file YapStreams.h.

◆ private_data

void* private_data

Definition at line 239 of file YapStreams.h.

◆ ptr [1/2]

unsigned char * ptr

Definition at line 219 of file YapStreams.h.

◆ ptr [2/2]

const unsigned char * ptr

Definition at line 234 of file YapStreams.h.

◆ status

stream_flags_t status

Definition at line 248 of file YapStreams.h.

◆ stream_getc

int(* stream_getc)(int)

function the stream uses for writing a character

Definition at line 256 of file YapStreams.h.

◆ stream_peek

int(* stream_peek) (int)

function the stream uses for parser

It may be different from above if the ISO character conversion is on

Definition at line 263 of file YapStreams.h.

◆ stream_putc

int(* stream_putc)(int, int)

Definition at line 252 of file YapStreams.h.

◆ stream_wgetc

int(* stream_wgetc)(int)

function the stream uses for reading an octet

Definition at line 257 of file YapStreams.h.

◆ stream_wgetc_for_read

int(* stream_wgetc_for_read)(int)

direct handle to stream in that space

Definition at line 261 of file YapStreams.h.

◆ stream_wpeek

int(* stream_wpeek) (int)

check if the next character is available

Definition at line 264 of file YapStreams.h.

◆ stream_wputc

int(* stream_wputc)(int, wchar_t)

function the stream uses for writing a single octet

Definition at line 254 of file YapStreams.h.

◆ user_name [1/2]

YAP_Term user_name

Definition at line 211 of file YapStreams.h.

◆ user_name [2/2]

Term user_name

Definition at line 33 of file stream.h.

◆ vfs

struct vfs * vfs

function the stream uses for reading a character

Definition at line 259 of file YapStreams.h.

◆ vfs_handle

void * vfs_handle

stream belongs to a space

Definition at line 260 of file YapStreams.h.


The documentation for this struct was generated from the following files: