w32tex
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)  

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

Go to the source code of this file.

Macros

#define vextern   extern
 
#define PMXlinelength   128
 
#define lines_in_paragraph   100
 
#define max_words   128
 
#define max_notes   128
 
#define max_bars   16
 
#define maxstaves   15
 
#define maxvoices   15
 
#define maxgroups   3
 
#define standardPMXvoices   12
 
#define max_lyrics_line_length   (PMXlinelength - 4)
 
#define inf   32000
 
#define unspec   1000
 
#define default_size   20
 
#define start_beam   '['
 
#define stop_beam   ']'
 
#define rest   'r'
 
#define pause   "rp"
 
#define dotcode   'd'
 
#define grace_group   'G'
 
#define multi_group   'x'
 
#define barsym   '|'
 
#define comment   '%'
 
#define blank   ' '
 
#define dot   '.'
 
#define comma   ','
 
#define colon   ':'
 
#define tilde   '~'
 
#define dummy   '\0'
 
#define ndurs   8
 
#define unspecified   '5' /* Not a valid duration */
 
#define whole   2 /* position of '0' in durations */
 
#define digits   "123456789"
 
#define digitsdot   "0123456789."
 
#define putspace   true
 
#define nospace   false
 
#define print   true
 

Typedefs

typedef char paragraph_index
 
typedef char voice_index
 
typedef char stave_index
 
typedef char bar_index0
 
typedef uchar word_index0
 
typedef char paragraph_index0
 
typedef char voice_index0
 
typedef char stave_index0
 
typedef Char paragraph[100][256]
 
typedef short line_nos[100]
 

Functions

void error (Char *message, boolean printLine)
 
void fatalerror (Char *message)
 
void warning (Char *message, boolean printLine)
 
short PMXinstr (short stave)
 
void setDefaultDuration (short meterdenom)
 
void getMeter (Char *line, short *meternum, short *meterdenom, short *pmnum, short *pmdenom)
 
void setSpace (Char *line)
 
CharmeterChange (Char *Result, short n1, short n2, boolean blind)
 
CharmeterWord (Char *Result, short num, short denom, short pnum, short pdenom)
 
void cancel (short *num, short *denom, short lowest)
 
boolean isNoteOrRest (Char *w)
 
boolean isPause (Char *note)
 
short PMXmeterdenom (short denom)
 

Variables

Char double_comment [3]
 
Char durations [8+1]
 
Char terminators [256]
 
Char has_duration [9]
 
Char solfa_names [8]
 
Char choice
 
boolean outfile_open
 
Char texdir [256]
 
Char old_meter_word [256]
 
short outlen
 
boolean ignore_input
 
Char voice_label [15][256]
 
Char clef [15]
 
voice_index0 instr [15]
 
voice_index0 stave [15]
 
voice_index0 first_on_stave [15]
 
voice_index0 number_on_stave [15]
 
short stave_size [15]
 
short nspace [15+1]
 
voice_index0 nvoices
 
voice_index0 nstaves
 
voice_index0 ninstr
 
voice_index0 bottom
 
voice_index0 top
 
short one_beat
 
short full_bar
 
short line_no
 
short short_note
 
short musicsize
 
short meternum
 
short meterdenom
 
short pmnum
 
short pmdenom
 
short paragraph_no
 
short bar_no
 
short pickup
 
short nbars
 
short nleft
 
paragraph_index0 para_len
 
double xmtrnum0
 
paragraph P
 
paragraph orig_P
 
line_nos orig_line_no
 
FILEinfile
 
FILEoutfile
 
FILEstylefile
 
Char default_duration
 
Char fracindent [256]
 
Char this_version [256]
 
Char this_version_date [256]
 
Char multi_bar_rest [256]
 
boolean pmx_preamble_done
 
boolean first_paragraph
 
boolean final_paragraph
 
boolean must_respace
 
boolean must_restyle
 
boolean some_vocal
 
Char infile_NAME [_FNSIZE]
 
Char outfile_NAME [_FNSIZE]
 
Char stylefile_NAME [_FNSIZE]
 

Macro Definition Documentation

◆ barsym

#define barsym   '|'

Definition at line 53 of file globals.h.

◆ blank

#define blank   ' '

Definition at line 55 of file globals.h.

◆ colon

#define colon   ':'

Definition at line 58 of file globals.h.

◆ comma

#define comma   ','

Definition at line 57 of file globals.h.

◆ comment

#define comment   '%'

Definition at line 54 of file globals.h.

◆ default_size

#define default_size   20

Definition at line 42 of file globals.h.

◆ digits

#define digits   "123456789"

Definition at line 68 of file globals.h.

◆ digitsdot

#define digitsdot   "0123456789."

Definition at line 69 of file globals.h.

