MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stub_print_error.h
1 /* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
2 
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; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 #include <my_global.h>
17 #include <my_sys.h>
18 #include <pfs_global.h>
19 
20 bool pfs_initialized= false;
21 
22 void *pfs_malloc(size_t size, myf flags)
23 {
24  void *ptr= malloc(size);
25  if (ptr && (flags & MY_ZEROFILL))
26  memset(ptr, 0, size);
27  return ptr;
28 }
29 
30 void pfs_free(void *ptr)
31 {
32  if (ptr != NULL)
33  free(ptr);
34 }
35 
36 void pfs_print_error(const char *format, ...)
37 {
38  /* Do not pollute the unit test output with annoying messages. */
39 }
40