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
Go to the documentation of this file.
1 /* Header for module globals, generated by p2c 1.21alpha-07.Dec.93 */
2 #ifndef GLOBALS_H
3 #define GLOBALS_H
4 
5 
6 #ifdef GLOBALS_G
7 # define vextern
8 #else
9 # define vextern extern
10 #endif
11 
12 
13 /* 1. All global variables.
14  2. Miscellaneous other procedures required by several Units.
15 */
16 
17 /* CMO: addition/change by Christian Mondrup */
18 
19 
20 #define PMXlinelength 128
21 /* !!! One or more of the following constants should be reduced if this
22  program is to be compiled by a 16-bit compiler (e.g. Turbo Pascal),
23  otherwise you get a "Data segment too large" error */
24 #define lines_in_paragraph 100
25 #define max_words 128
26 #define max_notes 128
27 /* Christian Mondrup's suggestion to reduce data segment size:
28  lines_in_paragraph = 50;
29  max_words = 64;
30  max_notes = 64;
31 */
32 #define max_bars 16
33 #define maxstaves 15
34 #define maxvoices 15
35 #define maxgroups 3
36 #define standardPMXvoices 12
37 
38 #define max_lyrics_line_length (PMXlinelength - 4)
39 
40 #define inf 32000
41 #define unspec 1000
42 #define default_size 20
43 
44 #define start_beam '['
45 #define stop_beam ']'
46 #define rest 'r'
47 
48 #define pause "rp"
49 
50 #define dotcode 'd'
51 #define grace_group 'G'
52 #define multi_group 'x'
53 #define barsym '|'
54 #define comment '%'
55 #define blank ' '
56 #define dot '.'
57 #define comma ','
58 #define colon ':'
59 #define tilde '~'
60 #define dummy '\0'
61 
62 #define ndurs 8
63 
64 #define unspecified '5' /* Not a valid duration */
65 
66 #define whole 2 /* position of '0' in durations */
67 
68 #define digits "123456789"
69 #define digitsdot "0123456789."
70 
71 #define putspace true
72 #define nospace false
73 #define print true
74 
75 
76 typedef char paragraph_index;
77 
78 typedef char voice_index;
79 
80 typedef char stave_index;
81 
82 typedef char bar_index0;
83 
85 
86 typedef char paragraph_index0;
87 
88 typedef char voice_index0;
89 
90 typedef char stave_index0;
91 
94 
95 
96 extern Char double_comment[3];
97 extern Char durations[ndurs + 1];
98 extern Char terminators[256];
99 extern Char has_duration[9];
100 extern Char solfa_names[8];
101 
102 extern Char choice;
103 extern boolean outfile_open;
104 extern Char texdir[256];
105 extern Char old_meter_word[256];
106 extern short outlen;
107 extern boolean ignore_input;
113 vextern short nspace[maxstaves + 1];
119 vextern double xmtrnum0;
131 
132 
133 extern void error(Char *message, boolean printLine);
134 extern void fatalerror(Char *message);
135 extern void warning(Char *message, boolean printLine);
136 extern short PMXinstr(short stave);
137 extern void setDefaultDuration(short meterdenom);
138 extern void getMeter(Char *line, short *meternum, short *meterdenom,
139  short *pmnum, short *pmdenom);
140 extern void setSpace(Char *line);
141 extern Char *meterChange(Char *Result, short n1, short n2, boolean blind);
142 extern Char *meterWord(Char *Result, short num, short denom, short pnum,
143  short pdenom);
144 extern void cancel(short *num, short *denom, short lowest);
145 extern boolean isNoteOrRest(Char *w);
146 extern boolean isPause(Char *note);
147 /* CMO: */
148 extern short PMXmeterdenom(short denom);
149 
150 
151 #undef vextern
152 
153 #endif /*GLOBALS_H*/
154 
155 /* End. */
#define message
Definition: aptex-macros.h:418
#define _FNSIZE
Definition: cfuncs.h:28
int w
Definition: dviconv.c:26
Char old_meter_word[256]
Definition: globals.c:20
paragraph_index0 para_len
Char choice
Definition: globals.c:17
boolean isPause(Char *note)
short PMXinstr(short stave)
Definition: globals.c:262
boolean pmx_preamble_done
boolean must_respace
Definition: globals.h:127
Char solfa_names[8]
Definition: globals.c:16
void error(Char *message, boolean printLine)
voice_index0 bottom
Definition: globals.h:114
char stave_index0
Definition: globals.h:90
Char durations[8+1]
Definition: globals.c:13
short pickup
Definition: globals.h:116
short one_beat
short full_bar
Definition: globals.h:115
Char this_version[256]
Definition: globals.h:124
voice_index0 stave[15]
Definition: globals.h:110
#define maxstaves
Definition: globals.h:33
Char * meterChange(Char *Result, short n1, short n2, boolean blind)
boolean outfile_open
Definition: globals.c:18
short pmnum
Definition: globals.h:116
boolean must_restyle
Definition: globals.h:127
char stave_index
Definition: globals.h:80
short short_note
Definition: globals.h:115
FILE * stylefile
Definition: globals.h:122
double xmtrnum0
voice_index0 ninstr
Definition: globals.h:114
Char voice_label[15][256]
void setSpace(Char *line)
void getMeter(Char *line, short *meternum, short *meterdenom, short *pmnum, short *pmdenom)
Char paragraph[100][256]
Definition: globals.h:92
short line_no
Definition: globals.h:115
short nleft
Definition: globals.h:117
Char texdir[256]
Definition: globals.c:19
char voice_index
Definition: globals.h:78
paragraph orig_P
Definition: globals.h:120
short meternum
Definition: globals.h:115
Char default_duration
voice_index0 top
Definition: globals.h:114
Char outfile_NAME[_FNSIZE]
void setDefaultDuration(short meterdenom)
Definition: globals.c:268
short outlen
Definition: globals.c:21
paragraph P
voice_index0 nstaves
Definition: globals.h:114
boolean first_paragraph
Definition: globals.h:126
boolean some_vocal
Definition: globals.h:127
boolean isNoteOrRest(Char *w)
void cancel(short *num, short *denom, short lowest)
Definition: globals.c:49
boolean final_paragraph
Definition: globals.h:126
voice_index0 first_on_stave[15]
Definition: globals.h:111
char bar_index0
Definition: globals.h:82
Char stylefile_NAME[_FNSIZE]
short paragraph_no
Definition: globals.h:116
short musicsize
Definition: globals.h:115
short PMXmeterdenom(short denom)
Definition: globals.c:303
short meterdenom
Definition: globals.h:116
#define vextern
Definition: globals.h:9
short nbars
Definition: globals.h:116
Char infile_NAME[_FNSIZE]
uchar word_index0
Definition: globals.h:84
short bar_no
Definition: globals.h:116
Char this_version_date[256]
Definition: globals.h:124
void fatalerror(Char *message)
line_nos orig_line_no
char paragraph_index
Definition: globals.h:76
Char double_comment[3]
Definition: globals.c:12
Char terminators[256]
Definition: globals.c:14
short line_nos[100]
Definition: globals.h:93
voice_index0 instr[15]
FILE * outfile
Definition: globals.h:122
voice_index0 number_on_stave[15]
Definition: globals.h:111
char voice_index0
Definition: globals.h:88
Char fracindent[256]
Definition: pmxab.c:137
Char has_duration[9]
Definition: globals.c:15
Char clef[15]
#define ndurs
Definition: globals.h:62
boolean ignore_input
Definition: globals.c:22
short pmdenom
Definition: globals.h:116
Char * meterWord(Char *Result, short num, short denom, short pnum, short pdenom)
char paragraph_index0
Definition: globals.h:86
#define lines_in_paragraph
Definition: globals.h:24
FILE * infile
Definition: afm2pl.c:194
short stave_size[15]
short nspace[15+1]
void warning(Char *message, boolean printLine)
voice_index0 nvoices
Char multi_bar_rest[256]
Definition: globals.h:125
#define maxvoices
Definition: globals.h:34
unsigned char uchar
Definition: unzcrash.c:37
int num
Definition: disdvi.c:621
#define blind
Definition: prepmx.c:88
static void printLine(FILE *f, const TextLine *line)
Definition: pdftotext.cc:462
Definition: t1part.c:39
Definition: bdf.c:133
#define FILE
Definition: t1stdio.h:34