Skip to content

Commit

Permalink
Merge pull request RT-Thread#1147 from mysterywolf/itoa
Browse files Browse the repository at this point in the history
  • Loading branch information
Guozhanxin authored Jan 8, 2022
2 parents fff0786 + 5faabf8 commit 39e7638
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/POSIX/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ menu "POSIX extension functions"

source "$PKGS_DIR/packages/system/POSIX/getline/Kconfig"
source "$PKGS_DIR/packages/system/POSIX/wcwidth/Kconfig"
source "$PKGS_DIR/packages/system/POSIX/itoa/Kconfig"

endmenu
18 changes: 18 additions & 0 deletions system/POSIX/itoa/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# Kconfig file for package itoa
menuconfig PKG_USING_POSIX_ITOA
bool "Enable itoa family (not standard POSIX)"
default n

if PKG_USING_POSIX_ITOA

config PKG_POSIX_ITOA_PATH
string
default "/packages/system/POSIX/itoa"

config PKG_POSIX_ITOA_VER
string
default "latest"

endif

29 changes: 29 additions & 0 deletions system/POSIX/itoa/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "itoa",
"description": "itoa family for RT-Thread POSIX (not standard)",
"description_zh": "itoa家族函数(非POSIX标准)",
"enable": "PKG_USING_POSIX_ITOA",
"keywords": [
"itoa",
"POSIX"
],
"category": "system",
"author": {
"name": "Meco Man",
"email": "[email protected]",
"github": "mysterywolf"
},
"license": "Apache-2.0",
"repository": "https://github.com/mysterywolf/itoa",
"icon": "unknown",
"homepage": "unknown",
"doc": "unknown",
"site": [
{
"version": "latest",
"URL": "https://github.com/mysterywolf/itoa.git",
"filename": "Null for git package",
"VER_SHA": "master"
}
]
}
1 change: 1 addition & 0 deletions system/RTduino/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Kconfig file for package RTduino
menuconfig RT_USING_ARDUINO
bool "RTduino: Arduino Ecological Compatibility Layer"
select PKG_USING_POSIX_ITOA
select RT_USING_CPLUSPLUS
select RT_USING_PIN
default n
Expand Down

0 comments on commit 39e7638

Please sign in to comment.