4 Commits
v1.1 ... v1.2

Author SHA1 Message Date
David Baer
5c693aa638 Bump version to 1.2 2017-08-09 22:31:37 -04:00
David Baer
517a9d9605 Clang compatibility 2017-08-09 22:27:29 -04:00
David Baer
9a084fe0bd Add some needed checks 2017-08-09 22:27:06 -04:00
David Baer
91e3daf3dc README.md edited online with Bitbucket 2017-01-23 05:18:11 +00:00
3 changed files with 13 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
sermon 1.0
sermon 1.2
==========
This utility converts text markup into various presentable forms.
@@ -46,4 +46,4 @@ The markup syntax is very simple:
> This paragraph will be
> a block quote.
- Text enclosed between `[* starred braces *]` will be ignored as a comment.
- Text enclosed between `[* starred braces *]` will be ignored as a comment.

View File

@@ -2,13 +2,13 @@
# Process this file with autoconf to produce a configure script.
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])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_LEX
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_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
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
data/Makefile

View File

@@ -69,23 +69,23 @@ freeTokenizer(utf8iterator* iter) {
utf8FreeIterator(iter);
}
inline int
int
greekChar(uint32_t ch) {
return (((0x370 <= ch) && (ch <= 0x3ff)) ||
((0x1f00 <= ch) && (ch <= 0x1fff)));
}
inline int
int
extendedPunctuation(uint32_t ch) {
return ((0x2000 <= ch) && (ch <= 0x206f));
}
inline int
int
latinChar(uint32_t ch) {
return (ch <= 0xff) || extendedPunctuation(ch);
}
inline int
int
httpAt(Tokenizer tokenizer) {
return ((tolower(tokenizer->txt[tokenizer->byteIndex]) == 'h') &&
(tolower(tokenizer->txt[tokenizer->byteIndex + 1]) == 't') &&