About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cfuncs.h File Reference
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for cfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define STRINGS_H
#define Static   static
#define Local   static
#define SHORT_MAX   65535
#define FileNotFound   10
#define FileWriteError   38
#define _FNSIZE   120
#define false   0
#define true   1
#define vextern   extern


typedef char Char
typedef void Void
typedef unsigned boolean


int _EscIO (int)
int _EscIO2 (int errorcode, char *filename)
int _Escape (int)
int P_eof (FILE *)
int _SETIO (int, int)
void PASCAL_MAIN (int, char **)
void scan1 (char *s, short p, short *n)
boolean startsWith (char *s1, char *s2)
short pos1 (char c, char *s)
short posNot (char c, char *s)
void insertChar (char c, char *s, short p)
char * substr_ (char *Result, char *s, short start, short count)
void getNum (char *line, short *k)
void getTwoNums (char *line, short *k1, short *k2)
void toUpper (char *s)
void delete1 (char *s, short p)
void predelete (char *s, short l)
void shorten (char *s, short new_length)
short strpos2 (char *s1, char *s2, short p)
short nextWordBound (char *s, char trigger, short p)


int P_argc
int P_ioresult
char ** P_argv

Macro Definition Documentation


#define _FNSIZE   120

Definition at line 28 of file cfuncs.h.

◆ false

#define false   0

Definition at line 32 of file cfuncs.h.

◆ FileNotFound

#define FileNotFound   10

Definition at line 13 of file cfuncs.h.

◆ FileWriteError

#define FileWriteError   38

Definition at line 14 of file cfuncs.h.

◆ Local

#define Local   static

Definition at line 10 of file cfuncs.h.


#define SHORT_MAX   65535

Definition at line 11 of file cfuncs.h.

◆ Static

#define Static   static

Definition at line 9 of file cfuncs.h.


#define STRINGS_H

Definition at line 6 of file cfuncs.h.

◆ true

#define true   1

Definition at line 33 of file cfuncs.h.

◆ vextern

#define vextern   extern

Definition at line 49 of file cfuncs.h.

Typedef Documentation

◆ boolean

typedef unsigned boolean

Definition at line 31 of file cfuncs.h.

◆ Char

typedef char Char

Definition at line 7 of file cfuncs.h.

◆ Void

typedef void Void

Definition at line 8 of file cfuncs.h.

Function Documentation

◆ _Escape()

◆ _EscIO()

int _EscIO ( int  errorcode)

Definition at line 10 of file cfuncs.c.

References _Escape(), _EscIO2(), code, and P_ioresult.

◆ _EscIO2()

int _EscIO2 ( int  errorcode,
char *  filename 

Definition at line 7 of file cfuncs.c.

References __top_jb, _Escape(), _ShowEscape(), buf, code, exit(), EXIT_FAILURE, filename, fprintf, name, P_escapecode, and P_ioresult.

Referenced by _EscIO(), and error().

◆ _SETIO()

int _SETIO ( int  OK,
int  errorcode 

Definition at line 13 of file cfuncs.c.

References OK, and P_ioresult.

◆ delete1()

◆ getNum()

◆ getTwoNums()

void getTwoNums ( char *  line,
short *  k1,
short *  k2 

Definition at line 63 of file cfuncs.c.

References k1, param, and sscanf().

Referenced by interpretCommands(), readMeter(), and setOnly().

◆ insertChar()

void insertChar ( char  c,
char *  s,
short  p 

Definition at line 77 of file cfuncs.c.

References c, p, s, and cordic::x.

Referenced by addDuration(), checkSticky(), delins(), insertOctaveCode(), markDebeamed(), and processOther().

◆ nextWordBound()

short nextWordBound ( char *  s,
char  trigger,
short  p 

Definition at line 97 of file cfuncs.c.

References p, s, and strlen().

Referenced by appendToLine().

◆ P_eof()

int P_eof ( FILE infile)

Definition at line 14 of file cfuncs.c.

References ch, EOF, f, feof, fgetc, fileno, getc, infile, isatty, ungetc, and cordic::x.

Referenced by eofCurrent(), and readStyles().


void PASCAL_MAIN ( int  npars,
char **  pars 

Definition at line 23 of file cfuncs.c.

References __top_jb, argc, argv, NULL, P_argc, and P_argv.

Referenced by main().

◆ pos1()

◆ posNot()

short posNot ( char  c,
char *  s 

Definition at line 50 of file cfuncs.c.

References c, and s.

Referenced by trim().

◆ predelete()

◆ scan1()

void scan1 ( char *  s,
short  p,
short *  n 

Definition at line 26 of file cfuncs.c.

References n, p, s, and sscanf().

Referenced by processLine(), and processUsual().

◆ shorten()

void shorten ( char *  s,
short  new_length 

Definition at line 46 of file cfuncs.c.

References s.

◆ startsWith()

boolean startsWith ( char *  s1,
char *  s2 

◆ strpos2()

short strpos2 ( char *  s1,
char *  s2,
short  p 

Definition at line 91 of file cfuncs.c.

References NULL, p, r, s1, s2, and strstr().

Referenced by setRange().

◆ substr_()

char* substr_ ( char *  Result,
char *  s,
short  start,
short  count 

◆ toUpper()

void toUpper ( char *  s)

Definition at line 68 of file cfuncs.c.

References s, and toupper().

Referenced by demoCaseMapInCPlusPlus(), equalsIgnoreCase(), OpenFiles(), and startsWithIgnoreCase().

Variable Documentation

◆ P_argc

int P_argc

Definition at line 4 of file cfuncs.c.

◆ P_argv

char** P_argv

Definition at line 5 of file cfuncs.c.

◆ P_ioresult

int P_ioresult

Definition at line 6 of file cfuncs.c.