◆ dot

#define dot   '.'

Definition at line 56 of file globals.h.

◆ dotcode

#define dotcode   'd'

Definition at line 50 of file globals.h.

◆ dummy

#define dummy   '\0'

Definition at line 60 of file globals.h.

◆ grace_group

#define grace_group   'G'

Definition at line 51 of file globals.h.

◆ inf

#define inf   32000

Definition at line 40 of file globals.h.

◆ lines_in_paragraph

#define lines_in_paragraph   100

Definition at line 24 of file globals.h.

◆ max_bars

#define max_bars   16

Definition at line 32 of file globals.h.

◆ max_lyrics_line_length

#define max_lyrics_line_length   (PMXlinelength - 4)

Definition at line 38 of file globals.h.

◆ max_notes

#define max_notes   128

Definition at line 26 of file globals.h.

◆ max_words

#define max_words   128

Definition at line 25 of file globals.h.

◆ maxgroups

#define maxgroups   3

Definition at line 35 of file globals.h.

◆ maxstaves

#define maxstaves   15

Definition at line 33 of file globals.h.

◆ maxvoices

#define maxvoices   15

Definition at line 34 of file globals.h.

◆ multi_group

#define multi_group   'x'

Definition at line 52 of file globals.h.

◆ ndurs

#define ndurs   8

Definition at line 62 of file globals.h.

◆ nospace

#define nospace   false

Definition at line 72 of file globals.h.

◆ pause

#define pause (   void)    "rp"

Definition at line 48 of file globals.h.

◆ PMXlinelength

#define PMXlinelength   128

Definition at line 20 of file globals.h.

◆ print

#define print   true

Definition at line 73 of file globals.h.

◆ putspace

#define putspace   true

Definition at line 71 of file globals.h.

◆ rest

#define rest (   void)    'r'

Definition at line 46 of file globals.h.

◆ standardPMXvoices

#define standardPMXvoices   12

Definition at line 36 of file globals.h.

◆ start_beam

#define start_beam   '['

Definition at line 44 of file globals.h.

◆ stop_beam

#define stop_beam   ']'

Definition at line 45 of file globals.h.

◆ tilde

#define tilde   '~'

Definition at line 59 of file globals.h.

◆ unspec

#define unspec   1000

Definition at line 41 of file globals.h.

◆ unspecified

#define unspecified   '5' /* Not a valid duration */

Definition at line 64 of file globals.h.

◆ vextern

#define vextern   extern

Definition at line 9 of file globals.h.

◆ whole

#define whole   2 /* position of '0' in durations */

Definition at line 66 of file globals.h.

Typedef Documentation

◆ bar_index0

typedef char bar_index0

Definition at line 82 of file globals.h.

◆ line_nos

typedef short line_nos[100]

Definition at line 93 of file globals.h.

◆ paragraph

typedef Char paragraph[100][256]

Definition at line 92 of file globals.h.

◆ paragraph_index

typedef char paragraph_index

Definition at line 76 of file globals.h.

◆ paragraph_index0

typedef char paragraph_index0

Definition at line 86 of file globals.h.

◆ stave_index

typedef char stave_index

Definition at line 80 of file globals.h.

◆ stave_index0

typedef char stave_index0

Definition at line 90 of file globals.h.

◆ voice_index

typedef char voice_index

Definition at line 78 of file globals.h.

◆ voice_index0

typedef char voice_index0

Definition at line 88 of file globals.h.

◆ word_index0

typedef uchar word_index0

Definition at line 84 of file globals.h.

Function Documentation

◆ cancel()

void cancel ( short *  num,
short *  denom,
short  lowest 
)

◆ error()

void error ( Char message,
boolean  printLine 
)

◆ fatalerror()

void fatalerror ( Char message)

◆ getMeter()

void getMeter ( Char line,
short *  meternum,
short *  meterdenom,
short *  pmnum,
short *  pmdenom 
)

◆ isNoteOrRest()

boolean isNoteOrRest ( Char w)

◆ isPause()

boolean isPause ( Char note)

◆ meterChange()

Char* meterChange ( Char Result,
short  n1,
short  n2,
boolean  blind 
)

◆ meterWord()

Char* meterWord ( Char Result,
short  num,
short  denom,
short  pnum,
short  pdenom 
)

◆ PMXinstr()

short PMXinstr ( short  stave)

Definition at line 262 of file globals.c.

References instr, ninstr, and stave.

Referenced by assignLyrics(), doTenorClefs(), extractLyrtag(), and songraise().

◆ PMXmeterdenom()

short PMXmeterdenom ( short  denom)

Definition at line 303 of file globals.c.

Referenced by getMeterChange(), meterChange(), and pmxMeter().

◆ setDefaultDuration()

