[前][次][番号順一覧][スレッド一覧]

ruby-changes:51939

From: kazu <ko1@a...>
Date: Wed, 1 Aug 2018 00:20:59 +0900 (JST)
Subject: [ruby-changes:51939] kazu:r64152 (trunk): Add PRINTF_ARGS to kprintf

kazu	2018-08-01 00:20:54 +0900 (Wed, 01 Aug 2018)

  New Revision: 64152

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64152

  Log:
    Add PRINTF_ARGS to kprintf

  Modified files:
    trunk/addr2line.c
    trunk/common.mk
Index: common.mk
===================================================================
--- common.mk	(revision 64151)
+++ common.mk	(revision 64152)
@@ -1424,6 +1424,7 @@ help: PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1424
 addr2line.$(OBJEXT): {$(VPATH)}addr2line.c
 addr2line.$(OBJEXT): {$(VPATH)}addr2line.h
 addr2line.$(OBJEXT): {$(VPATH)}config.h
+addr2line.$(OBJEXT): {$(VPATH)}defines.h
 addr2line.$(OBJEXT): {$(VPATH)}missing.h
 array.$(OBJEXT): $(hdrdir)/ruby/ruby.h
 array.$(OBJEXT): $(top_srcdir)/include/ruby.h
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 64151)
+++ addr2line.c	(revision 64152)
@@ -9,6 +9,7 @@ https://github.com/ruby/ruby/blob/trunk/addr2line.c#L9
 **********************************************************************/
 
 #include "ruby/config.h"
+#include "ruby/defines.h"
 #include "ruby/missing.h"
 #include "addr2line.h"
 
@@ -104,7 +105,7 @@ void *alloca(); https://github.com/ruby/ruby/blob/trunk/addr2line.c#L105
 #define SHF_COMPRESSED 0
 #endif
 
-static int kprintf(const char *fmt, ...);
+PRINTF_ARGS(static int kprintf(const char *fmt, ...), 1, 2);
 
 typedef struct {
     const char *dirname;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]