common: use stdbool in threads.c, log.c so cmdlib isn't needed

The only thing used by log.c was the qboolean definition, so just use
stdbool internally instead.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-04-23 14:44:14 +09:30
parent bf9bc549d2
commit bbbb3ff859
4 changed files with 5 additions and 6 deletions

View File

@ -21,15 +21,15 @@
* common/log.c
*/
#include <stdbool.h>
#include <stdarg.h>
#include <stdio.h>
#include <common/log.h>
#include <common/cmdlib.h>
#include <common/threads.h>
static FILE *logfile;
static qboolean log_ok;
static _Bool log_ok;
void
init_log(const char *filename)

View File

@ -1,13 +1,15 @@
/* common/threads.c */
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <common/cmdlib.h>
#include <common/log.h>
#include <common/threads.h>
/* Make the locks no-ops if we aren't running threads */
static qboolean threads_active = false;
static _Bool threads_active = false;
static int dispatch;
static int workcount;

View File

@ -28,7 +28,6 @@
#define __COMMON_LOG_H__
#include <stdio.h>
#include <common/cmdlib.h>
void init_log(const char *filename);
void close_log();

View File

@ -3,8 +3,6 @@
#ifndef __COMMON_THREADS_H__
#define __COMMON_THREADS_H__
#include <common/cmdlib.h>
extern int numthreads;
int GetDefaultThreads(void);