|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw_environ.h>#include <rw_printf.h>#include <rw_process.h>#include <rw_value.h>#include <bitset>#include <ios>#include <string>#include <locale>#include <assert.h>#include <ctype.h>#include <errno.h>#include <limits.h>#include <locale.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdarg.h>#include <time.h>#include <wchar.h>
Go to the source code of this file.
Macros | |
| #define | _RWSTD_NO_SPRINTFA_FUNNAME |
| #define | TEST(fmt, a1, a2, a3, expect) do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, a1, a2, a3)) |
| #define | TEST_SPEC(pfx, a1, a2, a3, expect) |
| #define | ARG mkargv |
| #define | S(s) &(str = std::string (s, sizeof s - 1)) |
| #define | WS(ws) &(wstr = std::wstring (L ## ws, sizeof L ## ws / sizeof (wchar_t) - 1)) |
| #define | BASE(n) ((n) << _RWSTD_IOS_BASEOFF) |
| #define | BS(str) mkbitset (str) |
| #define | ADD_ELEMENT(n) |
| #define | AR make_array |
| #define | SET_ELEM(inx, val) |
| #define | TM make_tm |
| #define | TEST(fmt, a1, a2, a3, expect) do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, cwidth, a1, a2, a3)) |
| #define | TEST(fmt, a1, a2, a3, expect) do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, a1, a2, a3)) |
Functions | |
| const void * | bad_address (size_t size) |
| const char * | format_bad_address (const void *ptr, bool valid) |
| void * | make_array (int width, int a0=0, int a1=0, int a2=0, int a3=0, int a4=0, int a5=0, int a6=0, int a7=0, int a8=0, int a9=0, int a10=0, int a11=0, int a12=0, int a13=0, int a14=0, int a15=0) |
| int | test_function (int i) |
| int | main () |
Variables | |
| int | ntests |
| int | nfailures |
| #define _RWSTD_NO_SPRINTFA_FUNNAME |
0.printf.cpp - test exercising the rw_snprinfa() utility functions
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2005-2008 Rogue Wave Software, Inc.
Definition at line 58 of file 0.printf.cpp.
| #define ADD_ELEMENT | ( | n | ) |
| #define AR make_array |
| #define ARG mkargv |
| #define BASE | ( | n | ) | ((n) << _RWSTD_IOS_BASEOFF) |
| #define TEST | ( | fmt, | |
| a1, | |||
| a2, | |||
| a3, | |||
| expect | |||
| ) | do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, a1, a2, a3)) |
Definition at line 126 of file 0.printf.cpp.
| #define TEST | ( | fmt, | |
| a1, | |||
| a2, | |||
| a3, | |||
| expect | |||
| ) | do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, cwidth, a1, a2, a3)) |
Definition at line 126 of file 0.printf.cpp.
| #define TEST | ( | fmt, | |
| a1, | |||
| a2, | |||
| a3, | |||
| expect | |||
| ) | do_test (__LINE__, fmt, expect, rw_sprintfa (fmt, a1, a2, a3)) |
Definition at line 126 of file 0.printf.cpp.
Definition at line 130 of file 0.printf.cpp.
| #define TM make_tm |
| const void * bad_address | ( | size_t | size | ) |
Definition at line 160 of file 0.printf.cpp.
| const char * format_bad_address | ( | const void * | ptr, |
| bool | valid | ||
| ) |
Definition at line 189 of file 0.printf.cpp.
| int main | ( | void | ) |
Definition at line 3492 of file 0.printf.cpp.
| void * make_array | ( | int | width, |
| int | a0 = 0, |
||
| int | a1 = 0, |
||
| int | a2 = 0, |
||
| int | a3 = 0, |
||
| int | a4 = 0, |
||
| int | a5 = 0, |
||
| int | a6 = 0, |
||
| int | a7 = 0, |
||
| int | a8 = 0, |
||
| int | a9 = 0, |
||
| int | a10 = 0, |
||
| int | a11 = 0, |
||
| int | a12 = 0, |
||
| int | a13 = 0, |
||
| int | a14 = 0, |
||
| int | a15 = 0 |
||
| ) |
Definition at line 1715 of file 0.printf.cpp.
| int test_function | ( | int | i | ) |
Definition at line 2008 of file 0.printf.cpp.
| int nfailures |
Definition at line 63 of file 0.printf.cpp.
| int ntests |
Definition at line 62 of file 0.printf.cpp.