Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data_lang] Replace pyj8 string encoding with fastfunc
- Loading branch information
Andy C
committed
Jan 12, 2024
1 parent
f4c29f3
commit e07042a
Showing
5 changed files
with
32 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
def J8EncodeString(s: str, j8_fallback: int) -> str | ||
def J8EncodeString(s: str, j8_fallback: int) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python2 | ||
from distutils.core import setup, Extension | ||
|
||
module = Extension('fastfunc', | ||
sources = ['data_lang/j8c.c', 'pyext/fastfunc.c'], | ||
include_dirs = ['.'], | ||
undef_macros = ['NDEBUG']) | ||
|
||
setup(name = 'fastfunc', | ||
version = '1.0', | ||
description = 'C functions like J8 encoding', | ||
ext_modules = [module]) |