41 #include <sys/types.h> 47 #define STRINGIZE(S) _S_S_S(S) 55 # define ESTLIBDIR STRINGIZE(ESTLIBDIRC) 59 #define ESTLIBDIR "/usr/local/lib/speech_tools" 82 for (j=i=0; t1[i] !=
'\0'; i++)
88 size_t tmpfile_length = strlen(t1) + 17;
89 fname =
walloc(
char, tmpfile_length);
90 sprintf(fname,
"%s/est_%05ld_%05d",t1,(
long)getpid(),n++);
99 if ((
streq(boname,
"hilo")) || (
streq(boname,
"big")) ||
100 (
streq(boname,
"MSB")) || (
streq(boname,
"big_endian")))
102 else if ((
streq(boname,
"lohi")) || (
streq(boname,
"little")) ||
103 (
streq(boname,
"LSB")) || (
streq(boname,
"little_endian")))
105 else if ((
streq(boname,
"native")) || (
streq(boname,
"mine")))
107 else if ((
streq(boname,
"nonnative")) || (
streq(boname,
"other")) ||
108 (
streq(boname,
"wrong")) || (
streq(boname,
"swap")) ||
109 (
streq(boname,
"swapped")))
113 fprintf(stderr,
"Unknown byte swap format: \"%s\" assuming native\n",
126 case bo_big:
return "hilo";
129 fprintf(stderr,
"Unrecognized byte order %d\n",bo);
130 return "unrecognized";
char * wstrdup(const char *s)
const char *const est_tools_version
#define walloc(TYPE, SIZE)
const char *const est_name
enum EST_bo_t str_to_bo(const char *boname)
const char *const est_libdir
char * cmake_tmp_filename()
const char * bo_to_str(enum EST_bo_t bo)
const char *const est_ostype