1
/* Copyright (C) 2000 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2 of the License, or
6
(at your option) any later version.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
#include "mysys_priv.h"
19
namespace mysql_parser
22
int my_message_no_curses(uint error __attribute__((unused)),
23
const char *str, myf MyFlags)
25
DBUG_ENTER("my_message_no_curses");
26
DBUG_PRINT("enter",("message: %s",str));
27
(void) fflush(stdout);
28
if (MyFlags & ME_BELL)
30
ringbell(); /* Bell */
32
(void) fputc('\007',stderr); /* Bell */
33
#endif /* __NETWARE__ */
36
(void)fputs(my_progname,stderr); (void)fputs(": ",stderr);
38
(void)fputs(str,stderr);
39
(void)fputc('\n',stderr);
44
} // namespace mysql_parser