cprintf_formats.hh (12365:4444393b3551) | cprintf_formats.hh (12480:8ea05a9ce49e) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 298 unchanged lines hidden (view full) --- 307format_integer(std::ostream &out, char data, Format &fmt) 308{ _format_integer(out, (int)data, fmt); } 309inline void 310format_integer(std::ostream &out, unsigned char data, Format &fmt) 311{ _format_integer(out, (int)data, fmt); } 312inline void 313format_integer(std::ostream &out, signed char data, Format &fmt) 314{ _format_integer(out, (int)data, fmt); } | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 298 unchanged lines hidden (view full) --- 307format_integer(std::ostream &out, char data, Format &fmt) 308{ _format_integer(out, (int)data, fmt); } 309inline void 310format_integer(std::ostream &out, unsigned char data, Format &fmt) 311{ _format_integer(out, (int)data, fmt); } 312inline void 313format_integer(std::ostream &out, signed char data, Format &fmt) 314{ _format_integer(out, (int)data, fmt); } |
315#if 0 316inline void 317format_integer(std::ostream &out, short data, Format &fmt) 318{ _format_integer(out, data, fmt); } 319inline void 320format_integer(std::ostream &out, unsigned short data, Format &fmt) 321{ _format_integer(out, data, fmt); } 322inline void 323format_integer(std::ostream &out, int data, Format &fmt) 324{ _format_integer(out, data, fmt); } 325inline void 326format_integer(std::ostream &out, unsigned int data, Format &fmt) 327{ _format_integer(out, data, fmt); } 328inline void 329format_integer(std::ostream &out, long data, Format &fmt) 330{ _format_integer(out, data, fmt); } 331inline void 332format_integer(std::ostream &out, unsigned long data, Format &fmt) 333{ _format_integer(out, data, fmt); } 334inline void 335format_integer(std::ostream &out, long long data, Format &fmt) 336{ _format_integer(out, data, fmt); } 337inline void 338format_integer(std::ostream &out, unsigned long long data, Format &fmt) 339{ _format_integer(out, data, fmt); } 340#endif | |
341 342// 343// floating point formats 344// 345template <typename T> 346inline void 347format_float(std::ostream &out, const T &data, Format &fmt) 348{ out << "<bad arg type for float format>"; } --- 24 unchanged lines hidden --- | 315 316// 317// floating point formats 318// 319template <typename T> 320inline void 321format_float(std::ostream &out, const T &data, Format &fmt) 322{ out << "<bad arg type for float format>"; } --- 24 unchanged lines hidden --- |