Skip to content

Commit 6f92a86

Browse files
committed
commit before working on ls_*.c
1 parent ddd7816 commit 6f92a86

28 files changed

Lines changed: 2026 additions & 2881 deletions

include/186.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
/*#ifndef R186_REG_DEFS */
3636
/*#define R186_REG_DEFS 1 */
3737

38-
#ifndef DTEX /* express doesn't have a 186.. */
39-
4038
extern unsigned int r186_io_base;
4139

4240
/*
@@ -138,5 +136,4 @@ extern unsigned int r186_io_base;
138136
#define R186_INT_2 (r186_io_base + 0x3C)
139137
#define R186_INT_3 (r186_io_base + 0x3E)
140138

141-
#endif /*DTEX*/
142139
#endif

include/c_us_cde.h

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ const unsigned char *skip_options[] = {
169169
* Option parameters for volume command.
170170
*/
171171

172-
#ifndef MSDOS
173172
/*
174173
* change the volume
175174
*/
@@ -189,20 +188,6 @@ const unsigned char *volume_options[] = {
189188
0
190189
};
191190

192-
#else
193-
194-
const unsigned char *volume_options[] = {
195-
"set",
196-
"up",
197-
"down",
198-
#ifdef SW_VOLUME /* eab 10/9 99 added the "tone" option */
199-
"tone",
200-
#endif /* SW_VOLUME */
201-
202-
0
203-
};
204-
#endif // MSDOS
205-
206191
/*
207192
* Used in cm_cmd_language()
208193
* change to an alternately loaded language ...
@@ -225,22 +210,6 @@ const unsigned char *lang_options[] = {
225210
0
226211
};
227212

228-
#ifdef DTEX
229-
/*
230-
* Used in cm_cmd_power()
231-
* things related to the battery and external power..
232-
*/
233-
const unsigned char *power_options[] = {
234-
"speak", // say the power status.
235-
"interval", // interval to repeat batt-low beeps (0=don't beep)
236-
"status", // send back the power status.
237-
"sleep", // time to wait before sleeping..
238-
"check", // beep if batt low.
239-
"lspeak", // say the power status in loader.c .
240-
0
241-
};
242-
#endif /* DTEX */
243-
244213
/*
245214
* Used in cm_cmd_version()
246215
* version stuff
@@ -250,18 +219,6 @@ const unsigned char *version_options[] = {
250219
"status",
251220
0
252221
};
253-
254-
#ifdef DTEX
255-
/*
256-
* Used in cm_cmd_tsr()
257-
* [:tsr stuff
258-
*/
259-
const unsigned char *tsr_options[] = {
260-
"on",
261-
"off",
262-
0
263-
};
264-
#endif /* DTEX */
265222

266223
/* Used in cm_cmd_mode() */
267224
const unsigned char *mode_options[] = {
@@ -297,7 +254,6 @@ const unsigned char *pronounce_options[] = {
297254
* Used in cm_cmd_name()
298255
* set the speaking voice ...
299256
*/
300-
#ifndef EPSON_ARM7
301257
const unsigned char *voice_names[] = {
302258
"paul",
303259
"betty",
@@ -314,7 +270,6 @@ const unsigned char *voice_names[] = {
314270
"val",
315271
0
316272
};
317-
#endif
318273

319274
/*
320275
* Used in cm_cmd_mark()
@@ -442,13 +397,5 @@ const struct dtpc_command command_table[] = {
442397

443398
#define TOTAL_COMMANDS (sizeof(command_table)/sizeof(struct dtpc_command))
444399

445-
const int total_commands = TOTAL_COMMANDS;
446-
447-
#ifdef MSDOS
448-
short cm[TOTAL_COMMANDS+1]; /* command match parse array */
449-
#endif
450-
451-
#ifdef ARM7
452-
//short cm[TOTAL_COMMANDS+1]; /* command match parse array */
453-
#endif
400+
const int total_commands = TOTAL_COMMANDS;
454401
#endif // CUSCDEH

include/cmd.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,8 @@
193193
#define SPD_CHINK 35
194194
#define SPD_OQ 36
195195

196-
/* GL 04/21/1997 change this for OSF build */
197-
#if defined (WIN32_OLD) || defined (__osf__) || defined (__unix__) || defined VXWORKS || defined _SPARC_SOLARIS_ || defined ARM7 || defined __EMSCRIPTEN__ || defined (__APPLE__)
198196
#define SPD_OS 37
199197
#define SPD_NM 38
200198
#define SPDEF 39
201-
#endif
202-
203-
#ifdef MSDOS
204-
#define SPDEF 32
205-
#endif
206199

207200
#endif /* CMDH */

include/config.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
/* config.h. Generated from config.h.in by configure. */
2-
/* config.h.in. Generated from configure.ac by autoheader. */
3-
4-
/* Define to 1 if iconv exists */
5-
#define HAVE_ICONV 1
6-
7-
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
8-
/* #undef NO_MINUS_C_MINUS_O */
9-
10-
/* Define to the address where bug reports for this package should be sent. */
11-
#define PACKAGE_BUGREPORT "https://github.com/dectalk/dectalk/issues"
12-
13-
/* Define to the full name of this package. */
14-
#define PACKAGE_NAME "DECtalk"
15-
16-
/* Define to the full name and version of this package. */
17-
#define PACKAGE_STRING "DECtalk 374caf73"
18-
19-
/* Define to the one symbol short name of this package. */
20-
#define PACKAGE_TARNAME "dectalk"
21-
22-
/* Define to the home page for this package. */
23-
#define PACKAGE_URL "https://github.com/dectalk/dectalk"
24-
25-
/* Define to the version of this package. */
26-
#define PACKAGE_VERSION "374caf73"
1+
/* config.h. Generated from config.h.in by configure. */
2+
/* config.h.in. Generated from configure.ac by autoheader. */
3+
4+
/* Define to 1 if iconv exists */
5+
#define HAVE_ICONV 1
6+
7+
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
8+
/* #undef NO_MINUS_C_MINUS_O */
9+
10+
/* Define to the address where bug reports for this package should be sent. */
11+
#define PACKAGE_BUGREPORT "https://github.com/dectalk/dectalk/issues"
12+
13+
/* Define to the full name of this package. */
14+
#define PACKAGE_NAME "DECtalk"
15+
16+
/* Define to the full name and version of this package. */
17+
#define PACKAGE_STRING "DECtalk 374caf73"
18+
19+
/* Define to the one symbol short name of this package. */
20+
#define PACKAGE_TARNAME "dectalk"
21+
22+
/* Define to the home page for this package. */
23+
#define PACKAGE_URL "https://github.com/dectalk/dectalk"
24+
25+
/* Define to the version of this package. */
26+
#define PACKAGE_VERSION "374caf73"

include/dectalkf.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
//#include "dectalkf_hlsyn.h"
2-
#include "dectalkf_klsyn.h"
3-
4-
/* Horrible Windows fix */
5-
#ifdef _WIN32
6-
#ifndef __unix__
7-
#define __unix__
8-
#endif
9-
#endif
10-
11-
// On UNIX/Linux based machines, this is the location where DECtalk will assume it was built.
12-
#ifndef DECTALK_INSTALL_PREFIX
13-
#define DECTALK_INSTALL_PREFIX "/opt/dectalk"
14-
#endif
1+
//#include "dectalkf_hlsyn.h"
2+
#include "dectalkf_klsyn.h"
3+
4+
/* Horrible Windows fix */
5+
#ifdef _WIN32
6+
#ifndef __unix__
7+
#define __unix__
8+
#endif
9+
#endif
10+
11+
// On UNIX/Linux based machines, this is the location where DECtalk will assume it was built.
12+
#ifndef DECTALK_INSTALL_PREFIX
13+
#define DECTALK_INSTALL_PREFIX "/opt/dectalk"
14+
#endif

include/dectalkf_klsyn.h

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,14 @@
9999
#define NEW_BINARY_PARSER
100100
#define GERMAN_COMPOUND_NOUNS
101101

102-
#ifndef ARM7
103102
#ifdef _DEBUG_OLD
104103
#define PH_DEBUG_OLD
105104
#endif
106-
#endif
107-
108-
#ifdef EPSON_ARM7
109-
#include "ltsnames.h"
110-
#endif
111105

112106
//#define FAKE_HLSYN
113107
//#define HLSYN
114108
//#ifndef SAPI5DECTALK
115109

116-
#ifdef EPSON_ARM7
117-
#define HLSYN
118-
#endif
119-
120110
#ifdef ACCESS_SOLUTIONS
121111
#undef HLSYN
122112
#endif
@@ -137,31 +127,9 @@
137127

138128
//#define UPGRADES1999
139129

140-
#ifndef SAPI5DECTALK
141-
// Turn on ACCESS32, TYPING_MODE, and SLOWTALK
142-
#ifndef ARM7
143-
#ifndef ACCESS32
144-
#define ACCESS32
145-
#endif
146-
147-
#ifndef TYPING_MODE
148-
#define TYPING_MODE
149-
#endif
150-
#endif
151-
152-
#ifndef SLOWTALK
153-
#define SLOWTALK
154-
#endif
155-
156-
#endif // SAPI5DECTALK
157-
158130

159131
#define NEW_PHONES
160132

161-
#if defined ALPHA || defined __osf__
162-
#define FP_VTM
163-
#endif
164-
165133
//#define TONGUE_BODY_AREA
166134

167135
// Bypass license validation checks in licenseu only.
@@ -191,9 +159,7 @@ LANGUAGE VDEF_FILE TUNING UP VDEF_FILE TUNING UP
191159
so the default if nothing defined is the base level _vdef.c version
192160
*/
193161

194-
#ifndef MSDOS
195162
#define AD_BASE //Turns on advanced development build
196-
#endif
197163

198164
#ifdef AD_BASE
199165
//#define NEW_VOCAL_TRACT
@@ -219,13 +185,6 @@ LANGUAGE VDEF_FILE TUNING UP VDEF_FILE TUNING UP
219185
//#define TOMBUCHLER
220186
//#define TESTING
221187

222-
#if defined UNDER_CE
223-
/* THIS MUST BE LEFT DEFINED FOR ARM7 AND CE !!!!!!!!!!!!!!!!!!! */
224-
225-
#define LOWCOMPUTE_MITSU //MFG 05/06/02 needed for windoe ce to lower computes
226-
//Note EAB May 9,2000 Now everything should have LowCompute
227-
#endif
228-
229188

230189
/* TK 12/30/98, new switch for voice compression */
231190
//#define COMPRESSION

include/defs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@
3434
#ifndef DEFSH
3535
#define DEFSH 1
3636

37-
#ifndef MSDOS
3837
#define far
3938
#define _far
4039
#define _huge
4140
#define _halloc malloc
4241
//#define FAR
4342
#define volatile
4443
#define register /* this should really be cased on a per machine basis - tfm */
45-
#endif
4644

4745
#define HUNGARY 1
4846
#define true 1

include/disable_audio.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "linux_audio.h"
2-
3-
#ifdef __EMSCRIPTEN__
4-
#include <string.h>
5-
#endif
1+
#include "linux_audio.h"
2+
3+
#ifdef __EMSCRIPTEN__
4+
#include <string.h>
5+
#endif

include/dt_abort.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,12 @@
3535
* 006 CAB 06/17/2002 Removed assert.h for UNDER_CE
3636
*/
3737

38-
#ifdef WIN32_OLD
39-
#ifndef UNDER_CE
40-
#include <assert.h>
41-
#define dt_abort \
42-
{ \
43-
assert(1); \
44-
}\
45-
46-
#endif
47-
#endif //WIN32_OLD
48-
49-
#if defined (__osf__) || defined (__unix__) || defined VXWORKS || defined _SPARC_SOLARIS_ || defined (__APPLE__)
5038
#include <assert.h>
5139
#define dt_abort \
5240
{ \
5341
assert(0); \
5442
}
5543

56-
#endif //__osf__ || (__unix__) || defined VXWORKS || defined _SPARC_SOLARIS_
57-
5844
#ifdef DTPC1
5945
#include "pcport.h"
6046
#include "libp.h"
@@ -78,17 +64,3 @@
7864
}\
7965

8066
#endif //DTPC2
81-
82-
#ifdef DTEX
83-
#include "pcport.h"
84-
#include "libp.h"
85-
#define dt_abort \
86-
{ \
87-
status_clear(0xFFFF); \
88-
status_set_update(MODE_error); \
89-
printf(__FILE__); \
90-
printf("dt_abort!\n"); \
91-
error_hang(); \
92-
}\
93-
94-
#endif //DTEX

0 commit comments

Comments
 (0)