~rcr/rirc

3e478875afa86a8af3832419bddbd019ed7d91dd — Richard Robbins 2 years ago 7ca2a99
refactor namespacing of includes
M src/components/buffer.h => src/components/buffer.h +2 -2
@@ 1,5 1,5 @@
#ifndef BUFFER_H
#define BUFFER_H
#ifndef RIRC_COMPONENTS_BUFFER_H
#define RIRC_COMPONENTS_BUFFER_H

#include <time.h>


M src/components/channel.h => src/components/channel.h +2 -2
@@ 1,5 1,5 @@
#ifndef CHANNEL_H
#define CHANNEL_H
#ifndef RIRC_COMPONENTS_CHANNEL_H
#define RIRC_COMPONENTS_CHANNEL_H

#include "src/components/buffer.h"
#include "src/components/input.h"

M src/components/input.h => src/components/input.h +2 -2
@@ 1,5 1,5 @@
#ifndef INPUT_H
#define INPUT_H
#ifndef RIRC_COMPONENTS_INPUT_H
#define RIRC_COMPONENTS_INPUT_H

/* Buffer input
 *

M src/components/ircv3.h => src/components/ircv3.h +2 -2
@@ 1,5 1,5 @@
#ifndef IRCV3_CAP_H
#define IRCV3_CAP_H
#ifndef RIRC_COMPONENTS_IRCV3_CAP_H
#define RIRC_COMPONENTS_IRCV3_CAP_H

#define IRCV3_CAP_AUTO   (1 << 0)
#define IRCV3_CAP_NO_DEL (1 << 1)

M src/components/mode.h => src/components/mode.h +2 -2
@@ 1,5 1,5 @@
#ifndef MODE_H
#define MODE_H
#ifndef RIRC_COMPONENTS_MODE_H
#define RIRC_COMPONENTS_MODE_H

/* usermodes, chanmodes and prfxmode configuration
 *

M src/components/server.h => src/components/server.h +2 -2
@@ 1,5 1,5 @@
#ifndef SERVER_H
#define SERVER_H
#ifndef RIRC_COMPONENTS_SERVER_H
#define RIRC_COMPONENTS_SERVER_H

#include "src/components/buffer.h"
#include "src/components/channel.h"

M src/components/user.h => src/components/user.h +2 -2
@@ 1,5 1,5 @@
#ifndef NICKLIST_H
#define NICKLIST_H
#ifndef RIRC_COMPONENTS_USER_H
#define RIRC_COMPONENTS_USER_H

#include "src/components/mode.h"
#include "src/utils/tree.h"

M src/draw.h => src/draw.h +2 -2
@@ 1,5 1,5 @@
#ifndef DRAW_H
#define DRAW_H
#ifndef RIRC_DRAW_H
#define RIRC_DRAW_H

enum draw_bit
{

M src/handlers/irc_ctcp.h => src/handlers/irc_ctcp.h +2 -2
@@ 1,5 1,5 @@
#ifndef IRC_CTCP_H
#define IRC_CTCP_H
#ifndef RIRC_HANDLERS_IRC_CTCP_H
#define RIRC_HANDLERS_IRC_CTCP_H

#include "src/components/server.h"


M src/handlers/irc_recv.h => src/handlers/irc_recv.h +2 -2
@@ 1,5 1,5 @@
#ifndef IRC_RECV_H
#define IRC_RECV_H
#ifndef RIRC_HANDLERS_IRC_RECV_H
#define RIRC_HANDLERS_IRC_RECV_H

/* Summary of irc protocol implementation:
 *

M src/handlers/irc_send.h => src/handlers/irc_send.h +2 -2
@@ 1,5 1,5 @@
#ifndef IRC_SEND_H
#define IRC_SEND_H
#ifndef RIRC_HANDLERS_IRC_SEND_H
#define RIRC_HANDLERS_IRC_SEND_H

#include "src/components/channel.h"
#include "src/components/server.h"

M src/handlers/ircv3.h => src/handlers/ircv3.h +2 -2
@@ 1,5 1,5 @@
#ifndef IRCV3_H
#define IRCV3_H
#ifndef RIRC_HANDLERS_IRCV3_H
#define RIRC_HANDLERS_IRCV3_H

#include "src/components/server.h"
#include "src/utils/utils.h"

M src/io.h => src/io.h +2 -2
@@ 1,5 1,5 @@
#ifndef IO_H
#define IO_H
#ifndef RIRC_IO_H
#define RIRC_IO_H

/* Handling off all network io, user input and signals
 *

M src/rirc.h => src/rirc.h +2 -2
@@ 1,5 1,5 @@
#ifndef RIRC_H
#define RIRC_H
#ifndef RIRC_RIRC_H
#define RIRC_RIRC_H

/* Default config values obtained at runtime */


M src/state.h => src/state.h +2 -2
@@ 1,5 1,5 @@
#ifndef STATE_H
#define STATE_H
#ifndef RIRC_STATE_H
#define RIRC_STATE_H

#include "src/components/buffer.h"
#include "src/components/channel.h"

M src/utils/list.h => src/utils/list.h +2 -2
@@ 1,5 1,5 @@
#ifndef LIST_H
#define LIST_H
#ifndef RIRC_UTILS_LIST_H
#define RIRC_UTILS_LIST_H

/* TODO: abstract the list implementations in server/channel */


M src/utils/tree.h => src/utils/tree.h +2 -2
@@ 1,5 1,5 @@
#ifndef TREE_H
#define TREE_H
#ifndef RIRC_UTILS_TREE_H
#define RIRC_UTILS_TREE_H

#include <stddef.h>


M src/utils/utils.h => src/utils/utils.h +2 -2
@@ 1,5 1,5 @@
#ifndef UTILS_H
#define UTILS_H
#ifndef RIRC_UTILS_UTILS_H
#define RIRC_UTILS_UTILS_H

#include <stdio.h>
#include <stdlib.h>