mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
cda969218b
* Makefile.am catalog.c xmlcatalog.c include/libxml/catalog.h: more work on the XML catalog support. * parser.c include/libxml/parser.h: small cleanup seems using list as a public parameter name can give portability troubles * trionan.c trionan.h xpath.c include/libxml/trionan.h include/libxml/xpath.h include/libxml/Makefile.am: removed trionan from the libxml API, added xmlXPathIsInf and xmlXPathIsNaN wrappers Daniel
65 lines
1.4 KiB
C
65 lines
1.4 KiB
C
/*************************************************************************
|
|
*
|
|
* $Id$
|
|
*
|
|
* Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
|
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
|
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
|
|
* CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef __TRIO_NAN_H__
|
|
#define __TRIO_NAN_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef TRIO_PUBLIC
|
|
#define TRIO_PUBLIC
|
|
#endif
|
|
|
|
/*
|
|
* Return NaN (Not-a-Number).
|
|
*/
|
|
TRIO_PUBLIC
|
|
double trio_nan(void);
|
|
|
|
/*
|
|
* Return positive infinity.
|
|
*/
|
|
TRIO_PUBLIC
|
|
double trio_pinf(void);
|
|
|
|
/*
|
|
* Return negative infinity.
|
|
*/
|
|
TRIO_PUBLIC
|
|
double trio_ninf(void);
|
|
|
|
/*
|
|
* If number is a NaN return non-zero, otherwise return zero.
|
|
*/
|
|
TRIO_PUBLIC
|
|
int trio_isnan(double number);
|
|
|
|
/*
|
|
* If number is positive infinity return 1, if number is negative
|
|
* infinity return -1, otherwise return 0.
|
|
*/
|
|
TRIO_PUBLIC
|
|
int trio_isinf(double number);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __TRIO_NAN_H__ */
|