PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/native/external/espeak/platforms/riscos/h/speech

http://eyes-free.googlecode.com/
#! | 68 lines | 52 code | 16 blank | 0 comment | 0 complexity | 2de3c38c53e1dfdb26d702cfd7f4d833 MD5 | raw file
 1/***************************************************************************
 2 *   Copyright (C) 2005,2006 by Jonathan Duddington                        *
 3 *   jsd@clara.co.uk                                                       *
 4 *                                                                         *
 5 *   This program is free software; you can redistribute it and/or modify  *
 6 *   it under the terms of the GNU General Public License as published by  *
 7 *   the Free Software Foundation; either version 2 of the License, or     *
 8 *   (at your option) any later version.                                   *
 9 *                                                                         *
10 *   This program is distributed in the hope that it will be useful,       *
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13 *   GNU General Public License for more details.                          *
14 *                                                                         *
15 *   You should have received a copy of the GNU General Public License     *
16 *   along with this program; if not, write to the                         *
17 *   Free Software Foundation, Inc.,                                       *
18 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19 ***************************************************************************/
20
21// Header file for RISCOS build
22
23
24// comment this out when compiling the "speak" process
25//#define SPECT_EDITOR
26
27#define PATHSEP   '.'
28#define USE_ASSEMBLER_1
29#define PLATFORM_RISCOS
30#define NEED_WCHAR_FUNCTIONS
31#define __cdecl               // define as null, needed for Borland compiler
32#define ESPEAK_API
33
34typedef unsigned short USHORT;
35typedef unsigned char  UCHAR;
36typedef int DOUBLEX;
37
38typedef struct {
39   const char *mnem;
40   int  value;
41} MNEM_TAB;
42int LookupMnem(MNEM_TAB *table, char *string);
43
44#ifdef PLATFORM_WINDOWS
45#define N_PATH_HOME  220
46#else
47#define N_PATH_HOME  150
48#endif
49
50extern char path_home[N_PATH_HOME];    // this is the espeak-data directory
51
52
53extern void strncpy0(char *to,const char *from, int size);
54extern int GetFileLength(const char *filename);
55extern char *Alloc(int size);
56extern void Free(void *ptr);
57
58
59const int wcslen(const wchar_t *str);
60
61
62extern "C" {
63// optional assembler routine to speed-up Wavegen()
64int AddSineWaves(int waveph, int h_switch_sign, int maxh, int *harmspect);
65}
66
67#define strcasecmp(a,b)   strcmp(a,b)
68