Cleanup: remove stdio.h header from MEM_guardedalloc.h

This was included for `FILE *` which isn't used in the header.

Ref D10799
This commit is contained in:
Campbell Barton 2021-03-24 16:43:17 +11:00
parent 3f47df577d
commit 865025c343
23 changed files with 26 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include <assert.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -49,8 +49,6 @@
#ifndef __MEM_GUARDEDALLOC_H__
#define __MEM_GUARDEDALLOC_H__
#include <stdio.h> /* needed for FILE* */
/* Needed for uintptr_t and attributes, exception, don't use BLI anywhere else in `MEM_*` */
#include "../../source/blender/blenlib/BLI_compiler_attrs.h"
#include "../../source/blender/blenlib/BLI_sys_types.h"

View File

@ -19,6 +19,7 @@
*/
#include <cstdlib>
#include <stdio.h> /* Needed for `printf` on WIN32/APPLE. */
#include "MEM_guardedalloc.h"
#include "mallocn_intern.h"

View File

@ -25,6 +25,7 @@
#include <stdarg.h>
#include <stddef.h> /* offsetof */
#include <stdio.h> /* printf */
#include <stdlib.h>
#include <string.h> /* memcpy */
#include <sys/types.h>

View File

@ -21,6 +21,7 @@
*/
#include <stdarg.h>
#include <stdio.h> /* printf */
#include <stdlib.h>
#include <string.h> /* memcpy */
#include <sys/types.h>

View File

@ -19,6 +19,7 @@
*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "RNA_types.h"

View File

@ -22,6 +22,7 @@
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -20,6 +20,7 @@
* Used by ED_undo.h, internal implementation.
*/
#include <stdio.h>
#include <string.h>
#include "CLG_log.h"

View File

@ -18,6 +18,7 @@
* \ingroup bke
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -23,6 +23,7 @@
*/
#include <ctype.h> /* for tolower */
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"

View File

@ -22,6 +22,7 @@
* \ingroup bli
*/
#include <stdio.h>
#include <stdlib.h> /* malloc */
#include <string.h>

View File

@ -24,6 +24,7 @@
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -25,6 +25,7 @@
#include <inttypes.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -23,6 +23,7 @@
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -21,6 +21,7 @@
* Accessed via the #WM_OT_search_menu operator.
*/
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"

View File

@ -23,6 +23,7 @@
* GPU material library parsing and code generation.
*/
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"

View File

@ -23,6 +23,7 @@
* Intermediate node graph for generating GLSL shaders.
*/
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"

View File

@ -18,6 +18,7 @@
* \ingroup imbuf
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -22,6 +22,7 @@
*/
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"

View File

@ -18,6 +18,8 @@
* \ingroup wm
*/
#include <stdio.h>
#include "BLI_ghash.h"
#include "BLI_utildefines.h"

View File

@ -18,6 +18,8 @@
* \ingroup wm
*/
#include <stdio.h>
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"

View File

@ -20,6 +20,8 @@
* Menu Registry.
*/
#include <stdio.h>
#include "BLI_sys_types.h"
#include "DNA_windowmanager_types.h"

View File

@ -20,6 +20,8 @@
* UI List Registry.
*/
#include <stdio.h>
#include "BLI_sys_types.h"
#include "DNA_windowmanager_types.h"