Browse Source

encoding.c: Fix -Wmissing-prototypes warnings.

master
Reece H. Dunn 7 years ago
parent
commit
68724badf3
2 changed files with 6 additions and 3 deletions
  1. 2
    3
      src/libespeak-ng/compiledata.c
  2. 4
    0
      src/libespeak-ng/encoding.c

+ 2
- 3
src/libespeak-ng/compiledata.c View File



#include <espeak-ng/espeak_ng.h> #include <espeak-ng/espeak_ng.h>
#include <espeak-ng/speak_lib.h> #include <espeak-ng/speak_lib.h>
#include <espeak-ng/encoding.h>


#include "error.h" #include "error.h"
#include "speech.h" #include "speech.h"
#include "voice.h" #include "voice.h"
#include "synthesize.h" #include "synthesize.h"
#include "spect.h" #include "spect.h"
#include "translate.h"


typedef struct { typedef struct {
unsigned int value; unsigned int value;
int n_manifest; int n_manifest;
char phsrc[sizeof(path_home)+40]; // Source: path to the 'phonemes' source file. char phsrc[sizeof(path_home)+40]; // Source: path to the 'phonemes' source file.


extern ESPEAK_NG_API int utf8_in(int *c, const char *buf);
extern int utf8_out(unsigned int c, char *buf);

typedef struct { typedef struct {
const char *mnem; const char *mnem;
int type; int type;

+ 4
- 0
src/libespeak-ng/encoding.c View File

#include <espeak-ng/encoding.h> #include <espeak-ng/encoding.h>


#include "speech.h" #include "speech.h"
#include "phoneme.h"
#include "voice.h"
#include "synthesize.h"
#include "translate.h"


#define LEADING_2_BITS 0xC0 // 0b11000000 #define LEADING_2_BITS 0xC0 // 0b11000000
#define UTF8_TAIL_BITS 0x80 // 0b10000000 #define UTF8_TAIL_BITS 0x80 // 0b10000000

Loading…
Cancel
Save