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

@@ -33,6 +33,7 @@

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

#include "error.h"
#include "speech.h"
@@ -40,6 +41,7 @@
#include "voice.h"
#include "synthesize.h"
#include "spect.h"
#include "translate.h"

typedef struct {
unsigned int value;
@@ -50,9 +52,6 @@ NAMETAB *manifest = NULL;
int n_manifest;
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 {
const char *mnem;
int type;

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

@@ -26,6 +26,10 @@
#include <espeak-ng/encoding.h>

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

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

Loading…
Cancel
Save