Add log.h to files that need it

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-15 17:53:17 +00:00
parent 0cebbc370a
commit acb81bc9a9
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
15 changed files with 15 additions and 4 deletions

View File

@ -31,6 +31,7 @@
#include "win.h"
#include "c2.h"
#include "string_utils.h"
#include "log.h"
#define C2_MAX_LEVELS 10

View File

@ -141,6 +141,7 @@
#include "win.h"
#include "x.h"
#include "region.h"
#include "log.h"
// === Constants ===

View File

@ -30,6 +30,7 @@
#include "config.h"
#include "diagnostic.h"
#include "string_utils.h"
#include "log.h"
#define auto __auto_type

View File

@ -33,6 +33,7 @@
#include "win.h"
#include "x.h"
#include "c2.h"
#include "log.h" // XXX clean up
// == Functions ==
// TODO move static inline functions that are only used in compton.c, into

View File

@ -9,6 +9,7 @@
#include "utils.h"
#include "c2.h"
#include "string_utils.h"
#include "log.h"
#include "config.h"

View File

@ -11,6 +11,7 @@
#include "common.h"
#include "config.h"
#include "string_utils.h"
#include "log.h"
/**
* Wrapper of libconfig's <code>config_lookup_int</code>.

View File

@ -11,6 +11,7 @@
#include "win.h"
#include "string_utils.h"
#include "log.h"
#include "dbus.h"

View File

@ -10,6 +10,8 @@
*/
#include "string_utils.h"
#include "log.h"
#include "opengl.h"
static inline int

View File

@ -12,6 +12,7 @@
#pragma once
#include "common.h"
#include "log.h"
#include <ctype.h>
#include <locale.h>

View File

@ -43,7 +43,7 @@ from_x_rect(const xcb_rectangle_t *rect) {
/// Returning an array that needs to be freed
static inline rect_t *
from_x_rects(int nrects, const xcb_rectangle_t *rects) {
rect_t *ret = calloc(nrects, sizeof *ret);
rect_t *ret = ccalloc(nrects, rect_t);
for (int i = 0; i < nrects; i++)
ret[i] = from_x_rect(rects+i);
return ret;

View File

@ -10,8 +10,6 @@
#include <stdio.h>
#include <unistd.h>
#include "log.h"
#define ARR_SIZE(arr) (sizeof(arr)/sizeof(arr[0]))
#ifdef __FAST_MATH__

View File

@ -13,6 +13,7 @@
#include "c2.h"
#include "x.h"
#include "string_utils.h"
#include "log.h"
#include "win.h"

View File

@ -16,7 +16,6 @@
#include "x.h"
#include "types.h"
#include "c2.h"
#include "utils.h"
typedef struct session session_t;
typedef struct _glx_texture glx_texture_t;

View File

@ -10,6 +10,7 @@
#include "common.h"
#include "x.h"
#include "log.h"
/**
* Get a specific attribute of a window.

View File

@ -1,6 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2014 Richard Grenville <pyxlcy@gmail.com>
#include "log.h"
#include "xrescheck.h"
static xrc_xid_record_t *gs_xid_records = NULL;