Browse Source

Updated lucid (r58 -> 0.1_rc2)

early
Christian Wiese 17 years ago
parent
commit
fea26f0b54
  1. 139
      base/lucid/lucid-0.1_rc2-missing-header.patch
  2. 16
      base/lucid/lucid.conf
  3. 22
      base/lucid/lucid.desc

139
base/lucid/lucid-0.1_rc2-missing-header.patch

@ -0,0 +1,139 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../lucid/lucid-0.1_rc2-missing-header.patch
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff -ruN lucid-0.1_rc2.orig/src/char.h lucid-0.1_rc2/src/char.h
--- lucid-0.1_rc2.orig/src/char.h 1970-01-01 02:00:00.000000000 +0200
+++ lucid-0.1_rc2/src/char.h 2008-02-01 06:42:23.000000000 +0200
@@ -0,0 +1,119 @@
+// Copyright (C) 2006-2007 Benedikt Böhm <hollow@gentoo.org>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+/*!
+ * @defgroup char Character classification and manipulation
+ *
+ * The char family of macros check whether ch, which must have the value of
+ * an unsigned char, falls into a certain character class.
+ *
+ * char_isalnum() checks for an alphanumeric character; it is equivalent to
+ * (char_isalpha(ch) || char_isdigit(ch)).
+ *
+ * char_isalpha() checks for an alphabetic character; it is equivalent to
+ * (char_isupper(c) || char_islower(c)).
+ *
+ * char_isascii() checks whether ch is a 7-bit unsigned char value that fits
+ * into the ASCII character set.
+ *
+ * char_isblank() checks for a blank character; that is, a space or a tab.
+ *
+ * char_iscntrl() checks for a control character.
+ *
+ * char_isdigit() checks for a digit (0 through 9).
+ *
+ * char_isgraph() checks for any printable character except space.
+ *
+ * char_islower() checks for a lower-case character.
+ *
+ * char_isprint() checks for any printable character including space.
+ *
+ * char_ispunct() checks for any printable character which is not a space or
+ * an alphanumeric character.
+ *
+ * char_isspace() checks for white-space characters. These are: space,
+ * form-feed ('\f'), newline ('\n'), carriage return ('\r'),
+ * horizontal tab ('\t'), and vertical tab ('\v').
+ *
+ * char_isupper() checks for an uppercase letter.
+ *
+ * char_isxdigit() checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7
+ * 8 9 a b c d e f A B C D E F.
+ *
+ * char_tolower() converts a character to lowercase if applicable.
+ *
+ * char_toupper() converts a character to uppercase if applicable.
+ *
+ * @{
+ */
+
+#ifndef _LUCID_CHAR_H
+#define _LUCID_CHAR_H
+
+/*! @brief check for an ASCII character */
+#define char_isascii(ch) ((unsigned int)(ch) < 128u)
+
+/*! @brief check for a blank character (space, horizontal tab) */
+#define char_isblank(ch) (ch == ' ' || ch == '\t')
+
+/*! @brief check for an ASCII control character */
+#define char_iscntrl(ch) ((unsigned int)(ch) < 32u || ch == 127)
+
+/*! @brief check for a digit character (0-9) */
+#define char_isdigit(ch) ((unsigned int)(ch - '0') < 10u)
+
+/*! @brief check for graphable characters (excluding space) */
+#define char_isgraph(ch) ((unsigned int)(ch - '!') < 94u)
+
+/*! @brief check for a lower-case character */
+#define char_islower(ch) ((unsigned int)(ch - 'a') < 26u)
+
+/*! @brief check for a printable character (including space) */
+#define char_isprint(ch) ((unsigned int)(ch - ' ') < 95u)
+
+/*! @brief check for a whitespace character (\\t, \\n, \\v, \\f, \\r) */
+#define char_isspace(ch) ((unsigned int)(ch - '\t') < 5u || ch == ' ')
+
+/*! @brief check for an upper-case character */
+#define char_isupper(ch) ((unsigned int)(ch - 'A') < 26u)
+
+/*! @brief check for a hexadecimal character */
+#define char_isxdigit(ch) (char_isdigit(ch) || \
+ (unsigned int)(ch - 'a') < 6u || \
+ (unsigned int)(ch - 'A') < 6u)
+
+
+/*! @brief check for an upper- or lower-case character */
+#define char_isalpha(ch) (char_islower(ch) || char_isupper(ch))
+
+/*! @brief check for an upper-, lower-case or digit character */
+#define char_isalnum(ch) (char_isalpha(ch) || char_isdigit(ch))
+
+/*! @brief check for a punctuation character */
+#define char_ispunct(ch) (char_isprint(ch) && \
+ !char_isalnum(ch) && \
+ !char_isspace(ch))
+
+
+/*! @brief convert character to lower-case */
+#define char_tolower(ch) do { if (char_isupper(ch)) ch += 32; } while(0)
+
+/*! @brief convert character to upper-case */
+#define char_toupper(ch) do { if (char_islower(ch)) ch -= 32; } while(0)
+
+#endif
+
+/*! @} char */

16
base/lucid/lucid.conf

@ -1,16 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../lucid/lucid.conf
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
hook_add preconf 5 '$MAKE -f Makefile.svn'

22
base/lucid/lucid.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../lucid/lucid.desc
[COPY] Copyright (C) 2006 The OpenSDE Project
[COPY] Copyright (C) 2006 - 2008 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
@ -12,21 +12,27 @@
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] A multipurpose library to complement libvserver
[I] A multi purpose library to complement libvserver
[T] A multipurpose library to complement libvserver, used by libvserver,
[T] vcd, vstatd and vwrappers
[T] A multi purpose library that combines a lot of useful functions mainly used
[T] to complement libvserver and applications that depend on libvserver, like:
[T] vcd, vstatd and vwrappers.
[T] The lucid library contains a lot of custom functions for strings, double-
[T] linked lists, bitmaps and flag lists, input/output, cryptogrpahic digests,
[T] and tcp connections.
[T] Some of these functions, especially string and list functions, are
[T] completely self-contained and do not rely on libc, to makes integration
[T] in 3rd party applications as easy as possible.
[A] Benedikt Böhm <hollow@gentoo.org>
[M] Christian Wiese <jeru@ixplanet.org>
[C] extra/security
[C] extra/library
[L] GPL
[S] Alpha
[V] r58
[V] 0.1_rc2
[P] X -----5---9 200.000
[D] X lucid-svn-r58.tar.bz2 svn+http://dev.croup.de/repos/lucid/trunk -r58
[D] 0 lucid-0.1_rc2.tar.gz http://people.linux-vserver.org/~hollow/lucid/

Loading…
Cancel
Save