"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stdio-common/reg-printf.c" between
glibc-2.26.tar.xz and glibc-2.27.tar.xz

About: The GNU C Library ("system calls" and other basic facilities such as open, malloc, printf, exit ...).

reg-printf.c  (glibc-2.26.tar.xz):reg-printf.c  (glibc-2.27.tar.xz)
/* Copyright (C) 1991-2017 Free Software Foundation, Inc. /* Copyright (C) 1991-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful, The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
skipping to change at line 34 skipping to change at line 34
/* Array of functions indexed by format character. */ /* Array of functions indexed by format character. */
libc_freeres_ptr (printf_arginfo_size_function **__printf_arginfo_table) libc_freeres_ptr (printf_arginfo_size_function **__printf_arginfo_table)
attribute_hidden; attribute_hidden;
printf_function **__printf_function_table attribute_hidden; printf_function **__printf_function_table attribute_hidden;
__libc_lock_define_initialized (static, lock) __libc_lock_define_initialized (static, lock)
int __register_printf_specifier (int, printf_function, int __register_printf_specifier (int, printf_function,
printf_arginfo_size_function); printf_arginfo_size_function);
libc_hidden_proto (__register_printf_specifier)
int __register_printf_function (int, printf_function, int __register_printf_function (int, printf_function,
printf_arginfo_function); printf_arginfo_function);
/* Register FUNC to be called to format SPEC specifiers. */ /* Register FUNC to be called to format SPEC specifiers. */
int int
__register_printf_specifier (int spec, printf_function converter, __register_printf_specifier (int spec, printf_function converter,
printf_arginfo_size_function arginfo) printf_arginfo_size_function arginfo)
{ {
if (spec < 0 || spec > (int) UCHAR_MAX) if (spec < 0 || spec > (int) UCHAR_MAX)
{ {
skipping to change at line 73 skipping to change at line 74
} }
__printf_function_table[spec] = converter; __printf_function_table[spec] = converter;
__printf_arginfo_table[spec] = arginfo; __printf_arginfo_table[spec] = arginfo;
out: out:
__libc_lock_unlock (lock); __libc_lock_unlock (lock);
return result; return result;
} }
libc_hidden_def (__register_printf_specifier)
weak_alias (__register_printf_specifier, register_printf_specifier) weak_alias (__register_printf_specifier, register_printf_specifier)
/* Register FUNC to be called to format SPEC specifiers. */ /* Register FUNC to be called to format SPEC specifiers. */
int int
__register_printf_function (int spec, printf_function converter, __register_printf_function (int spec, printf_function converter,
printf_arginfo_function arginfo) printf_arginfo_function arginfo)
{ {
return __register_printf_specifier (spec, converter, return __register_printf_specifier (spec, converter,
(printf_arginfo_size_function*) arginfo); (printf_arginfo_size_function*) arginfo);
} }
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)