Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
81f8f45b
Commit
81f8f45b
authored
Jul 04, 2016
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace all include guards by #pragma once
It’s $CURRENT_YEAR
parent
5321d29c
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
101 additions
and
124 deletions
+101
-124
louloulibs/config/config.hpp
louloulibs/config/config.hpp
+3
-3
louloulibs/logger/logger.hpp
louloulibs/logger/logger.hpp
+3
-3
louloulibs/network/credentials_manager.hpp
louloulibs/network/credentials_manager.hpp
+2
-3
louloulibs/network/dns_handler.hpp
louloulibs/network/dns_handler.hpp
+1
-3
louloulibs/network/dns_socket_handler.hpp
louloulibs/network/dns_socket_handler.hpp
+1
-3
louloulibs/network/poller.hpp
louloulibs/network/poller.hpp
+3
-3
louloulibs/network/resolver.hpp
louloulibs/network/resolver.hpp
+3
-3
louloulibs/network/socket_handler.hpp
louloulibs/network/socket_handler.hpp
+1
-3
louloulibs/network/tcp_socket_handler.hpp
louloulibs/network/tcp_socket_handler.hpp
+3
-3
louloulibs/utils/encoding.hpp
louloulibs/utils/encoding.hpp
+3
-3
louloulibs/utils/reload.hpp
louloulibs/utils/reload.hpp
+3
-3
louloulibs/utils/revstr.hpp
louloulibs/utils/revstr.hpp
+3
-3
louloulibs/utils/scopeguard.hpp
louloulibs/utils/scopeguard.hpp
+1
-3
louloulibs/utils/split.hpp
louloulibs/utils/split.hpp
+3
-3
louloulibs/utils/string.hpp
louloulibs/utils/string.hpp
+3
-3
louloulibs/utils/timed_events.hpp
louloulibs/utils/timed_events.hpp
+1
-4
louloulibs/utils/tolower.hpp
louloulibs/utils/tolower.hpp
+3
-3
louloulibs/utils/xdg.hpp
louloulibs/utils/xdg.hpp
+3
-3
louloulibs/xmpp/adhoc_command.hpp
louloulibs/xmpp/adhoc_command.hpp
+1
-4
louloulibs/xmpp/adhoc_commands_handler.hpp
louloulibs/xmpp/adhoc_commands_handler.hpp
+1
-4
louloulibs/xmpp/adhoc_session.hpp
louloulibs/xmpp/adhoc_session.hpp
+1
-4
louloulibs/xmpp/body.hpp
louloulibs/xmpp/body.hpp
+3
-3
louloulibs/xmpp/jid.hpp
louloulibs/xmpp/jid.hpp
+3
-3
louloulibs/xmpp/roster.hpp
louloulibs/xmpp/roster.hpp
+3
-3
louloulibs/xmpp/xmpp_component.hpp
louloulibs/xmpp/xmpp_component.hpp
+3
-3
louloulibs/xmpp/xmpp_parser.hpp
louloulibs/xmpp/xmpp_parser.hpp
+3
-3
louloulibs/xmpp/xmpp_stanza.hpp
louloulibs/xmpp/xmpp_stanza.hpp
+3
-3
src/bridge/bridge.hpp
src/bridge/bridge.hpp
+3
-3
src/bridge/colors.hpp
src/bridge/colors.hpp
+3
-3
src/bridge/list_element.hpp
src/bridge/list_element.hpp
+3
-3
src/database/database.hpp
src/database/database.hpp
+3
-3
src/irc/iid.hpp
src/irc/iid.hpp
+3
-3
src/irc/irc_channel.hpp
src/irc/irc_channel.hpp
+3
-3
src/irc/irc_client.hpp
src/irc/irc_client.hpp
+3
-3
src/irc/irc_message.hpp
src/irc/irc_message.hpp
+3
-3
src/irc/irc_user.hpp
src/irc/irc_user.hpp
+3
-3
src/utils/empty_if_fixed_server.hpp
src/utils/empty_if_fixed_server.hpp
+3
-3
src/xmpp/biboumi_adhoc_commands.hpp
src/xmpp/biboumi_adhoc_commands.hpp
+3
-3
src/xmpp/biboumi_component.hpp
src/xmpp/biboumi_component.hpp
+3
-3
tests/io_tester.hpp
tests/io_tester.hpp
+1
-3
No files found.
louloulibs/config/config.hpp
View file @
81f8f45b
...
...
@@ -13,8 +13,8 @@
* save the config into the file.
*/
#
ifndef CONFIG_INCLUDED
# define CONFIG_INCLUDED
#
pragma once
#include <functional>
#include <fstream>
...
...
@@ -91,4 +91,4 @@ private:
};
#endif // CONFIG_INCLUDED
louloulibs/logger/logger.hpp
View file @
81f8f45b
#
ifndef LOGGER_INCLUDED
# define LOGGER_INCLUDED
#
pragma once
/**
* Singleton used in logger macros to write into files or stdout, with
...
...
@@ -123,4 +123,4 @@ namespace logging_details
#define log_debug(...) logging_details::log_debug(WHERE, __VA_ARGS__)
#endif // LOGGER_INCLUDED
louloulibs/network/credentials_manager.hpp
View file @
81f8f45b
#ifndef BIBOUMI_CREDENTIALS_MANAGER_HPP
#define BIBOUMI_CREDENTIALS_MANAGER_HPP
#pragma once
#include "louloulibs.h"
...
...
@@ -37,4 +36,4 @@ private:
};
#endif //BOTAN_FOUND
#endif //BIBOUMI_CREDENTIALS_MANAGER_HPP
louloulibs/network/dns_handler.hpp
View file @
81f8f45b
#ifndef DNS_HANDLER_HPP_INCLUDED
#define DNS_HANDLER_HPP_INCLUDED
#pragma once
#include <louloulibs.h>
#ifdef CARES_FOUND
...
...
@@ -56,4 +55,3 @@ private:
};
#endif
/* CARES_FOUND */
#endif
/* DNS_HANDLER_HPP_INCLUDED */
louloulibs/network/dns_socket_handler.hpp
View file @
81f8f45b
#ifndef DNS_SOCKET_HANDLER_HPP
# define DNS_SOCKET_HANDLER_HPP
#pragma once
#include <louloulibs.h>
#ifdef CARES_FOUND
...
...
@@ -44,4 +43,3 @@ private:
};
#endif // CARES_FOUND
#endif // DNS_SOCKET_HANDLER_HPP
louloulibs/network/poller.hpp
View file @
81f8f45b
#
ifndef POLLER_INCLUDED
# define POLLER_INCLUDED
#
pragma once
#include <network/socket_handler.hpp>
...
...
@@ -91,4 +91,4 @@ private:
#endif
};
#endif // POLLER_INCLUDED
louloulibs/network/resolver.hpp
View file @
81f8f45b
#
ifndef RESOLVER_HPP_INCLUDED
#define RESOLVER_HPP_INCLUDED
#
pragma once
#include "louloulibs.h"
...
...
@@ -125,4 +125,4 @@ private:
std
::
string
addr_to_string
(
const
struct
addrinfo
*
rp
);
#endif
/* RESOLVER_HPP_INCLUDED */
louloulibs/network/socket_handler.hpp
View file @
81f8f45b
#ifndef SOCKET_HANDLER_HPP
# define SOCKET_HANDLER_HPP
#pragma once
#include <louloulibs.h>
#include <memory>
...
...
@@ -41,4 +40,3 @@ protected:
socket_t
socket
;
};
#endif // SOCKET_HANDLER_HPP
louloulibs/network/tcp_socket_handler.hpp
View file @
81f8f45b
#
ifndef SOCKET_HANDLER_INCLUDED
# define SOCKET_HANDLER_INCLUDED
#
pragma once
#include "louloulibs.h"
...
...
@@ -270,5 +270,5 @@ private:
#endif // BOTAN_FOUND
};
#endif // SOCKET_HANDLER_INCLUDED
louloulibs/utils/encoding.hpp
View file @
81f8f45b
#
ifndef ENCODING_INCLUDED
# define ENCODING_INCLUDED
#
pragma once
#include <string>
...
...
@@ -40,4 +40,4 @@ namespace xep0106
void
encode
(
std
::
string
&
);
}
#endif // ENCODING_INCLUDED
louloulibs/utils/reload.hpp
View file @
81f8f45b
#
ifndef RELOAD_HPP_INCLUDED
#define RELOAD_HPP_INCLUDED
#
pragma once
/**
* Reload the server's configuration, and close the logger (so that it
...
...
@@ -7,4 +7,4 @@
*/
void
reload_process
();
#endif
/* RELOAD_HPP_INCLUDED */
louloulibs/utils/revstr.hpp
View file @
81f8f45b
#
ifndef REVSTR_HPP_INCLUDED
# define REVSTR_HPP_INCLUDED
#
pragma once
#include <string>
...
...
@@ -8,4 +8,4 @@ namespace utils
std
::
string
revstr
(
const
std
::
string
&
original
);
}
#endif // REVSTR_HPP_INCLUDED
louloulibs/utils/scopeguard.hpp
View file @
81f8f45b
#ifndef SCOPEGUARD_HPP
#define SCOPEGUARD_HPP
#pragma once
#include <functional>
#include <vector>
...
...
@@ -88,4 +87,3 @@ private:
}
#endif
louloulibs/utils/split.hpp
View file @
81f8f45b
#
ifndef SPLIT_INCLUDED
# define SPLIT_INCLUDED
#
pragma once
#include <string>
#include <vector>
...
...
@@ -9,4 +9,4 @@ namespace utils
std
::
vector
<
std
::
string
>
split
(
const
std
::
string
&
s
,
const
char
delim
,
const
bool
allow_empty
=
true
);
}
#endif // SPLIT_INCLUDED
louloulibs/utils/string.hpp
View file @
81f8f45b
#
ifndef STRING_UTILS_HPP_INCLUDED
#define STRING_UTILS_HPP_INCLUDED
#
pragma once
#include <vector>
#include <string>
...
...
@@ -7,4 +7,4 @@
bool
to_bool
(
const
std
::
string
&
val
);
std
::
vector
<
std
::
string
>
cut
(
const
std
::
string
&
val
,
const
std
::
size_t
size
);
#endif
/* STRING_UTILS_HPP_INCLUDED */
louloulibs/utils/timed_events.hpp
View file @
81f8f45b
#ifndef TIMED_EVENTS_HPP
# define TIMED_EVENTS_HPP
#pragma once
#include <functional>
#include <string>
...
...
@@ -131,5 +130,3 @@ private:
std
::
vector
<
TimedEvent
>
events
;
explicit
TimedEventsManager
()
=
default
;
};
#endif // TIMED_EVENTS_HPP
louloulibs/utils/tolower.hpp
View file @
81f8f45b
#
ifndef TOLOWER_INCLUDED
# define TOLOWER_INCLUDED
#
pragma once
#include <string>
...
...
@@ -8,4 +8,4 @@ namespace utils
std
::
string
tolower
(
const
std
::
string
&
original
);
}
#endif // SPLIT_INCLUDED
louloulibs/utils/xdg.hpp
View file @
81f8f45b
#
ifndef XDG_HPP_INCLUDED
#define XDG_HPP_INCLUDED
#
pragma once
#include <string>
...
...
@@ -11,4 +11,4 @@
std
::
string
xdg_config_path
(
const
std
::
string
&
filename
);
std
::
string
xdg_data_path
(
const
std
::
string
&
filename
);
#endif
/* XDG_HPP_INCLUDED */
louloulibs/xmpp/adhoc_command.hpp
View file @
81f8f45b
#ifndef ADHOC_COMMAND_HPP
# define ADHOC_COMMAND_HPP
#pragma once
/**
* Describe an ad-hoc command.
...
...
@@ -43,5 +42,3 @@ void PingStep1(XmppComponent&, AdhocSession& session, XmlNode& command_node);
void
HelloStep1
(
XmppComponent
&
,
AdhocSession
&
session
,
XmlNode
&
command_node
);
void
HelloStep2
(
XmppComponent
&
,
AdhocSession
&
session
,
XmlNode
&
command_node
);
void
Reload
(
XmppComponent
&
,
AdhocSession
&
session
,
XmlNode
&
command_node
);
#endif // ADHOC_COMMAND_HPP
louloulibs/xmpp/adhoc_commands_handler.hpp
View file @
81f8f45b
#ifndef ADHOC_COMMANDS_HANDLER_HPP
# define ADHOC_COMMANDS_HANDLER_HPP
#pragma once
/**
* Manage a list of available AdhocCommands and the list of ongoing
...
...
@@ -70,5 +69,3 @@ private:
*/
std
::
map
<
std
::
pair
<
const
std
::
string
,
const
std
::
string
>
,
AdhocSession
>
sessions
;
};
#endif // ADHOC_COMMANDS_HANDLER_HPP
louloulibs/xmpp/adhoc_session.hpp
View file @
81f8f45b
#ifndef ADHOC_SESSION_HPP
# define ADHOC_SESSION_HPP
#pragma once
#include <xmpp/xmpp_stanza.hpp>
...
...
@@ -87,5 +86,3 @@ public:
*/
std
::
map
<
std
::
string
,
std
::
string
>
vars
;
};
#endif // ADHOC_SESSION_HPP
louloulibs/xmpp/body.hpp
View file @
81f8f45b
#
ifndef XMPP_BODY_HPP_INCLUDED
#define XMPP_BODY_HPP_INCLUDED
#
pragma once
namespace
Xmpp
{
...
...
@@ -9,4 +9,4 @@ namespace Xmpp
using
body
=
std
::
tuple
<
const
std
::
string
,
std
::
unique_ptr
<
XmlNode
>>
;
}
#endif
/* XMPP_BODY_HPP_INCLUDED */
louloulibs/xmpp/jid.hpp
View file @
81f8f45b
#
ifndef JID_INCLUDED
# define JID_INCLUDED
#
pragma once
#include <string>
...
...
@@ -41,4 +41,4 @@ public:
*/
std
::
string
jidprep
(
const
std
::
string
&
original
);
#endif // JID_INCLUDED
louloulibs/xmpp/roster.hpp
View file @
81f8f45b
#
ifndef ROSTER_HPP_INCLUDED
#define ROSTER_HPP_INCLUDED
#
pragma once
#include <algorithm>
#include <string>
...
...
@@ -68,4 +68,4 @@ private:
Roster
&
operator
=
(
Roster
&&
)
=
delete
;
};
#endif
/* ROSTER_HPP_INCLUDED */
louloulibs/xmpp/xmpp_component.hpp
View file @
81f8f45b
#
ifndef XMPP_COMPONENT_INCLUDED
# define XMPP_COMPONENT_INCLUDED
#
pragma once
#include <xmpp/adhoc_commands_handler.hpp>
#include <network/tcp_socket_handler.hpp>
...
...
@@ -240,4 +240,4 @@ protected:
AdhocCommandsHandler
adhoc_commands_handler
;
};
#endif // XMPP_COMPONENT_INCLUDED
louloulibs/xmpp/xmpp_parser.hpp
View file @
81f8f45b
#
ifndef XMPP_PARSER_INCLUDED
# define XMPP_PARSER_INCLUDED
#
pragma once
#include <xmpp/xmpp_stanza.hpp>
...
...
@@ -130,4 +130,4 @@ private:
std
::
vector
<
std
::
function
<
void
(
const
XmlNode
&
)
>>
stream_close_callbacks
;
};
#endif // XMPP_PARSER_INCLUDED
louloulibs/xmpp/xmpp_stanza.hpp
View file @
81f8f45b
#
ifndef XMPP_STANZA_INCLUDED
# define XMPP_STANZA_INCLUDED
#
pragma once
#include <map>
#include <string>
...
...
@@ -143,4 +143,4 @@ std::ostream& operator<<(std::ostream& os, const XmlNode& node);
*/
using
Stanza
=
XmlNode
;
#endif // XMPP_STANZA_INCLUDED
src/bridge/bridge.hpp
View file @
81f8f45b
#
ifndef BRIDGE_INCLUDED
# define BRIDGE_INCLUDED
#
pragma once
#include <irc/irc_message.hpp>
#include <irc/irc_client.hpp>
...
...
@@ -290,4 +290,4 @@ struct IRCNotConnected: public std::exception
const
std
::
string
hostname
;
};
#endif // BRIDGE_INCLUDED
src/bridge/colors.hpp
View file @
81f8f45b
#
ifndef COLORS_INCLUDED
# define COLORS_INCLUDED
#
pragma once
/**
* A module handling the conversion between IRC colors and XHTML-IM, and
...
...
@@ -53,4 +53,4 @@ static const char irc_format_char[] = {
*/
Xmpp
::
body
irc_format_to_xhtmlim
(
const
std
::
string
&
str
);
#endif // COLORS_INCLUDED
src/bridge/list_element.hpp
View file @
81f8f45b
#
ifndef LIST_ELEMENT_HPP_INCLUDED
#define LIST_ELEMENT_HPP_INCLUDED
#
pragma once
#include <string>
...
...
@@ -16,4 +16,4 @@ struct ListElement
std
::
string
topic
;
};
#endif
/* LIST_ELEMENT_HPP_INCLUDED */
src/database/database.hpp
View file @
81f8f45b
#
ifndef DATABASE_HPP_INCLUDED
#define DATABASE_HPP_INCLUDED
#
pragma once
#include <biboumi.h>
#ifdef USE_DATABASE
...
...
@@ -50,4 +50,4 @@ private:
};
#endif
/* USE_DATABASE */
#endif
/* DATABASE_HPP_INCLUDED */
src/irc/iid.hpp
View file @
81f8f45b
#
ifndef IID_INCLUDED
# define IID_INCLUDED
#
pragma once
#include <string>
...
...
@@ -76,4 +76,4 @@ namespace std {
const
std
::
string
to_string
(
const
Iid
&
iid
);
}
#endif // IID_INCLUDED
src/irc/irc_channel.hpp
View file @
81f8f45b
#
ifndef IRC_CHANNEL_INCLUDED
# define IRC_CHANNEL_INCLUDED
#
pragma once
#include <irc/irc_user.hpp>
#include <memory>
...
...
@@ -67,4 +67,4 @@ public:
bool
joining
;
};
#endif // IRC_CHANNEL_INCLUDED
src/irc/irc_client.hpp
View file @
81f8f45b
#
ifndef IRC_CLIENT_INCLUDED
# define IRC_CLIENT_INCLUDED
#
pragma once
#include <irc/irc_message.hpp>
#include <irc/irc_channel.hpp>
...
...
@@ -380,4 +380,4 @@ private:
Resolver
dns_resolver
;
};
#endif // IRC_CLIENT_INCLUDED
src/irc/irc_message.hpp
View file @
81f8f45b
#
ifndef IRC_MESSAGE_INCLUDED
# define IRC_MESSAGE_INCLUDED
#
pragma once
#include <vector>
#include <string>
...
...
@@ -25,4 +25,4 @@ public:
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
IrcMessage
&
message
);
#endif // IRC_MESSAGE_INCLUDED
src/irc/irc_user.hpp
View file @
81f8f45b
#
ifndef IRC_USER_INCLUDED
# define IRC_USER_INCLUDED
#
pragma once
#include <vector>
#include <string>
...
...
@@ -30,4 +30,4 @@ public:
std
::
set
<
char
>
modes
;
};
#endif // IRC_USER_INCLUDED
src/utils/empty_if_fixed_server.hpp
View file @
81f8f45b
#
ifndef EMPTY_IF_FIXED_SERVER_HPP_INCLUDED
#define EMPTY_IF_FIXED_SERVER_HPP_INCLUDED
#
pragma once
#include <string>
...
...
@@ -23,4 +23,4 @@ namespace utils
}
#endif
/* EMPTY_IF_FIXED_SERVER_HPP_INCLUDED */
src/xmpp/biboumi_adhoc_commands.hpp
View file @
81f8f45b
#
ifndef BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED
#define BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED
#
pragma once
#include <xmpp/adhoc_command.hpp>
#include <xmpp/adhoc_session.hpp>
...
...
@@ -20,4 +20,4 @@ void DisconnectUserFromServerStep1(XmppComponent&, AdhocSession& session, XmlNod
void
DisconnectUserFromServerStep2
(
XmppComponent
&
,
AdhocSession
&
session
,
XmlNode
&
command_node
);
void
DisconnectUserFromServerStep3
(
XmppComponent
&
,
AdhocSession
&
session
,
XmlNode
&
command_node
);
#endif
/* BIBOUMI_ADHOC_COMMANDS_HPP_INCLUDED */
src/xmpp/biboumi_component.hpp
View file @
81f8f45b
#
ifndef BIBOUMI_COMPONENT_INCLUDED
# define BIBOUMI_COMPONENT_INCLUDED
#
pragma once
#include <xmpp/xmpp_component.hpp>
...
...
@@ -106,4 +106,4 @@ private:
AdhocCommandsHandler
irc_channel_adhoc_commands_handler
;
};
#endif // BIBOUMI_COMPONENT_INCLUDED
tests/io_tester.hpp
View file @
81f8f45b
#ifndef BIBOUMI_IO_TESTER_HPP
#define BIBOUMI_IO_TESTER_HPP
#pragma once
#include <ostream>
#include <sstream>
...
...
@@ -44,4 +43,3 @@ private:
std
::
streambuf
*
const
old_buf
;
};
#endif //BIBOUMI_IO_TESTER_HPP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment