Add log.h to files that need it
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
0cebbc370a
commit
acb81bc9a9
1
src/c2.c
1
src/c2.c
|
@ -31,6 +31,7 @@
|
|||
#include "win.h"
|
||||
#include "c2.h"
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#define C2_MAX_LEVELS 10
|
||||
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
#include "win.h"
|
||||
#include "x.h"
|
||||
#include "region.h"
|
||||
#include "log.h"
|
||||
|
||||
// === Constants ===
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "config.h"
|
||||
#include "diagnostic.h"
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#define auto __auto_type
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "utils.h"
|
||||
#include "c2.h"
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
|
|
@ -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>.
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "win.h"
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#include "dbus.h"
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
*/
|
||||
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#include "opengl.h"
|
||||
|
||||
static inline int
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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__
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "c2.h"
|
||||
#include "x.h"
|
||||
#include "string_utils.h"
|
||||
#include "log.h"
|
||||
|
||||
#include "win.h"
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
1
src/x.c
1
src/x.c
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "common.h"
|
||||
#include "x.h"
|
||||
#include "log.h"
|
||||
|
||||
/**
|
||||
* Get a specific attribute of a window.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue