"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/unitAndId.c" between
udunits-2.2.26.tar.gz and udunits-2.2.28.tar.gz

About: UDUNITS supports units of physical quantities. Its C library provides for arithmetic manipulation of units and for conversion of numeric values between compatible units.

unitAndId.c  (udunits-2.2.26):unitAndId.c  (udunits-2.2.28)
/* /*
* Copyright 2013 University Corporation for Atmospheric Research * Copyright 2020 University Corporation for Atmospheric Research
* *
* This file is part of the UDUNITS-2 package. See the file COPYRIGHT * This file is part of the UDUNITS-2 package. See the file COPYRIGHT
* in the top-level source-directory of the package for copying and * in the top-level source-directory of the package for copying and
* redistribution conditions. * redistribution conditions.
*/ */
/* /*
* Searchable unit-and-identifier tree. * Searchable unit-and-identifier tree.
*/ */
/*LINTLIBRARY*/ /*LINTLIBRARY*/
#ifndef _XOPEN_SOURCE #include "config.h"
# define _XOPEN_SOURCE 500
#endif #include "unitAndId.h"
#include "udunits2.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "unitAndId.h"
#include "udunits2.h"
/* /*
* Arguments: * Arguments:
* unit The unit. May be freed upon return. * unit The unit. May be freed upon return.
* id The identifier (name or symbol). May be freed upon return. * id The identifier (name or symbol). May be freed upon return.
* Returns: * Returns:
* NULL Failure. "ut_get_status()" will be * NULL Failure. "ut_get_status()" will be
* UT_BAD_ARG "unit" or "id" is NULL. * UT_BAD_ARG "unit" or "id" is NULL.
* UT_OS Operating-system failure. See "errno". * UT_OS Operating-system failure. See "errno".
* else Pointer to the new unit-and-identifier. * else Pointer to the new unit-and-identifier.
*/ */
 End of changes. 4 change blocks. 
8 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)