void setDefaultDuration ( short  meterdenom)

Definition at line 268 of file globals.c.

References default_duration, and meterdenom.

Referenced by interpretCommands().

◆ setSpace()

void setSpace ( Char line)

◆ warning()

void warning ( Char message,
boolean  printLine 
)

Variable Documentation

◆ bar_no

◆ bottom

voice_index0 bottom

Definition at line 114 of file globals.h.

◆ choice

◆ clef

◆ default_duration

Char default_duration
extern

Referenced by setDefaultDuration().

◆ double_comment

Char double_comment[3]
extern

Definition at line 12 of file globals.c.

Referenced by putPMXlines().

◆ durations

Char durations[8+1]
extern

Definition at line 13 of file globals.c.

Referenced by durationCode(), half(), parseNote(), resetDuration(), and rests().

◆ final_paragraph

boolean final_paragraph

Definition at line 126 of file globals.h.

Referenced by doMusic(), musicParagraph(), processOneBar(), and testParagraph().

◆ first_on_stave

voice_index0 first_on_stave[15]

Definition at line 111 of file globals.h.

Referenced by aloneOnStave(), assignLyrics(), reviseLyrics(), and setVoices().

◆ first_paragraph

boolean first_paragraph

Definition at line 126 of file globals.h.

Referenced by doMusic(), musicParagraph(), and TeXtype2().

◆ fracindent

Char fracindent[256]
extern

Definition at line 137 of file pmxab.c.

Referenced by doPMXpreamble(), getset_(), MAIN__(), preambleDefaults(), and setIndent().

◆ full_bar

short full_bar

Definition at line 115 of file globals.h.

Referenced by doMusic(), getMeterChange(), and scanMusic().

◆ has_duration

Char has_duration[9]
extern

Definition at line 15 of file globals.c.

Referenced by extractDotShortcut(), isNoteOrRest(), and translateSolfa().

◆ ignore_input

boolean ignore_input
extern

Definition at line 22 of file globals.c.

Referenced by doMusic(), and readParagraph().

◆ infile

◆ infile_NAME

Char infile_NAME[_FNSIZE]
extern

◆ instr

◆ line_no

◆ meterdenom

◆ meternum

◆ multi_bar_rest

Char multi_bar_rest[256]

◆ musicsize

short musicsize

Definition at line 115 of file globals.h.

Referenced by doPMXpreamble(), MAIN__(), preambleDefaults(), setSize(), and sizecode().

◆ must_respace

boolean must_respace

Definition at line 127 of file globals.h.

Referenced by analyzeParagraph(), doMusic(), musicParagraph(), and respace().

◆ must_restyle

boolean must_restyle

Definition at line 127 of file globals.h.

Referenced by analyzeParagraph(), doMusic(), musicParagraph(), and restyle().

◆ nbars

short nbars

◆ ninstr

voice_index0 ninstr

Definition at line 114 of file globals.h.

◆ nleft

◆ nspace

short nspace[15+1]
extern

◆ nstaves

voice_index0 nstaves

Definition at line 114 of file globals.h.

Referenced by doPMXpreamble(), initLyrics(), MAIN__(), processMBR(), reviseLyrics(), setVoices(), and topfile_().

◆ number_on_stave

voice_index0 number_on_stave[15]

Definition at line 111 of file globals.h.

Referenced by aloneOnStave(), assignLyrics(), companion(), and setVoices().

◆ nvoices

◆ old_meter_word

Char old_meter_word[256]
extern

Definition at line 20 of file globals.c.

Referenced by pmxMeter(), and putMeter().

◆ one_beat

short one_beat
extern

◆ orig_line_no

◆ orig_P

paragraph orig_P

Definition at line 120 of file globals.h.

Referenced by appendToLine(), doMusic(), and error().

◆ outfile

FILE * outfile

Definition at line 122 of file globals.h.

◆ outfile_NAME

Char outfile_NAME[_FNSIZE]
extern

Referenced by error(), and OpenFiles().

◆ outfile_open

boolean outfile_open
extern

Definition at line 18 of file globals.c.

Referenced by error(), and OpenFiles().

◆ outlen

short outlen
extern

◆ P

paragraph P
extern

