mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Ports: Add mandoc port
This commit is contained in:
parent
77ed943275
commit
78ddf2e048
15 changed files with 1574 additions and 0 deletions
32
Ports/mandoc/patches/add-charclass.patch
Normal file
32
Ports/mandoc/patches/add-charclass.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
--- /dev/null Mon Jan 20 00:15:16 2020
|
||||
+++ mandoc-1.14.5/charclass.h Mon Jan 20 00:15:04 2020
|
||||
@@ -0,0 +1,29 @@
|
||||
+/*
|
||||
+ * Public domain, 2008, Todd C. Miller <millert@openbsd.org>
|
||||
+ *
|
||||
+ * $OpenBSD: charclass.h,v 1.2 2019/01/25 00:19:25 millert Exp $
|
||||
+ */
|
||||
+
|
||||
+/*
|
||||
+ * POSIX character class support for fnmatch() and glob().
|
||||
+ */
|
||||
+static struct cclass {
|
||||
+ const char *name;
|
||||
+ int (*isctype)(int);
|
||||
+} cclasses[] = {
|
||||
+ { "alnum", isalnum },
|
||||
+ { "alpha", isalpha },
|
||||
+ { "blank", isblank },
|
||||
+ { "cntrl", iscntrl },
|
||||
+ { "digit", isdigit },
|
||||
+ { "graph", isgraph },
|
||||
+ { "lower", islower },
|
||||
+ { "print", isprint },
|
||||
+ { "punct", ispunct },
|
||||
+ { "space", isspace },
|
||||
+ { "upper", isupper },
|
||||
+ { "xdigit", isxdigit },
|
||||
+ { NULL, NULL }
|
||||
+};
|
||||
+
|
||||
+#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)
|
Loading…
Add table
Add a link
Reference in a new issue