mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 23:50:53 +00:00
remove fluid_error()
This commit is contained in:
parent
c483ae0f95
commit
f8a55cd10d
3 changed files with 1 additions and 17 deletions
|
@ -1109,12 +1109,10 @@ delete_fluid_synth(fluid_synth_t *synth)
|
|||
* calling thread calls another FluidSynth function which fails. String is
|
||||
* internal and should not be modified or freed.
|
||||
*/
|
||||
/* FIXME - The error messages are not thread-safe, yet. They are still stored
|
||||
* in a global message buffer (see fluid_sys.c). */
|
||||
const char *
|
||||
fluid_synth_error(fluid_synth_t *synth)
|
||||
{
|
||||
return fluid_error();
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -73,9 +73,6 @@ struct _fluid_server_socket_t
|
|||
|
||||
static int fluid_istream_gets(fluid_istream_t in, char *buf, int len);
|
||||
|
||||
|
||||
static char fluid_errbuf[512]; /* buffer for error message */
|
||||
|
||||
static fluid_log_function_t fluid_log_function[LAST_LOG_LEVEL] =
|
||||
{
|
||||
fluid_default_log_function,
|
||||
|
@ -265,15 +262,6 @@ char *fluid_strtok(char **str, char *delim)
|
|||
return token;
|
||||
}
|
||||
|
||||
/*
|
||||
* fluid_error
|
||||
*/
|
||||
char *
|
||||
fluid_error()
|
||||
{
|
||||
return fluid_errbuf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a file is a MIDI file.
|
||||
* @param filename Path to the file to check
|
||||
|
|
|
@ -345,6 +345,4 @@ do { strncpy(_dst,_src,_n); \
|
|||
#define FLUID_LIKELY G_LIKELY
|
||||
#define FLUID_UNLIKELY G_UNLIKELY
|
||||
|
||||
char *fluid_error(void);
|
||||
|
||||
#endif /* _FLUIDSYNTH_PRIV_H */
|
||||
|
|
Loading…
Reference in a new issue