Cleanup: Fix forward declaration of headers
This commit is contained in:
		@@ -26,6 +26,7 @@
 | 
			
		||||
#define __GHOST_EVENTBUTTON_H__
 | 
			
		||||
 | 
			
		||||
#include "GHOST_Event.h"
 | 
			
		||||
#include "GHOST_Window.h"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Mouse button event.
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,7 @@
 | 
			
		||||
set(INC
 | 
			
		||||
  .
 | 
			
		||||
  ..
 | 
			
		||||
  ../../source/blender/blenlib
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
set(INC_SYS
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
struct MEM_CacheLimiter_s;
 | 
			
		||||
struct MEM_CacheLimiterHandle_s;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "DNA_boid_types.h"
 | 
			
		||||
#include "DNA_particle_types.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "DNA_scene_types.h"
 | 
			
		||||
 | 
			
		||||
struct BezTriple;
 | 
			
		||||
struct Curve;
 | 
			
		||||
struct Depsgraph;
 | 
			
		||||
 
 | 
			
		||||
@@ -25,10 +25,13 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
struct Depsgraph;
 | 
			
		||||
struct DynamicPaintCanvasSettings;
 | 
			
		||||
struct DynamicPaintModifierData;
 | 
			
		||||
struct DynamicPaintRuntime;
 | 
			
		||||
struct Object;
 | 
			
		||||
struct Scene;
 | 
			
		||||
 | 
			
		||||
/* Actual surface point */
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,7 @@
 | 
			
		||||
 *   for every fresh Blender run.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "DNA_listBase.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
struct Depsgraph;
 | 
			
		||||
struct ID;
 | 
			
		||||
struct ImBuf;
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,7 @@ struct bToolRef;
 | 
			
		||||
 | 
			
		||||
enum eOverlayFlags;
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "DNA_object_enums.h"
 | 
			
		||||
 | 
			
		||||
extern const char PAINT_CURSOR_SCULPT[3];
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "DNA_text_types.h"
 | 
			
		||||
 | 
			
		||||
/* ****************************************************************************
 | 
			
		||||
 * Suggestions should be added in sorted order although a linear sorting method is
 | 
			
		||||
 * implemented. The list is then divided up based on the prefix provided by
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_typecheck.h"
 | 
			
		||||
#include "BLI_sys_types.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
typedef unsigned int BLI_bitmap;
 | 
			
		||||
 | 
			
		||||
/* warning: the bitmap does not keep track of its own size or check
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,9 @@
 | 
			
		||||
#ifndef __BLI_FILEOPS_H__
 | 
			
		||||
#define __BLI_FILEOPS_H__
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <sys/stat.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
@@ -39,6 +39,7 @@ extern "C" {
 | 
			
		||||
#include <limits.h> /* for PATH_MAX */
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
#ifndef PATH_MAX
 | 
			
		||||
#  define PATH_MAX 4096
 | 
			
		||||
 
 | 
			
		||||
@@ -28,8 +28,9 @@
 | 
			
		||||
 * This is also used to implement a 'set' (see #GSet below).
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_sys_types.h" /* for bool */
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_compiler_compat.h"
 | 
			
		||||
#include "BLI_sys_types.h" /* for bool */
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
BLI_INLINE unsigned int BLI_hash_int_2d(unsigned int kx, unsigned int ky)
 | 
			
		||||
{
 | 
			
		||||
#define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k))))
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_math.h"
 | 
			
		||||
 | 
			
		||||
struct Heap;
 | 
			
		||||
struct HeapNode;
 | 
			
		||||
typedef struct Heap Heap;
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_sys_types.h"
 | 
			
		||||
 | 
			
		||||
#define _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2) MACRO_ARG1##MACRO_ARG2
 | 
			
		||||
#define _BLI_CONCAT(MACRO_ARG1, MACRO_ARG2) _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2)
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,7 @@ extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_sys_types.h"
 | 
			
		||||
 | 
			
		||||
/********************************* Init **************************************/
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,7 @@
 | 
			
		||||
 * \ingroup bli
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "DNA_vec_types.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
 
 | 
			
		||||
@@ -33,6 +33,7 @@ extern "C" {
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_math_inline.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
/************************************* Init ***********************************/
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,8 @@
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
namespace BLI {
 | 
			
		||||
 | 
			
		||||
using std::copy;
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,7 @@ extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
struct BLI_mempool;
 | 
			
		||||
struct BLI_mempool_chunk;
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,7 @@ extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
void BLI_setenv(const char *env, const char *val) ATTR_NONNULL(1);
 | 
			
		||||
void BLI_setenv_if_new(const char *env, const char *val) ATTR_NONNULL(1);
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines_variadic.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
char *BLI_strdupn(const char *str, const size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
 | 
			
		||||
    ATTR_NONNULL();
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "BLI_utildefines_variadic.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
struct ListBase;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,8 @@ extern "C" {
 | 
			
		||||
 | 
			
		||||
#include <pthread.h>
 | 
			
		||||
 | 
			
		||||
#include "BLI_sys_types.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __APPLE__
 | 
			
		||||
#  include <libkern/OSAtomic.h>
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,7 @@
 | 
			
		||||
#define __MATH_GEOM_INLINE_C__
 | 
			
		||||
 | 
			
		||||
#include "BLI_math.h"
 | 
			
		||||
#include "BLI_math_vector.h"
 | 
			
		||||
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,8 @@
 | 
			
		||||
 * \ingroup bmesh
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "bmesh_core.h"
 | 
			
		||||
 | 
			
		||||
struct BMAllocTemplate;
 | 
			
		||||
 | 
			
		||||
bool BM_verts_from_edges(BMVert **vert_arr, BMEdge **edge_arr, const int len);
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,8 @@
 | 
			
		||||
 * \ingroup bmesh
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "bmesh_operator_api.h"
 | 
			
		||||
 | 
			
		||||
/*----------- bmop error system ----------*/
 | 
			
		||||
 | 
			
		||||
/* pushes an error onto the bmesh error stack.
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,8 @@
 | 
			
		||||
 * \ingroup bmesh
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "bmesh_class.h"
 | 
			
		||||
 | 
			
		||||
struct BMAllocTemplate;
 | 
			
		||||
struct BMLoopNorEditDataArray;
 | 
			
		||||
struct MLoopNorSpaceArray;
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,8 @@
 | 
			
		||||
 * \ingroup bmesh
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "bmesh.h"
 | 
			
		||||
 | 
			
		||||
struct CustomData_MeshMasks;
 | 
			
		||||
struct Main;
 | 
			
		||||
struct Mesh;
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,7 @@ class MemoryProxy;
 | 
			
		||||
#ifndef __COM_MEMORYPROXY_H__
 | 
			
		||||
#define __COM_MEMORYPROXY_H__
 | 
			
		||||
#include "COM_ExecutionGroup.h"
 | 
			
		||||
#include "COM_MemoryBuffer.h"
 | 
			
		||||
 | 
			
		||||
class ExecutionGroup;
 | 
			
		||||
class WriteBufferOperation;
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
#include "COM_NodeOperation.h"
 | 
			
		||||
#include "MEM_guardedalloc.h"
 | 
			
		||||
#include "BLI_listbase.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "BKE_image.h"
 | 
			
		||||
extern "C" {
 | 
			
		||||
#include "RE_pipeline.h"
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@
 | 
			
		||||
#ifndef __COM_OUTPUTFILEMULTIVIEWOPERATION_H__
 | 
			
		||||
#define __COM_OUTPUTFILEMULTIVIEWOPERATION_H__
 | 
			
		||||
#include "COM_NodeOperation.h"
 | 
			
		||||
#include "COM_OutputFileOperation.h"
 | 
			
		||||
 | 
			
		||||
#include "BLI_rect.h"
 | 
			
		||||
#include "BLI_path_util.h"
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@
 | 
			
		||||
#include "MEM_guardedalloc.h"
 | 
			
		||||
#include "DNA_scene_types.h"
 | 
			
		||||
#include "BLI_listbase.h"
 | 
			
		||||
#include "BKE_image.h"
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
extern "C" {
 | 
			
		||||
#include "RE_pipeline.h"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,10 @@
 | 
			
		||||
#define __INTERFACE_INTERN_H__
 | 
			
		||||
 | 
			
		||||
#include "BLI_compiler_attrs.h"
 | 
			
		||||
#include "UI_resources.h"
 | 
			
		||||
#include "RNA_types.h"
 | 
			
		||||
#include "DNA_listBase.h"
 | 
			
		||||
#include "RNA_types.h"
 | 
			
		||||
#include "UI_interface.h"
 | 
			
		||||
#include "UI_resources.h"
 | 
			
		||||
 | 
			
		||||
struct ARegion;
 | 
			
		||||
struct ID;
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,7 @@ struct Image;
 | 
			
		||||
struct ImageUser;
 | 
			
		||||
struct Main;
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "DNA_object_enums.h"
 | 
			
		||||
 | 
			
		||||
/* OpenGL drawing functions related to shading. */
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,8 @@
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
void GPU_init(void);
 | 
			
		||||
void GPU_exit(void);
 | 
			
		||||
bool GPU_is_initialized(void);
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,8 @@
 | 
			
		||||
#ifndef __IMB_FILETYPE_H__
 | 
			
		||||
#define __IMB_FILETYPE_H__
 | 
			
		||||
 | 
			
		||||
#include "IMB_imbuf.h"
 | 
			
		||||
 | 
			
		||||
/* Generic File Type */
 | 
			
		||||
 | 
			
		||||
struct ImBuf;
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,8 @@
 | 
			
		||||
#include <math.h>
 | 
			
		||||
 | 
			
		||||
#include "COLLADASWLibraryAnimationClips.h"
 | 
			
		||||
#include "DEG_depsgraph.h"
 | 
			
		||||
#include "ExportSettings.h"
 | 
			
		||||
 | 
			
		||||
class AnimationClipExporter : COLLADASW::LibraryAnimationClips {
 | 
			
		||||
 private:
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,8 @@
 | 
			
		||||
#ifndef __DNA_DEFAULTS_H__
 | 
			
		||||
#define __DNA_DEFAULTS_H__
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
#include "dna_type_offsets.h"
 | 
			
		||||
 | 
			
		||||
extern const void *DNA_default_table[SDNA_TYPE_MAX];
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,8 @@
 | 
			
		||||
#ifndef __DNA_FLUID_TYPES_H__
 | 
			
		||||
#define __DNA_FLUID_TYPES_H__
 | 
			
		||||
 | 
			
		||||
#include "DNA_listBase.h"
 | 
			
		||||
 | 
			
		||||
/* Domain flags. */
 | 
			
		||||
enum {
 | 
			
		||||
  FLUID_DOMAIN_USE_NOISE = (1 << 1),        /* Use noise. */
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@
 | 
			
		||||
#define __DNA_RIGIDBODY_TYPES_H__
 | 
			
		||||
 | 
			
		||||
#include "DNA_listBase.h"
 | 
			
		||||
#include "DNA_object_force_types.h"
 | 
			
		||||
 | 
			
		||||
struct Collection;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
#include "implicit.h"
 | 
			
		||||
 | 
			
		||||
typedef float Scalar;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -39,6 +39,8 @@ struct bPythonConstraint; /* DNA_constraint_types.h */
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "BLI_utildefines.h"
 | 
			
		||||
 | 
			
		||||
void BPY_pyconstraint_exec(struct bPythonConstraint *con,
 | 
			
		||||
                           struct bConstraintOb *cob,
 | 
			
		||||
                           struct ListBase *targets);
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,8 @@
 | 
			
		||||
 * \ingroup pygen
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <Python.h>
 | 
			
		||||
 | 
			
		||||
PyObject *BPyInit_blf(void);
 | 
			
		||||
 | 
			
		||||
#endif /* __BLF_PY_API_H__ */
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@
 | 
			
		||||
#ifndef __WM_MESSAGE_BUS_INTERN_H__
 | 
			
		||||
#define __WM_MESSAGE_BUS_INTERN_H__
 | 
			
		||||
 | 
			
		||||
/* wm_message_bus.h must be included first */
 | 
			
		||||
#include "../wm_message_bus.h"
 | 
			
		||||
 | 
			
		||||
struct wmMsgBus {
 | 
			
		||||
  struct GSet *messages_gset[WM_MSG_TYPE_NUM];
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,7 @@
 | 
			
		||||
#ifndef __WM_MESSAGE_BUS_H__
 | 
			
		||||
#define __WM_MESSAGE_BUS_H__
 | 
			
		||||
 | 
			
		||||
#include "RNA_types.h"
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
struct ID;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user