diff options
| author | Tyge Løvset <[email protected]> | 2023-02-05 11:20:08 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-05 11:20:08 +0100 |
| commit | ff5a1bf4a623cf528e8b601959da993917e79c04 (patch) | |
| tree | 9b071b64d0abe7f0c752c14f6582f6584c62a3a0 /src | |
| parent | adc47cefc2976768c3f0b773bd26bfd1062e8a53 (diff) | |
| download | STC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.tar.gz STC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.zip | |
- Updated cspan.h to allow for compiling some functions as shared symbols.
- Fixed issue #45 warning -Wunused-parameter in clist.h
- Fixed some issues with the singleheader.py generator.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cregex.c | 1 | ||||
| -rw-r--r-- | src/singleheader.py | 6 | ||||
| -rw-r--r-- | src/utf8code.c | 1 |
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" |
