Remove unnecessary termcolour header files
This commit is contained in:
parent
a546a09565
commit
e053aa44ab
@ -4,7 +4,6 @@
|
|||||||
#ifdef WAPP_PLATFORM_POSIX
|
#ifdef WAPP_PLATFORM_POSIX
|
||||||
|
|
||||||
#include "terminal_colours.h"
|
#include "terminal_colours.h"
|
||||||
#include "termcolour_posix.h"
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
internal const char *colours[COUNT_TERM_COLOUR] = {
|
internal const char *colours[COUNT_TERM_COLOUR] = {
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
#ifndef TERM_COLOUR_POSIX_H
|
|
||||||
#define TERM_COLOUR_POSIX_H
|
|
||||||
|
|
||||||
#include "platform.h"
|
|
||||||
|
|
||||||
#ifdef WAPP_PLATFORM_POSIX
|
|
||||||
|
|
||||||
#include "terminal_colours.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
BEGIN_C_LINKAGE
|
|
||||||
#endif // __cplusplus
|
|
||||||
|
|
||||||
void print_coloured_text(const char *text, TerminalColour colour);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
END_C_LINKAGE
|
|
||||||
#endif // __cplusplus
|
|
||||||
|
|
||||||
#endif // !WAPP_PLATFORM_POSIX
|
|
||||||
|
|
||||||
#endif // !TERM_COLOUR_POSIX_H
|
|
@ -1,14 +1,7 @@
|
|||||||
#include "termcolour.h"
|
#include "termcolour.h"
|
||||||
#include "terminal_colours.h"
|
#include "terminal_colours.h"
|
||||||
#include "platform.h"
|
|
||||||
|
|
||||||
#ifdef WAPP_PLATFORM_WINDOWS
|
extern void print_coloured_text(const char *text, TerminalColour colour);
|
||||||
#include "termcolour_win.h"
|
|
||||||
#elif defined(WAPP_PLATFORM_POSIX)
|
|
||||||
#include "termcolour_posix.h"
|
|
||||||
#else
|
|
||||||
#error "Unrecognised platform"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void wapp_shell_termcolour_print_text(const char *text, TerminalColour colour) {
|
void wapp_shell_termcolour_print_text(const char *text, TerminalColour colour) {
|
||||||
if (colour < WAPP_TERM_COLOUR_FG_BLACK || colour > WAPP_TERM_COLOUR_FG_BR_WHITE) {
|
if (colour < WAPP_TERM_COLOUR_FG_BLACK || colour > WAPP_TERM_COLOUR_FG_BR_WHITE) {
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#ifdef WAPP_PLATFORM_WINDOWS
|
#ifdef WAPP_PLATFORM_WINDOWS
|
||||||
|
|
||||||
#include "misc_utils.h"
|
#include "misc_utils.h"
|
||||||
#include "termcolour_win.h"
|
|
||||||
#include "terminal_colours.h"
|
#include "terminal_colours.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
#ifndef TERM_COLOUR_WIN_H
|
|
||||||
#define TERM_COLOUR_WIN_H
|
|
||||||
|
|
||||||
#include "platform.h"
|
|
||||||
|
|
||||||
#ifdef WAPP_PLATFORM_WINDOWS
|
|
||||||
|
|
||||||
#include "terminal_colours.h"
|
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <Windows.h>
|
|
||||||
#include <WinCon.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
BEGIN_C_LINKAGE
|
|
||||||
#endif // __cplusplus
|
|
||||||
|
|
||||||
void print_coloured_text(const char *text, TerminalColour colour);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
END_C_LINKAGE
|
|
||||||
#endif // __cplusplus
|
|
||||||
|
|
||||||
#endif // !WAPP_PLATFORM_WINDOWS
|
|
||||||
|
|
||||||
#endif // !TERM_COLOUR_WIN_H
|
|
Loading…
Reference in New Issue
Block a user