Tscope5
Functions | Variables
textio_internal.c File Reference

Definitions of internal text input/output functions. More...

Go to the source code of this file.

Functions

void ts5_check_textio (char *calling_function)
 Do some checks at the start of each textio function. More...
 
void ts5_install_textio (char *calling_function)
 Install the textio subsystem. More...
 
void ts5_uninstall_textio ()
 Uninstall the textio subsystem. More...
 

Variables

int _ts5_is_textio_installed = 0
 Is the textio subsystem installed? More...
 

Detailed Description

Definitions of internal text input/output functions.

Definition in file textio_internal.c.

Function Documentation

void ts5_check_textio ( char *  calling_function)

Do some checks at the start of each textio function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the textio subsystem is installed. If not, the textio subsystem is installed.

Checks whether the drawing target is null. If null, the program is aborted.

Checks wheter a font is loaded. If not, a font is loaded.

The font files are looked for in the following places (in this order):

  • the program directory
  • the fonts subdirectory of the program directory
  • /usr/local/share/tscope_data

Definition at line 43 of file textio_internal.c.

void ts5_install_textio ( char *  calling_function)

Install the textio subsystem.

Parameters
calling_functionName the function that calls for this check or installation.

This function is called automatically if necessary.

Definition at line 194 of file textio_internal.c.

void ts5_uninstall_textio ( )

Uninstall the textio subsystem.

This function is called automatically at the end of the program.

Definition at line 227 of file textio_internal.c.

Variable Documentation

int _ts5_is_textio_installed = 0

Is the textio subsystem installed?

Definition at line 22 of file textio_internal.c.