FreeBASIC  0.91.0
fb_print.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FB_PRINT_NEWLINE   0x00000001
 
#define FB_PRINT_PAD   0x00000002
 
#define FB_PRINT_BIN_NEWLINE   0x00000004
 
#define FB_PRINT_FORCE_ADJUST
 
#define FB_PRINT_APPEND_SPACE   0x00000010
 
#define FB_PRINT_ISLAST   0x80000000 /* only for USING */
 
#define FB_PRINT_HLMASK   0x00000003
 
#define FB_PRINT_EX(handle, s, len, mask)   fb_hFilePrintBufferEx( handle, s, len )
 
#define FB_PRINT(fnum, s, mask)   FB_PRINT_EX( FB_FILE_TO_HANDLE(fnum), s, strlen(s), 0 )
 
#define FB_PRINTWSTR_EX(handle, s, len, mask)   fb_hFilePrintBufferWstrEx( handle, s, len )
 
#define FB_PRINTWSTR(fnum, s, mask)   FB_PRINTWSTR_EX( FB_FILE_TO_HANDLE(fnum), s, fb_wstr_len(s), 0 )
 
#define FB_PRINTNUM_EX(handle, val, mask, fmt, type)
 
#define FB_PRINTNUM(fnum, val, mask, fmt, type)   FB_PRINTNUM_EX( FB_FILE_TO_HANDLE(fnum), val, mask, fmt, type )
 
#define FB_WRITENUM_EX(handle, val, mask, type)
 
#define FB_WRITENUM(fnum, val, mask, type)   FB_WRITENUM_EX(FB_FILE_TO_HANDLE(fnum), val, mask, type)
 

Functions

static __inline__ int FB_PRINT_CONVERT_BIN_NEWLINE (int mask)
 
FBCALL void fb_PrintBuffer (const char *s, int mask)
 
FBCALL void fb_PrintBufferEx (const void *buffer, size_t len, int mask)
 
FBCALL void fb_PrintBufferWstrEx (const FB_WCHAR *buffer, size_t len, int mask)
 
FBCALL void fb_PrintPad (int fnum, int mask)
 
void fb_PrintPadEx (FB_FILE *handle, int mask)
 
FBCALL void fb_PrintPadWstr (int fnum, int mask)
 
void fb_PrintPadWstrEx (FB_FILE *handle, int mask)
 
FBCALL void fb_PrintVoid (int fnum, int mask)
 
void fb_PrintVoidEx (FB_FILE *handle, int mask)
 
FBCALL void fb_PrintVoidWstr (int fnum, int mask)
 
void fb_PrintVoidWstrEx (FB_FILE *handle, int mask)
 
FBCALL void fb_PrintByte (int fnum, char val, int mask)
 
FBCALL void fb_PrintUByte (int fnum, unsigned char val, int mask)
 
FBCALL void fb_PrintShort (int fnum, short val, int mask)
 
FBCALL void fb_PrintUShort (int fnum, unsigned short val, int mask)
 
FBCALL void fb_PrintInt (int fnum, int val, int mask)
 
FBCALL void fb_PrintUInt (int fnum, unsigned int val, int mask)
 
FBCALL void fb_PrintLongint (int fnum, long long val, int mask)
 
FBCALL void fb_PrintULongint (int fnum, unsigned long long val, int mask)
 
FBCALL void fb_PrintSingle (int fnum, float val, int mask)
 
FBCALL void fb_PrintDouble (int fnum, double val, int mask)
 
FBCALL void fb_PrintString (int fnum, FBSTRING *s, int mask)
 
void fb_PrintStringEx (FB_FILE *handle, FBSTRING *s, int mask)
 
FBCALL void fb_PrintWstr (int fnum, const FB_WCHAR *s, int mask)
 
void fb_PrintWstrEx (FB_FILE *handle, const FB_WCHAR *s, int mask)
 
FBCALL void fb_PrintFixString (int fnum, const char *s, int mask)
 
void fb_PrintFixStringEx (FB_FILE *handle, const char *s, int mask)
 
FBCALL int fb_LPos (int printer_index)
 
int fb_LPrintInit (void)
 
FBCALL void fb_LPrintVoid (int fnum, int mask)
 
FBCALL void fb_LPrintByte (int fnum, char val, int mask)
 
FBCALL void fb_LPrintUByte (int fnum, unsigned char val, int mask)
 
FBCALL void fb_LPrintShort (int fnum, short val, int mask)
 
FBCALL void fb_LPrintUShort (int fnum, unsigned short val, int mask)
 
FBCALL void fb_LPrintInt (int fnum, int val, int mask)
 
FBCALL void fb_LPrintUInt (int fnum, unsigned int val, int mask)
 
FBCALL void fb_LPrintLongint (int fnum, long long val, int mask)
 
FBCALL void fb_LPrintULongint (int fnum, unsigned long long val, int mask)
 
FBCALL void fb_LPrintSingle (int fnum, float val, int mask)
 
FBCALL void fb_LPrintDouble (int fnum, double val, int mask)
 
FBCALL void fb_LPrintString (int fnum, FBSTRING *s, int mask)
 
FBCALL void fb_LPrintWstr (int fnum, const FB_WCHAR *s, int mask)
 
FBCALL void fb_PrintTab (int fnum, int newcol)
 
FBCALL void fb_PrintSPC (int fnum, ssize_t n)
 
FBCALL void fb_WriteVoid (int fnum, int mask)
 
FBCALL void fb_WriteByte (int fnum, char val, int mask)
 
FBCALL void fb_WriteUByte (int fnum, unsigned char val, int mask)
 
FBCALL void fb_WriteShort (int fnum, short val, int mask)
 
FBCALL void fb_WriteUShort (int fnum, unsigned short val, int mask)
 
FBCALL void fb_WriteInt (int fnum, int val, int mask)
 
FBCALL void fb_WriteUInt (int fnum, unsigned int val, int mask)
 
FBCALL void fb_WriteLongint (int fnum, long long val, int mask)
 
FBCALL void fb_WriteULongint (int fnum, unsigned long long val, int mask)
 
FBCALL void fb_WriteSingle (int fnum, float val, int mask)
 
FBCALL void fb_WriteDouble (int fnum, double val, int mask)
 
FBCALL void fb_WriteString (int fnum, FBSTRING *s, int mask)
 
FBCALL void fb_WriteWstr (int fnum, FB_WCHAR *s, int mask)
 
FBCALL void fb_WriteFixString (int fnum, char *s, int mask)
 
FBCALL int fb_PrintUsingInit (FBSTRING *fmtstr)
 
FBCALL int fb_PrintUsingStr (int fnum, FBSTRING *s, int mask)
 
FBCALL int fb_PrintUsingWstr (int fnum, FB_WCHAR *s, int mask)
 
FBCALL int fb_PrintUsingSingle (int fnum, float value_f, int mask)
 
FBCALL int fb_PrintUsingDouble (int fnum, double value, int mask)
 
FBCALL int fb_PrintUsingLongint (int fnum, long long val_ll, int mask)
 
FBCALL int fb_PrintUsingULongint (int fnum, unsigned long long value_ull, int mask)
 
FBCALL int fb_PrintUsingEnd (int fnum)
 
FBCALL int fb_LPrintUsingInit (FBSTRING *fmtstr)
 

Macro Definition Documentation

#define FB_PRINT (   fnum,
  s,
  mask 
)    FB_PRINT_EX( FB_FILE_TO_HANDLE(fnum), s, strlen(s), 0 )

Definition at line 29 of file fb_print.h.

#define FB_PRINT_APPEND_SPACE   0x00000010

Definition at line 8 of file fb_print.h.

#define FB_PRINT_BIN_NEWLINE   0x00000004

Definition at line 3 of file fb_print.h.

#define FB_PRINT_EX (   handle,
  s,
  len,
  mask 
)    fb_hFilePrintBufferEx( handle, s, len )

Definition at line 26 of file fb_print.h.

#define FB_PRINT_FORCE_ADJUST
Value:
0x00000008 /* Enforce position adjustment
* when last character in screen
* buffer gets handles in a special
* way */

Definition at line 4 of file fb_print.h.

#define FB_PRINT_HLMASK   0x00000003

Definition at line 24 of file fb_print.h.

#define FB_PRINT_ISLAST   0x80000000 /* only for USING */

Definition at line 9 of file fb_print.h.

#define FB_PRINT_NEWLINE   0x00000001

Definition at line 1 of file fb_print.h.

#define FB_PRINT_PAD   0x00000002

Definition at line 2 of file fb_print.h.

#define FB_PRINTNUM (   fnum,
  val,
  mask,
  fmt,
  type 
)    FB_PRINTNUM_EX( FB_FILE_TO_HANDLE(fnum), val, mask, fmt, type )

Definition at line 66 of file fb_print.h.

#define FB_PRINTNUM_EX (   handle,
  val,
  mask,
  fmt,
  type 
)
Value:
do { \
char buffer[80]; \
size_t len; \
if( mask & FB_PRINT_BIN_NEWLINE ) \
len = sprintf( buffer, fmt type " " FB_BINARY_NEWLINE, val ); \
else if( mask & FB_PRINT_NEWLINE ) \
len = sprintf( buffer, fmt type " " FB_NEWLINE, val ); \
else \
len = sprintf( buffer, fmt type " ", val ); \
} else { \
if( mask & FB_PRINT_BIN_NEWLINE ) \
len = sprintf( buffer, fmt type FB_BINARY_NEWLINE, val ); \
else if( mask & FB_PRINT_NEWLINE ) \
len = sprintf( buffer, fmt type FB_NEWLINE, val ); \
else \
len = sprintf( buffer, fmt type, val ); \
} \
FB_PRINT_EX( handle, buffer, len, mask ); \
if( mask & FB_PRINT_PAD ) \
fb_PrintPadEx ( handle, mask ); \
\
} while (0)

Definition at line 38 of file fb_print.h.

#define FB_PRINTWSTR (   fnum,
  s,
  mask 
)    FB_PRINTWSTR_EX( FB_FILE_TO_HANDLE(fnum), s, fb_wstr_len(s), 0 )

Definition at line 35 of file fb_print.h.

#define FB_PRINTWSTR_EX (   handle,
  s,
  len,
  mask 
)    fb_hFilePrintBufferWstrEx( handle, s, len )

Definition at line 32 of file fb_print.h.

#define FB_WRITENUM (   fnum,
  val,
  mask,
  type 
)    FB_WRITENUM_EX(FB_FILE_TO_HANDLE(fnum), val, mask, type)

Definition at line 84 of file fb_print.h.

#define FB_WRITENUM_EX (   handle,
  val,
  mask,
  type 
)
Value:
do { \
char buffer[80]; \
size_t len; \
len = sprintf( buffer, type FB_BINARY_NEWLINE, val ); \
else if( mask & FB_PRINT_NEWLINE ) \
len = sprintf( buffer, type FB_NEWLINE, val ); \
else \
len = sprintf( buffer, type ",", val ); \
fb_hFilePrintBufferEx( handle, buffer, len ); \
} while (0)

Definition at line 69 of file fb_print.h.

Function Documentation

FBCALL int fb_LPos ( int  printer_index)

Definition at line 6 of file io_lpos.c.

Here is the call graph for this function:

FBCALL void fb_LPrintByte ( int  fnum,
char  val,
int  mask 
)

Definition at line 6 of file io_lprint_byte.c.

Here is the call graph for this function:

FBCALL void fb_LPrintDouble ( int  fnum,
double  val,
int  mask 
)

Definition at line 17 of file io_lprint_fp.c.

Here is the call graph for this function:

int fb_LPrintInit ( void  )

Definition at line 20 of file file_openlpt.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_LPrintInt ( int  fnum,
int  val,
int  mask 
)

Definition at line 6 of file io_lprint_int.c.

Here is the call graph for this function:

FBCALL void fb_LPrintLongint ( int  fnum,
long long  val,
int  mask 
)

Definition at line 6 of file io_lprint_longint.c.

Here is the call graph for this function:

FBCALL void fb_LPrintShort ( int  fnum,
short  val,
int  mask 
)

Definition at line 6 of file io_lprint_short.c.

Here is the call graph for this function:

FBCALL void fb_LPrintSingle ( int  fnum,
float  val,
int  mask 
)

Definition at line 6 of file io_lprint_fp.c.

Here is the call graph for this function:

FBCALL void fb_LPrintString ( int  fnum,
FBSTRING s,
int  mask 
)

Definition at line 6 of file io_lprint_str.c.

Here is the call graph for this function:

FBCALL void fb_LPrintUByte ( int  fnum,
unsigned char  val,
int  mask 
)

