* va_end for scm_list_n, scm_c_issue_deprecation_warning_fmt
@ 2003-07-09 22:08 Kevin Ryde
2004-02-15 23:52 ` Kevin Ryde
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2003-07-09 22:08 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
FYI,
* deprecation.c (scm_c_issue_deprecation_warning_fmt): Add va_end.
* list.c (scm_list_n): Ditto.
I'm not aware of any systems where a missing va_end is harmful. If
anyone knows one then this could be put in the 1.6 branch too.
[-- Attachment #2: deprecation.c.va_end.diff --]
[-- Type: text/plain, Size: 274 bytes --]
--- deprecation.c.~1.16.~ 2003-04-07 08:05:06.000000000 +1000
+++ deprecation.c 2003-07-09 17:11:49.000000000 +1000
@@ -84,6 +84,7 @@
va_start (ap, msg);
vsnprintf (buf, 511, msg, ap);
+ va_end (ap);
buf[511] = '\0';
scm_c_issue_deprecation_warning (buf);
}
[-- Attachment #3: list.c.va_end.diff --]
[-- Type: text/plain, Size: 231 bytes --]
--- list.c.~1.70.~ 2003-04-28 07:51:21.000000000 +1000
+++ list.c 2003-07-09 17:16:25.000000000 +1000
@@ -94,6 +94,7 @@
pos = SCM_CDRLOC (*pos);
elt = va_arg (foo, SCM);
}
+ va_end (foo);
return answer;
}
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: va_end for scm_list_n, scm_c_issue_deprecation_warning_fmt
2003-07-09 22:08 va_end for scm_list_n, scm_c_issue_deprecation_warning_fmt Kevin Ryde
@ 2004-02-15 23:52 ` Kevin Ryde
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2004-02-15 23:52 UTC (permalink / raw)
I wrote:
>
> * deprecation.c (scm_c_issue_deprecation_warning_fmt): Add va_end.
> * list.c (scm_list_n): Ditto.
>
> I'm not aware of any systems where a missing va_end is harmful. If
> anyone knows one then this could be put in the 1.6 branch too.
Actually, missing va_end is plain wrong, so I've applied this to
list.c in the 1.6 branch too, even if its absence hasn't been causing
an actual problem.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-15 23:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-09 22:08 va_end for scm_list_n, scm_c_issue_deprecation_warning_fmt Kevin Ryde
2004-02-15 23:52 ` Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).