Referenced by _synctex_post_process(), add_typedef(), addChords(), addUptext(), analyzeParagraph(), appendToLine(), augmentPreamble(), calculate_constant1(), calculate_constant10(), calculate_constant11(), calculate_constant12(), calculate_constant13(), calculate_constant2(), calculate_constant3(), calculate_constant4(), calculate_constant5(), calculate_constant6(), calculate_constant7(), calculate_constant8(), calculate_constant9(), calculate_member_position(), calculate_struct_offsets(), check_ctype(), check_token(), crec_ct_ct(), do_fio(), doMusic(), doPreamble(), Draw_Sweep(), error(), f10_dvar(), f11_dentropy(), f12_icorr(), f13_icorr(), f14_maxcorr(), f1_asm(), f2_contrast(), f3_corr(), f4_var(), f5_idm(), f6_savg(), f7_svar(), f8_sentropy(), f9_entropy(), ffi_cdef(), FillTable(), fsearch(), ft_mem_free(), FUNCTION(), getBar(), hb_atomic_ptr_impl_get(), htmlFTitle(), includeStartString(), instantiate_typedef(), iof_filter_aes_decoder(), iof_filter_aes_encoder(), iof_filter_base16_decoder(), iof_filter_base16_encoder(), iof_filter_base64_decoder(), iof_filter_base64_encoder(), iof_filter_base85_decoder(), iof_filter_base85_encoder(), iof_filter_file_coreader_source(), iof_filter_file_handle_reader(), iof_filter_file_handle_writer(), iof_filter_file_reader(), iof_filter_file_reader_source(), iof_filter_file_writer(), iof_filter_flate_decoder(), iof_filter_flate_encoder(), iof_filter_iofile_reader(), iof_filter_iofile_writer(), iof_filter_lzw_decoder(), iof_filter_lzw_encoder(), iof_filter_predictor_decoder(), iof_filter_predictor_encoder(), iof_filter_rc4_decoder(), iof_filter_rc4_encoder(), iof_filter_reader_replacement(), iof_filter_runlength_decoder(), iof_filter_runlength_encoder(), iof_filter_stream_coreader(), iof_filter_stream_cowriter(), iof_filter_stream_reader(), iof_filter_stream_writer(), isControlParagraph(), lj_cconv_ct_ct(), lyricsParagraph(), lyrTranslate(), main(), maybeLyrics(), mpfr_const_catalan_internal(), mpfr_const_euler_bs_2(), mpfr_const_log2_internal(), mpfr_exp_3(), mpfr_log_ui(), musicLine(), MusicWord(), ne_d(), next_token(), nonMusic(), obliterate(), parse_argument(), parse_argument2(), parse_attribute(), parse_constant_assignemnt(), parse_enum(), parse_function(), parse_function_arguments(), parse_record(), parse_root(), parse_struct(), parse_type(), parse_type_name(), parse_typedef(), ppstream_decoder(), push_strings(), put_back(), putPMXlines(), readParagraph(), rek_raising_fac4(), require_token_line(), resetInfo(), S(), skipChordBar(), startsWithBracedWord(), StructAtOffset(), CFF::StructAtOffsetOrNull(), StructAtOffsetUnaligned(), t1_Line(), t1_QueryLoc(), t1_Xform(), thisCase(), try_cast(), TT_Alloc(), TT_Free(), TT_Realloc(), and warning().

◆ para_len

◆ paragraph_no

short paragraph_no

◆ pickup

short pickup

Definition at line 116 of file globals.h.

Referenced by musicParagraph(), processMBR(), processOneBar(), supplyRests(), and testParagraph().

◆ pmdenom

short pmdenom

Definition at line 116 of file globals.h.

Referenced by getMeter(), interpretCommands(), pmxMeter(), and readMeter().

◆ pmnum

short pmnum

Definition at line 116 of file globals.h.

Referenced by getMeter(), interpretCommands(), pmxMeter(), and readMeter().

◆ pmx_preamble_done

◆ short_note

short short_note

Definition at line 115 of file globals.h.

Referenced by interpretCommands().

◆ solfa_names

Char solfa_names[8]
extern

Definition at line 16 of file globals.c.

Referenced by extractDotShortcut(), and translateSolfa().

◆ some_vocal

boolean some_vocal

Definition at line 127 of file globals.h.

Referenced by applyStyle(), musicParagraph(), and preambleDefaults().

◆ stave

◆ stave_size

short stave_size[15]
extern

◆ stylefile

FILE * stylefile

Definition at line 122 of file globals.h.

Referenced by CloseFiles(), OpenFiles(), and readStyles().

◆ stylefile_NAME

Char stylefile_NAME[_FNSIZE]
extern

Referenced by OpenFiles().

◆ terminators

Char terminators[256]
extern

Definition at line 14 of file globals.c.

Referenced by scanMusic().

◆ texdir

Char texdir[256]
extern

Definition at line 19 of file globals.c.

Referenced by doPMXpreamble(), and OpenFiles().

◆ this_version

Char this_version[256]

Definition at line 124 of file globals.h.

Referenced by main().

◆ this_version_date

Char this_version_date[256]

Definition at line 124 of file globals.h.

Referenced by main().

◆ top

Definition at line 114 of file globals.h.

◆ voice_label

Char voice_label[15][256]
extern

◆ xmtrnum0