"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/idToUnitMap.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.

idToUnitMap.c  (udunits-2.2.26):idToUnitMap.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.
*/ */
/* /*
* Identifier-to-unit map. * Identifier-to-unit map.
*/ */
/*LINTLIBRARY*/ /*LINTLIBRARY*/
#ifndef _XOPEN_SOURCE #include "config.h"
# define _XOPEN_SOURCE 500
#endif #include "udunits2.h"
#include "unitAndId.h"
#include "systemMap.h"
#include <assert.h> #include <assert.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include "tsearch.h" #include "tsearch.h"
#else #else
#include <search.h> #include <search.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef _MSC_VER #ifndef _MSC_VER
#include <strings.h> #include <strings.h>
#endif #endif
#include "udunits2.h"
#include "unitAndId.h"
#include "systemMap.h"
typedef struct { typedef struct {
int (*compare)(const void*, const void*); int (*compare)(const void*, const void*);
void* tree; void* tree;
} IdToUnitMap; } IdToUnitMap;
static SystemMap* systemToNameToUnit; static SystemMap* systemToNameToUnit;
static SystemMap* systemToSymbolToUnit; static SystemMap* systemToSymbolToUnit;
static int static int
sensitiveCompare( sensitiveCompare(
 End of changes. 3 change blocks. 
8 lines changed or deleted 6 lines changed or added

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