0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd: Minor housekeeping fixes.

This commit is contained in:
Jason Volk 2018-01-12 03:21:58 -08:00
parent 11adbae89a
commit d3be7129cf
5 changed files with 70 additions and 74 deletions

View file

@ -1,21 +1,21 @@
/** // Copyright (C) Matrix Construct Developers, Authors & Contributors
* Copyright (C) 2014 Jason Volk // Copyright (C) 2016-2018 Jason Volk
* Copyright (C) 2014 Svetlana Tkachenko //
* Copyright (C) 2016 Charybdis Development Team // Permission to use, copy, modify, and/or distribute this software for any
* // purpose with or without fee is hereby granted, provided that the above
* This program is free software: you can redistribute it and/or modify // copyright notice and this permission notice is present in all copies.
* it under the terms of the GNU General Public License as published by //
* the Free Software Foundation, either version 3 of the License, or // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* (at your option) any later version. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* This program is distributed in the hope that it will be useful, // DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* but WITHOUT ANY WARRANTY; without even the implied warranty of // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* GNU General Public License for more details. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* You should have received a copy of the GNU General Public License // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* along with this program. If not, see <http://www.gnu.org/licenses/>. // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
*/ // POSSIBILITY OF SUCH DAMAGE.
#pragma once #pragma once
#define HAVE_IRCD_COLOR_H #define HAVE_IRCD_COLOR_H
@ -23,23 +23,24 @@
/// Legacy mIRC color swatch /// Legacy mIRC color swatch
namespace ircd::color namespace ircd::color
{ {
enum mode enum mode :uint8_t;
:uint8_t
{
OFF = 0x0f,
BOLD = 0x02,
COLOR = 0x03,
ITALIC = 0x09,
STRIKE = 0x13,
UNDER = 0x15,
UNDER2 = 0x1f,
REVERSE = 0x16,
};
enum class fg; enum class fg;
enum class bg; enum class bg;
} }
enum ircd::color::mode
:uint8_t
{
OFF = 0x0f,
BOLD = 0x02,
COLOR = 0x03,
ITALIC = 0x09,
STRIKE = 0x13,
UNDER = 0x15,
UNDER2 = 0x1f,
REVERSE = 0x16,
};
enum class ircd::color::fg enum class ircd::color::fg
{ {
WHITE, BLACK, BLUE, GREEN, WHITE, BLACK, BLUE, GREEN,

View file

@ -21,7 +21,7 @@
*/ */
#pragma once #pragma once
#define HAVE_IRCD_UTIL_DATE_H #define HAVE_IRCD_DATE_H
namespace ircd namespace ircd
{ {

View file

@ -21,7 +21,7 @@
*/ */
#pragma once #pragma once
#define HAVE_IRCD_UTIL_RANDOM_H #define HAVE_IRCD_RAND_H
/// Some character set dictionaries /// Some character set dictionaries
namespace ircd::rand::dict namespace ircd::rand::dict

View file

@ -1,24 +1,21 @@
/* // Copyright (C) Matrix Construct Developers, Authors & Contributors
* Copyright (C) 2017 Matrix Construct Development Team // Copyright (C) 2016-2018 Jason Volk
* Copyright (C) 2017 Jason Volk <jason@zemos.net> //
* // Permission to use, copy, modify, and/or distribute this software for any
* Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above
* purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice is present in all copies.
* copyright notice and this permission notice is present in all copies. //
* // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*
*/
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// //

View file

@ -1,23 +1,21 @@
/* // Copyright (C) Matrix Construct Developers, Authors & Contributors
* Copyright (C) 2016 Charybdis Development Team // Copyright (C) 2016-2018 Jason Volk
* Copyright (C) 2016 Jason Volk <jason@zemos.net> //
* // Permission to use, copy, modify, and/or distribute this software for any
* Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above
* purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice is present in all copies.
* copyright notice and this permission notice is present in all copies. //
* // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once #pragma once
#define HAVE_IRCD_UTIL_LIFE_GUARD_H #define HAVE_IRCD_UTIL_LIFE_GUARD_H