Definition at line 14 of file io_lprint_byte.c.

Here is the call graph for this function:

FBCALL void fb_LPrintUInt ( int  fnum,
unsigned int  val,
int  mask 
)

Definition at line 14 of file io_lprint_int.c.

Here is the call graph for this function:

FBCALL void fb_LPrintULongint ( int  fnum,
unsigned long long  val,
int  mask 
)

Definition at line 14 of file io_lprint_longint.c.

Here is the call graph for this function:

FBCALL void fb_LPrintUShort ( int  fnum,
unsigned short  val,
int  mask 
)

Definition at line 14 of file io_lprint_short.c.

Here is the call graph for this function:

FBCALL int fb_LPrintUsingInit ( FBSTRING fmtstr)

Definition at line 6 of file io_lprintusg.c.

Here is the call graph for this function:

FBCALL void fb_LPrintVoid ( int  fnum,
int  mask 
)

Definition at line 6 of file io_lprintvoid.c.

Here is the call graph for this function:

FBCALL void fb_LPrintWstr ( int  fnum,
const FB_WCHAR s,
int  mask 
)

Definition at line 7 of file io_lprint_wstr.c.

Here is the call graph for this function:

static __inline__ int FB_PRINT_CONVERT_BIN_NEWLINE ( int  mask)
static

Definition at line 14 of file fb_print.h.

Here is the caller graph for this function:

FBCALL void fb_PrintBuffer ( const char *  s,
int  mask 
)

Definition at line 20 of file hook_printstr.c.

Here is the call graph for this function:

FBCALL void fb_PrintBufferEx ( const void *  buffer,
size_t  len,
int  mask 
)

Definition at line 6 of file hook_printstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintBufferWstrEx ( const FB_WCHAR buffer,
size_t  len,
int  mask 
)

Definition at line 6 of file hook_print_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintByte ( int  fnum,
char  val,
int  mask 
)

Definition at line 6 of file io_print_byte.c.

FBCALL void fb_PrintDouble ( int  fnum,
double  val,
int  mask 
)

Definition at line 11 of file io_print_fp.c.

Here is the call graph for this function:

FBCALL void fb_PrintFixString ( int  fnum,
const char *  s,
int  mask 
)

Definition at line 25 of file io_print_fix.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_PrintFixStringEx ( FB_FILE handle,
const char *  s,
int  mask 
)

Definition at line 16 of file io_print_fix.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintInt ( int  fnum,
int  val,
int  mask 
)

Definition at line 6 of file io_print_int.c.

FBCALL void fb_PrintLongint ( int  fnum,
long long  val,
int  mask 
)

Definition at line 6 of file io_print_longint.c.

FBCALL void fb_PrintPad ( int  fnum,
int  mask 
)

Definition at line 58 of file io_printpad.c.

Here is the call graph for this function:

void fb_PrintPadEx ( FB_FILE handle,
int  mask 
)

Definition at line 28 of file io_printpad.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintPadWstr ( int  fnum,
int  mask 
)

Definition at line 82 of file io_printpad_wstr.c.

Here is the call graph for this function:

void fb_PrintPadWstrEx ( FB_FILE handle,
int  mask 
)

Definition at line 46 of file io_printpad_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintShort ( int  fnum,
short  val,
int  mask 
)

Definition at line 6 of file io_print_short.c.

FBCALL void fb_PrintSingle ( int  fnum,
float  val,
int  mask 
)

Definition at line 5 of file io_print_fp.c.

Here is the call graph for this function:

FBCALL void fb_PrintSPC ( int  fnum,
ssize_t  n 
)

Definition at line 81 of file io_spc.c.

Here is the call graph for this function:

FBCALL void fb_PrintString ( int  fnum,
FBSTRING s,
int  mask 
)

Definition at line 34 of file io_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_PrintStringEx ( FB_FILE handle,
FBSTRING s,
int  mask 
)

Definition at line 22 of file io_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintTab ( int  fnum,
int  newcol 
)

Definition at line 5 of file io_spc.c.

Here is the call graph for this function:

FBCALL void fb_PrintUByte ( int  fnum,
unsigned char  val,
int  mask 
)

Definition at line 12 of file io_print_byte.c.

FBCALL void fb_PrintUInt ( int  fnum,
unsigned int  val,
int  mask 
)

Definition at line 12 of file io_print_int.c.

FBCALL void fb_PrintULongint ( int  fnum,
unsigned long long  val,
int  mask 
)

Definition at line 12 of file io_print_longint.c.

FBCALL void fb_PrintUShort ( int  fnum,
unsigned short  val,
int  mask 
)

Definition at line 12 of file io_print_short.c.

FBCALL int fb_PrintUsingDouble ( int  fnum,
double  value,
int  mask 
)

Definition at line 1387 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingEnd ( int  fnum)

Definition at line 134 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingInit ( FBSTRING fmtstr)

Definition at line 117 of file io_printusg.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_PrintUsingLongint ( int  fnum,
long long  val_ll,
int  mask 
)

Definition at line 1464 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingSingle ( int  fnum,
float  value_f,
int  mask 
)

Definition at line 1423 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingStr ( int  fnum,
FBSTRING s,
int  mask 
)

Definition at line 305 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingULongint ( int  fnum,
unsigned long long  value_ull,
int  mask 
)

Definition at line 1459 of file io_printusg.c.

Here is the call graph for this function:

FBCALL int fb_PrintUsingWstr ( int  fnum,
FB_WCHAR s,
int  mask 
)

Definition at line 431 of file io_printusg.c.

Here is the call graph for this function:

FBCALL void fb_PrintVoid ( int  fnum,
int  mask 
)

Definition at line 30 of file io_printvoid.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_PrintVoidEx ( FB_FILE handle,
int  mask 
)

Definition at line 6 of file io_printvoid.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintVoidWstr ( int  fnum,
int  mask 
)

Definition at line 34 of file io_printvoid_wstr.c.

Here is the call graph for this function:

void fb_PrintVoidWstrEx ( FB_FILE handle,
int  mask 
)

Definition at line 7 of file io_printvoid_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_PrintWstr ( int  fnum,
const FB_WCHAR s,
int  mask 
)

Definition at line 42 of file io_print_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_PrintWstrEx ( FB_FILE handle,
const FB_WCHAR s,
int  mask 
)

Definition at line 28 of file io_print_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_WriteByte ( int  fnum,
char  val,
int  mask 
)

Definition at line 6 of file io_writebyte.c.

FBCALL void fb_WriteDouble ( int  fnum,
double  val,
int  mask 
)

Definition at line 24 of file io_writefloat.c.

Here is the call graph for this function:

FBCALL void fb_WriteFixString ( int  fnum,
char *  s,
int  mask 
)

Definition at line 60 of file io_writestr.c.

Here is the call graph for this function:

FBCALL void fb_WriteInt ( int  fnum,
int  val,
int  mask 
)

Definition at line 6 of file io_writeint.c.

FBCALL void fb_WriteLongint ( int  fnum,
long long  val,
int  mask 
)

Definition at line 6 of file io_writelongint.c.

FBCALL void fb_WriteShort ( int  fnum,
short  val,
int  mask 
)

Definition at line 6 of file io_writeshort.c.

FBCALL void fb_WriteSingle ( int  fnum,
float  val,
int  mask 
)

Definition at line 6 of file io_writefloat.c.

Here is the call graph for this function:

FBCALL void fb_WriteString ( int  fnum,
FBSTRING s,
int  mask 
)

Definition at line 40 of file io_writestr.c.

Here is the call graph for this function:

FBCALL void fb_WriteUByte ( int  fnum,
unsigned char  val,
int  mask 
)

Definition at line 12 of file io_writebyte.c.

FBCALL void fb_WriteUInt ( int  fnum,
unsigned int  val,
int  mask 
)

Definition at line 12 of file io_writeint.c.

FBCALL void fb_WriteULongint ( int  fnum,
unsigned long long  val,
int  mask 
)

Definition at line 12 of file io_writelongint.c.

FBCALL void fb_WriteUShort ( int  fnum,
unsigned short  val,
int  mask 
)

Definition at line 12 of file io_writeshort.c.

FBCALL void fb_WriteVoid ( int  fnum,
int  mask 
)

Definition at line 6 of file io_writevoid.c.

FBCALL void fb_WriteWstr ( int  fnum,
FB_WCHAR s,
int  mask 
)

Definition at line 5 of file io_write_wstr.c.

Here is the call graph for this function: