Nim/lib
rockcavera e5639408d5
avoiding unnecessary allocation for dollar IpAddress (#21199)
* avoiding allocating an unnecessary byte for IPv4

The inet.h file uses 16 as the string in C needs the last null byte
1b929c02af/include/linux/inet.h (L49)

However, strings in Nim do not need this. So one byte is being allocated unnecessary and will never be used.

* avoid unnecessary allocation in IPv6 dollar

It is currently allocating 48 bytes. However, the Nim implementation for IPv6 will print a maximum of 39 characters. Nim does not implement IPv6 "0000:0000:0000:0000:0000:ffff:255.255.255.255" (45 characters) nor "0000:0000:0000:0000:0000:ffff:255.255.255.255%3" (47 characters). 

The indication in inet.h for 48 is due to the maximum use of 47 characters of a C string that needs a null byte at the end. So 48.
1b929c02af/include/linux/inet.h (L50)
2022-12-30 09:20:32 +01:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core remove legacy code (#21134) 2022-12-26 13:20:05 +01:00
deprecated/pure stdlib organization & documentation improvements (#20971) 2022-12-06 09:37:03 +01:00
experimental make more standard libraries work with nimPreviewSlimSystem (#20343) 2022-09-27 20:06:23 +02:00
genode ref #20694; quit value gets saturated to ranges (#20753) 2022-11-05 10:58:57 +01:00
genode_cpp Genode: add scheduleCallbacks to asyncdispatch (#20708) 2022-10-31 19:24:57 +01:00
impure re and nre now link to regex and tinyre (#21161) 2022-12-23 10:50:07 -05:00
js dom: remove X* = ref XObj [backport] (#20910) 2022-11-29 14:24:51 -05:00
packages/docutils fix #19580; add warning for bare except: clause (#21099) 2022-12-15 06:45:36 +01:00
posix Remove deprecated posix.CLONE_STOPPED (#21012) 2022-12-05 06:53:40 +01:00
pure avoiding unnecessary allocation for dollar IpAddress (#21199) 2022-12-30 09:20:32 +01:00
std fixes #21195; std/assertions continue to use sysFatal when nimPreviewSlimSystem is not defined (#21196) 2022-12-29 14:15:08 -05:00
system fixes #21195; std/assertions continue to use sysFatal when nimPreviewSlimSystem is not defined (#21196) 2022-12-29 14:15:08 -05:00
windows refactor os imports into corresponding small modules (#20720) 2022-11-01 10:18:04 +01:00
wrappers build the documentation of official packages (#20986) 2022-12-06 22:37:16 +08:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
deps.txt added lib/deps.txt 2021-06-03 14:00:53 +02:00
nimbase.h fixes #20654 FAMs should not be used in the C++ backend (#20655) 2022-10-25 17:39:51 +02:00
nimhcr.nim fixes #20526; use nimPreviewSlimSystem for documentation build (#20714) 2022-11-01 12:53:14 +01:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim add missing docs (#18758) 2021-08-29 09:18:54 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim fixes #21195; std/assertions continue to use sysFatal when nimPreviewSlimSystem is not defined (#21196) 2022-12-29 14:15:08 -05:00
system_overview.rst add link to setutils in system module docs (#21130) 2022-12-22 09:54:17 +01:00