t_wcstod.c (272458) | t_wcstod.c (276478) |
---|---|
1/* $NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $ */ 2 3/*- 4 * Copyright (c) 2011 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 52 unchanged lines hidden (view full) --- 61#include <errno.h> 62#include <math.h> 63#include <stdlib.h> 64#include <string.h> 65#include <wchar.h> 66 67#include <atf-c.h> 68 | 1/* $NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $ */ 2 3/*- 4 * Copyright (c) 2011 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 52 unchanged lines hidden (view full) --- 61#include <errno.h> 62#include <math.h> 63#include <stdlib.h> 64#include <string.h> 65#include <wchar.h> 66 67#include <atf-c.h> 68 |
69#ifdef __FreeBSD__ 70#include <stdio.h> 71#endif 72 |
|
69#define ALT_HUGE_VAL -1 70#define ALT_MINUS_HUGE_VAL -2 71#define ALT_NAN -3 72 73#if !defined(__vax__) 74static struct test { 75 const wchar_t *wcs; 76 size_t len; --- 152 unchanged lines hidden (view full) --- 229{ L"0X.", 1, 0, 0 }, 230{ L"+0X.", 2, 0, 0 }, 231{ L"-0X.", 2, 0, 0 }, 232{ L" 0X.", 11, 0, 0 }, 233{ L" +0X.", 12, 0, 0 }, 234{ L" -0X.", 12, 0, 0 }, 235#endif 236/* XXX: FIXME */ | 73#define ALT_HUGE_VAL -1 74#define ALT_MINUS_HUGE_VAL -2 75#define ALT_NAN -3 76 77#if !defined(__vax__) 78static struct test { 79 const wchar_t *wcs; 80 size_t len; --- 152 unchanged lines hidden (view full) --- 233{ L"0X.", 1, 0, 0 }, 234{ L"+0X.", 2, 0, 0 }, 235{ L"-0X.", 2, 0, 0 }, 236{ L" 0X.", 11, 0, 0 }, 237{ L" +0X.", 12, 0, 0 }, 238{ L" -0X.", 12, 0, 0 }, 239#endif 240/* XXX: FIXME */ |
237#if defined(__NetBSD__) || defined(__linux__) | 241#if defined(__NetBSD__) || defined(__linux__) || defined(__FreeBSD__) |
238{ L"0X.0", 4, 0, 0 }, 239{ L"+0X.0", 5, 0, 0 }, 240{ L"-0X.0", 5, 0, 0 }, 241{ L" 0X.0", 14, 0, 0 }, 242{ L" +0X.0", 15, 0, 0 }, 243{ L" -0X.0", 15, 0, 0 }, 244 245{ L"0X.0P", 4, 0, 0 }, --- 211 unchanged lines hidden --- | 242{ L"0X.0", 4, 0, 0 }, 243{ L"+0X.0", 5, 0, 0 }, 244{ L"-0X.0", 5, 0, 0 }, 245{ L" 0X.0", 14, 0, 0 }, 246{ L" +0X.0", 15, 0, 0 }, 247{ L" -0X.0", 15, 0, 0 }, 248 249{ L"0X.0P", 4, 0, 0 }, --- 211 unchanged lines hidden --- |