Mercurial > hg > CbC > CbC_gcc
comparison libiberty/_doprnt.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Provide a version of _doprnt in terms of fprintf. | 1 /* Provide a version of _doprnt in terms of fprintf. |
2 Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 2 Copyright (C) 1998-2017 Free Software Foundation, Inc. |
3 Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 | 3 Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify it | 5 This program is free software; you can redistribute it and/or modify it |
6 under the terms of the GNU General Public License as published by the | 6 under the terms of the GNU General Public License as published by the |
7 Free Software Foundation; either version 2, or (at your option) any | 7 Free Software Foundation; either version 2, or (at your option) any |
220 | 220 |
221 static int | 221 static int |
222 checkit (const char* format, ...) | 222 checkit (const char* format, ...) |
223 { | 223 { |
224 int result; | 224 int result; |
225 VA_OPEN (args, format); | 225 va_list args; |
226 VA_FIXEDARG (args, char *, format); | 226 va_start (args, format); |
227 | 227 |
228 result = _doprnt (format, args, stdout); | 228 result = _doprnt (format, args, stdout); |
229 VA_CLOSE (args); | 229 va_end (args); |
230 | 230 |
231 return result; | 231 return result; |
232 } | 232 } |
233 | 233 |
234 int | 234 int |