Forum: Ruby-core [ruby-trunk - Bug #7478][Open] Do not include vararg.h - always include stdarg.h

Posted by Yura Sokolov (funny_falcon)
on 2012-11-30 09:44
(Received via mailing list)
Issue #7478 has been reported by funny_falcon (Yura Sokolov).

----------------------------------------
Bug #7478: Do not include vararg.h - always include stdarg.h
https://bugs.ruby-lang.org/issues/7478

Author: funny_falcon (Yura Sokolov)
Status: Open
Priority: High
Assignee:
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


Cause : https://gist.github.com/4172330

It seems that stdarg.h is included in many separate C files 
unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, 
include/ruby/encoding.h - all includes stdarg.h without checking for 
HAVE_STDARG_PROTOTYPES

So that, why there is check in include/ruby/intern.h, vm_core.h, 
vsnprintf.c (and may be somewhere else)
Posted by Nobuyoshi Nakada (nobu)
on 2013-01-08 18:27
(Received via mailing list)
Issue #7478 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Feedback
Priority changed from High to Low

Why does rb_cv_stdarg check fail?
Could you show config.log file?
----------------------------------------
Bug #7478: Do not include vararg.h - always include stdarg.h
https://bugs.ruby-lang.org/issues/7478#change-35287

Author: funny_falcon (Yura Sokolov)
Status: Feedback
Priority: Low
Assignee:
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


Cause : https://gist.github.com/4172330

It seems that stdarg.h is included in many separate C files 
unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, 
include/ruby/encoding.h - all includes stdarg.h without checking for 
HAVE_STDARG_PROTOTYPES

So that, why there is check in include/ruby/intern.h, vm_core.h, 
vsnprintf.c (and may be somewhere else)
Posted by ko1 (Koichi Sasada) (Guest)
on 2013-02-18 01:19
(Received via mailing list)
Issue #7478 has been updated by ko1 (Koichi Sasada).

Assignee set to nobu (Nobuyoshi Nakada)


----------------------------------------
Bug #7478: Do not include vararg.h - always include stdarg.h
https://bugs.ruby-lang.org/issues/7478#change-36472

Author: funny_falcon (Yura Sokolov)
Status: Feedback
Priority: Low
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


Cause : https://gist.github.com/4172330

It seems that stdarg.h is included in many separate C files 
unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, 
include/ruby/encoding.h - all includes stdarg.h without checking for 
HAVE_STDARG_PROTOTYPES

So that, why there is check in include/ruby/intern.h, vm_core.h, 
vsnprintf.c (and may be somewhere else)
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-20 04:36
(Received via mailing list)
Issue #7478 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Feedback to Rejected

No feedback.
----------------------------------------
Bug #7478: Do not include vararg.h - always include stdarg.h
https://bugs.ruby-lang.org/issues/7478#change-36640

Author: funny_falcon (Yura Sokolov)
Status: Rejected
Priority: Low
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


Cause : https://gist.github.com/4172330

It seems that stdarg.h is included in many separate C files 
unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, 
include/ruby/encoding.h - all includes stdarg.h without checking for 
HAVE_STDARG_PROTOTYPES

So that, why there is check in include/ruby/intern.h, vm_core.h, 
vsnprintf.c (and may be somewhere else)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.