Name | simplecpreprocessor JSON |
Version |
2.3.4
JSON |
| download |
home_page | |
Summary | simplepreprocessor expands limited set of C preprocessor macros |
upload_time | 2024-02-04 21:21:54 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# simplepreprocessor
Usage
---------
import simplecpreprocessor
There will be one function called preprocess. It can either be called with a file object or
something that looks sufficiently like a file object. See unit tests to find out what's enough
for a compatible wrapper.
Line endings are by default normalized to unix but a parameter can be given to customize this
behaviour.
Gotchas
---------
Supported macros: ifdef, ifndef, define, undef, include, else,
pragma (only "once")
If using for FFI, you may want to ignore some system headers eg for types
Limitations:
* Multiline continuations supported but whitespace handling may not be 1:1
with real preprocessors. Trailing whitespace is removed if before comment,
indentation from first line is removed
* Semi-colon handling may not be identical to real preprocessors
Raw data
{
"_id": null,
"home_page": "",
"name": "simplecpreprocessor",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Seppo Yli-Olli <seppo.yli-olli@iki.fi>",
"download_url": "https://files.pythonhosted.org/packages/60/57/a9957d1e9678fac79d13ed47286a3469e622eadd86179cded005b68e9a42/simplecpreprocessor-2.3.4.tar.gz",
"platform": null,
"description": "# simplepreprocessor\n\nUsage\n---------\n\nimport simplecpreprocessor\n\nThere will be one function called preprocess. It can either be called with a file object or\nsomething that looks sufficiently like a file object. See unit tests to find out what's enough\nfor a compatible wrapper.\nLine endings are by default normalized to unix but a parameter can be given to customize this\nbehaviour.\n\nGotchas\n---------\n\nSupported macros: ifdef, ifndef, define, undef, include, else,\npragma (only \"once\")\n\nIf using for FFI, you may want to ignore some system headers eg for types\n\nLimitations:\n * Multiline continuations supported but whitespace handling may not be 1:1\n with real preprocessors. Trailing whitespace is removed if before comment,\n indentation from first line is removed\n * Semi-colon handling may not be identical to real preprocessors\n",
"bugtrack_url": null,
"license": "",
"summary": "simplepreprocessor expands limited set of C preprocessor macros",
"version": "2.3.4",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2acd8ff278e2affb93b1d28124f9b0f36e26ab9f0fc65f7b00478381ad9c1856",
"md5": "6c913dc6138f366e8df8afcb5b8cb7ce",
"sha256": "ae7403b5627d2c7ddcd78f3f2fc77339b047e6567a15fa44bd684af020e9ec2e"
},
"downloads": -1,
"filename": "simplecpreprocessor-2.3.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c913dc6138f366e8df8afcb5b8cb7ce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 12282,
"upload_time": "2024-02-04T21:21:53",
"upload_time_iso_8601": "2024-02-04T21:21:53.208232Z",
"url": "https://files.pythonhosted.org/packages/2a/cd/8ff278e2affb93b1d28124f9b0f36e26ab9f0fc65f7b00478381ad9c1856/simplecpreprocessor-2.3.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6057a9957d1e9678fac79d13ed47286a3469e622eadd86179cded005b68e9a42",
"md5": "cfc80b04fd86ff3cb07c8388d670b69f",
"sha256": "691b49deaca0f5a783ae69d595d23196fe00b64817f26e98c1bec426158db2d8"
},
"downloads": -1,
"filename": "simplecpreprocessor-2.3.4.tar.gz",
"has_sig": false,
"md5_digest": "cfc80b04fd86ff3cb07c8388d670b69f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10762,
"upload_time": "2024-02-04T21:21:54",
"upload_time_iso_8601": "2024-02-04T21:21:54.935712Z",
"url": "https://files.pythonhosted.org/packages/60/57/a9957d1e9678fac79d13ed47286a3469e622eadd86179cded005b68e9a42/simplecpreprocessor-2.3.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-04 21:21:54",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "simplecpreprocessor"
}