4 * @brief Printf hook definitions and arginfo functions.
9 * Copyright (C) 2006 Martin Willi
10 * Hochschule fuer Technik Rapperswil
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 #include "printf_hook.h"
26 * arginfo handler in printf() pointer
28 int arginfo_ptr(const struct printf_info
*info
, size_t n
, int *argtypes
)
32 argtypes
[0] = PA_POINTER
;
38 * arginfo handler for one ptr, one int
40 int arginfo_ptr_int(const struct printf_info
*info
, size_t n
, int *argtypes
)
44 argtypes
[0] = PA_POINTER
;
51 * arginfo handler for two int arguments
53 int arginfo_int_int(const struct printf_info
*info
, size_t n
, int *argtypes
)
64 * special arginfo handler respecting alt flag
66 int arginfo_int_alt_int_int(const struct printf_info
*info
, size_t n
, int *argtypes
)
86 * special arginfo handler respecting alt flag
88 int arginfo_ptr_alt_ptr_int(const struct printf_info
*info
, size_t n
, int *argtypes
)
94 argtypes
[0] = PA_POINTER
;
102 argtypes
[0] = PA_POINTER
;