Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c693aa638 | ||
|
|
517a9d9605 | ||
|
|
9a084fe0bd | ||
|
|
91e3daf3dc |
@@ -1,4 +1,4 @@
|
|||||||
sermon 1.0
|
sermon 1.2
|
||||||
==========
|
==========
|
||||||
|
|
||||||
This utility converts text markup into various presentable forms.
|
This utility converts text markup into various presentable forms.
|
||||||
|
|||||||
10
configure.ac
10
configure.ac
@@ -2,13 +2,13 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
AC_INIT([sermon], [1.1], [david.a.baer@gmail.com])
|
AC_INIT([sermon], [1.2], [david.a.baer@gmail.com])
|
||||||
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
|
||||||
AC_CONFIG_SRCDIR([config.h.in])
|
AC_CONFIG_SRCDIR([config.h.in])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC_C99
|
||||||
AC_PROG_LEX
|
AC_PROG_LEX
|
||||||
AC_PROG_YACC
|
AC_PROG_YACC
|
||||||
|
|
||||||
@@ -24,16 +24,20 @@ AC_CHECK_HEADERS([inttypes.h libintl.h limits.h malloc.h stddef.h stdint.h stdli
|
|||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_TYPE_INT16_T
|
AC_TYPE_INT16_T
|
||||||
AC_TYPE_INT32_T
|
AC_TYPE_INT32_T
|
||||||
|
AC_TYPE_INT64_T
|
||||||
AC_TYPE_INT8_T
|
AC_TYPE_INT8_T
|
||||||
|
AC_TYPE_PID_T
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
AC_TYPE_UINT16_T
|
AC_TYPE_UINT16_T
|
||||||
AC_TYPE_UINT32_T
|
AC_TYPE_UINT32_T
|
||||||
|
AC_TYPE_UINT64_T
|
||||||
AC_TYPE_UINT8_T
|
AC_TYPE_UINT8_T
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
|
AC_FUNC_FORK
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
AC_FUNC_REALLOC
|
AC_FUNC_REALLOC
|
||||||
AC_CHECK_FUNCS([memset pledge realpath strdup strndup])
|
AC_CHECK_FUNCS([localtime_r pledge memset realpath strcasecmp strdup strndup strrchr])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
data/Makefile
|
data/Makefile
|
||||||
|
|||||||
@@ -69,23 +69,23 @@ freeTokenizer(utf8iterator* iter) {
|
|||||||
utf8FreeIterator(iter);
|
utf8FreeIterator(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
int
|
||||||
greekChar(uint32_t ch) {
|
greekChar(uint32_t ch) {
|
||||||
return (((0x370 <= ch) && (ch <= 0x3ff)) ||
|
return (((0x370 <= ch) && (ch <= 0x3ff)) ||
|
||||||
((0x1f00 <= ch) && (ch <= 0x1fff)));
|
((0x1f00 <= ch) && (ch <= 0x1fff)));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
int
|
||||||
extendedPunctuation(uint32_t ch) {
|
extendedPunctuation(uint32_t ch) {
|
||||||
return ((0x2000 <= ch) && (ch <= 0x206f));
|
return ((0x2000 <= ch) && (ch <= 0x206f));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
int
|
||||||
latinChar(uint32_t ch) {
|
latinChar(uint32_t ch) {
|
||||||
return (ch <= 0xff) || extendedPunctuation(ch);
|
return (ch <= 0xff) || extendedPunctuation(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
int
|
||||||
httpAt(Tokenizer tokenizer) {
|
httpAt(Tokenizer tokenizer) {
|
||||||
return ((tolower(tokenizer->txt[tokenizer->byteIndex]) == 'h') &&
|
return ((tolower(tokenizer->txt[tokenizer->byteIndex]) == 'h') &&
|
||||||
(tolower(tokenizer->txt[tokenizer->byteIndex + 1]) == 't') &&
|
(tolower(tokenizer->txt[tokenizer->byteIndex + 1]) == 't') &&
|
||||||
|
|||||||
Reference in New Issue
Block a user