summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cregex.c1
-rw-r--r--src/singleheader.py6
-rw-r--r--src/utf8code.c1
3 files changed, 3 insertions, 5 deletions
diff --git a/src/cregex.c b/src/cregex.c
index c17e1967..def759ee 100644
--- a/src/cregex.c
+++ b/src/cregex.c
@@ -28,7 +28,6 @@ THE SOFTWARE.
#include <stc/cstr.h>
#include <stc/cregex.h> // header only
#include <setjmp.h>
-#include <ctype.h>
typedef uint32_t _Rune; /* Utf8 code point */
typedef int32_t _Token;
diff --git a/src/singleheader.py b/src/singleheader.py
index f5272cfb..2255568d 100644
--- a/src/singleheader.py
+++ b/src/singleheader.py
@@ -5,15 +5,15 @@ import sys
import os
from os.path import dirname, join as path_join, abspath, basename, exists
-extra_paths = [path_join(dirname(abspath(__file__)), "include")]
-
+top_dir = dirname(abspath(__file__))
+extra_paths = [path_join(top_dir, 'include'), path_join(top_dir, '..', 'include')]
def find_file(included_name, current_file):
current_dir = dirname(abspath(current_file))
for idir in [current_dir] + extra_paths:
try_path = path_join(idir, included_name)
if exists(try_path):
- return try_path
+ return abspath(try_path)
return None
diff --git a/src/utf8code.c b/src/utf8code.c
index a892f5fd..ecfdd24d 100644
--- a/src/utf8code.c
+++ b/src/utf8code.c
@@ -1,6 +1,5 @@
#ifndef UTF8_C_INCLUDED
#define UTF8_C_INCLUDED
-#include <ctype.h>
#include <stc/utf8.h> // header only
#include "utf8tabs.inc"