<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/vsnprintf.c, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Use free with ruby_dtoa</title>
<updated>2023-12-07T17:23:02+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2023-12-07T03:29:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0c3593b6573b4186c980fb4ea7635bf95261c749'/>
<id>0c3593b6573b4186c980fb4ea7635bf95261c749</id>
<content type='text'>
In ae0ceafb0c0d05cc80623b525070255e3abb34ef ruby_dtoa was switched to
use malloc instead of xmalloc, which means that consumers should be
using free instead of xfree. Otherwise we will artificially shrink
oldmalloc_increase_bytes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In ae0ceafb0c0d05cc80623b525070255e3abb34ef ruby_dtoa was switched to
use malloc instead of xmalloc, which means that consumers should be
using free instead of xfree. Otherwise we will artificially shrink
oldmalloc_increase_bytes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compiler warning with compiling on 32 bit</title>
<updated>2023-04-13T20:44:01+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2023-04-13T20:44:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f7d41b9d7bd9de48293909c904e95ebc353fc200'/>
<id>f7d41b9d7bd9de48293909c904e95ebc353fc200</id>
<content type='text'>
Fixes this compiler warning:

    vsnprintf.c:1074:43: warning: 'uqval' may be used uninitialized in this function [-Wmaybe-uninitialized]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes this compiler warning:

    vsnprintf.c:1074:43: warning: 'uqval' may be used uninitialized in this function [-Wmaybe-uninitialized]
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #18491] Drop support for HP-UX</title>
<updated>2022-01-18T14:52:15+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2022-01-18T14:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ffda21b7ba451b8fd874e9c8c2162c55053caa1e'/>
<id>ffda21b7ba451b8fd874e9c8c2162c55053caa1e</id>
<content type='text'>
IA64 support was dropped in ticket #15894, so we can drop support for
HP-UX.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
IA64 support was dropped in ticket #15894, so we can drop support for
HP-UX.
</pre>
</div>
</content>
</entry>
<entry>
<title>Protoized old pre-ANSI K&amp;R style declarations and definitions</title>
<updated>2021-05-06T15:04:36+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-05-06T15:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0bbab1e5151c3396ebe544d09cad997cd9cb5e3b'/>
<id>0bbab1e5151c3396ebe544d09cad997cd9cb5e3b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace "iff" with "if and only if"</title>
<updated>2021-01-19T20:06:45+00:00</updated>
<author>
<name>Gannon McGibbon</name>
<email>gannon.mcgibbon@gmail.com</email>
</author>
<published>2021-01-06T17:20:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9e0075a3d902aa5236bbfdc0ad0d3028a55dc17e'/>
<id>9e0075a3d902aa5236bbfdc0ad0d3028a55dc17e</id>
<content type='text'>
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.
</pre>
</div>
</content>
</entry>
<entry>
<title>[win32] suppress false warning by mingw gcc</title>
<updated>2020-03-04T14:13:18+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-03-04T14:13:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5bb80b76b093130be14161bb0c8d05f6fea749f3'/>
<id>5bb80b76b093130be14161bb0c8d05f6fea749f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use array indexing with considering clang's feeling</title>
<updated>2019-08-27T05:25:58+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-08-27T05:20:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2789bdddc7602fbc2089242d12e5cc4deed181c4'/>
<id>2789bdddc7602fbc2089242d12e5cc4deed181c4</id>
<content type='text'>
```
In file included from sprintf.c:1256:
./vsnprintf.c:833:8: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
                            IS_PRI_EXTRA_MARK(fmt)) {
                            ^~~~~~~~~~~~~~~~~~~~~~
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                          ~~~~~~~~~~~~~~^~
./vsnprintf.c:833:8: note: use array indexing to silence this warning
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                                        ^
1 warning generated.
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
In file included from sprintf.c:1256:
./vsnprintf.c:833:8: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
                            IS_PRI_EXTRA_MARK(fmt)) {
                            ^~~~~~~~~~~~~~~~~~~~~~
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                          ~~~~~~~~~~~~~~^~
./vsnprintf.c:833:8: note: use array indexing to silence this warning
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                                        ^
1 warning generated.
```
</pre>
</div>
</content>
</entry>
<entry>
<title>give up sanitizing BSD_vfprintf</title>
<updated>2019-04-26T06:59:40+00:00</updated>
<author>
<name>Urabe, Shyouhei</name>
<email>shyouhei@ruby-lang.org</email>
</author>
<published>2019-04-24T05:53:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=504ce460d240b5b726e77c0b0915677892a19e58'/>
<id>504ce460d240b5b726e77c0b0915677892a19e58</id>
<content type='text'>
Sanitizers report something inside of this function but it is
beyond my brain capacity.  Also the code is proven to work.
Let me ignore.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sanitizers report something inside of this function but it is
beyond my brain capacity.  Also the code is proven to work.
Let me ignore.
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid division by zero</title>
<updated>2018-11-16T01:52:39+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2018-11-16T01:52:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3a083985a471ca3d8429146f9f18dead6747c203'/>
<id>3a083985a471ca3d8429146f9f18dead6747c203</id>
<content type='text'>
* cvt(): use signbit() instead of 1/d &lt; 0
* w_float(): ditto
* ruby_float_step_size(): unit==0 check shall be prior to divisions
* arith_seq_float_step_size(): ditto
* rb_big_divide(): same as r65642
* fix_divide(): ditto
* rb_big_fdiv_double(): ditto
* fix_fdiv_double(): ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* cvt(): use signbit() instead of 1/d &lt; 0
* w_float(): ditto
* ruby_float_step_size(): unit==0 check shall be prior to divisions
* arith_seq_float_step_size(): ditto
* rb_big_divide(): same as r65642
* fix_divide(): ditto
* rb_big_fdiv_double(): ditto
* fix_fdiv_double(): ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>unused member</title>
<updated>2017-05-23T11:35:54+00:00</updated>
<author>
<name>nobu</name>
<email>nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-05-23T11:35:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dfc11063da2cd8a09a9ee3648c3ad132f90f1a2b'/>
<id>dfc11063da2cd8a09a9ee3648c3ad132f90f1a2b</id>
<content type='text'>
* vsnprintf.c (__sFILE): _lbfsize is not used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* vsnprintf.c (__sFILE): _lbfsize is not used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
