-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from steve-s/ss/str-format
Add HPyUnicode_FromFormat(v) and HPyErr_Format.
- Loading branch information
Showing
11 changed files
with
1,424 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
String Formatting Helpers | ||
========================= | ||
|
||
.. autocmodule:: runtime/format.c | ||
:no-members: |
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ problems due to different compilers. | |
|
||
argument-parsing | ||
build-value | ||
formatting | ||
helpers | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* String formatting helpers. These functions are not part of HPy ABI. The implementation will be linked into HPy extensions. | ||
*/ | ||
#ifndef HPY_COMMON_RUNTIME_FORMAT_H | ||
#define HPY_COMMON_RUNTIME_FORMAT_H | ||
|
||
#include "hpy.h" | ||
|
||
HPyAPI_HELPER HPy | ||
HPyUnicode_FromFormat(HPyContext *ctx, const char *fmt, ...); | ||
|
||
HPyAPI_HELPER HPy | ||
HPyUnicode_FromFormatV(HPyContext *ctx, const char *format, va_list vargs); | ||
|
||
HPyAPI_HELPER HPy | ||
HPyErr_Format(HPyContext *ctx, HPy h_type, const char *fmt, ...); | ||
|
||
#endif /* HPY_COMMON_RUNTIME_FORMAT_H */ |
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
Oops, something went wrong.