1633838b8255282d10af15c5c84cee5a51466712Bob Halley/** @file
2f072c2982861ec2e86e97f8a3ed199fe45c1f70Michael Graff Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
1633838b8255282d10af15c5c84cee5a51466712Bob Halley This program and the accompanying materials
1633838b8255282d10af15c5c84cee5a51466712Bob Halley are licensed and made available under the terms and conditions of the BSD License
1633838b8255282d10af15c5c84cee5a51466712Bob Halley which accompanies this distribution. The full text of the license may be found at
1633838b8255282d10af15c5c84cee5a51466712Bob Halley http://opensource.org/licenses/bsd-license.php
1633838b8255282d10af15c5c84cee5a51466712Bob Halley
1633838b8255282d10af15c5c84cee5a51466712Bob Halley THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley
1633838b8255282d10af15c5c84cee5a51466712Bob Halley Copyright (c)2003 Citrus Project,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley All rights reserved.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley
1633838b8255282d10af15c5c84cee5a51466712Bob Halley Redistribution and use in source and binary forms, with or without
1633838b8255282d10af15c5c84cee5a51466712Bob Halley modification, are permitted provided that the following conditions
1633838b8255282d10af15c5c84cee5a51466712Bob Halley are met:
94e25967cda41b886e33ec254b917d21df21a187Bob Halley 1. Redistributions of source code must retain the above copyright
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley notice, this list of conditions and the following disclaimer.
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley 2. Redistributions in binary form must reproduce the above copyright
3740b569ae76295b941d57a724a43beb75b533baBob Halley notice, this list of conditions and the following disclaimer in the
0bbadb0a2f07033a6fc3d3290fc53b0f0772956cBob Halley documentation and/or other materials provided with the distribution.
0bbadb0a2f07033a6fc3d3290fc53b0f0772956cBob Halley
94e25967cda41b886e33ec254b917d21df21a187Bob Halley THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
94e25967cda41b886e33ec254b917d21df21a187Bob Halley ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
94e25967cda41b886e33ec254b917d21df21a187Bob Halley IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
94e25967cda41b886e33ec254b917d21df21a187Bob Halley ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
94e25967cda41b886e33ec254b917d21df21a187Bob Halley FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
94e25967cda41b886e33ec254b917d21df21a187Bob Halley DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
94e25967cda41b886e33ec254b917d21df21a187Bob Halley OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
da4242bf62503672dbabd04e1c84c62680393f25Bob Halley HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
94e25967cda41b886e33ec254b917d21df21a187Bob Halley LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
94e25967cda41b886e33ec254b917d21df21a187Bob Halley OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley SUCH DAMAGE.
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley */
afdb3abb9b06ed4070ac9021f1f4427b4cb3a286Bob Halley#include <LibConfig.h>
afdb3abb9b06ed4070ac9021f1f4427b4cb3a286Bob Halley#include <sys/EfiCdefs.h>
afdb3abb9b06ed4070ac9021f1f4427b4cb3a286Bob Halley#if defined(LIBC_SCCS) && !defined(lint)
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley__RCSID("$NetBSD: wcstoll.c,v 1.2 2004/06/21 21:20:43 itojun Exp $");
3740b569ae76295b941d57a724a43beb75b533baBob Halley#endif /* LIBC_SCCS and not lint */
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <assert.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <ctype.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <errno.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <limits.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <stdlib.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <wchar.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include <wctype.h>
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#include "__wctoint.h"
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#define _FUNCNAME wcstoll
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#define __wINT /* LONGLONG */ long long int
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#define __wINT_MIN LLONG_MIN
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley#define __wINT_MAX LLONG_MAX
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley
3740b569ae76295b941d57a724a43beb75b533baBob Halley#include "_wcstol.h"
4bed2e84a34b37259b85e5c092d51c122ef58c3cBob Halley