"Fossies" - the Fresh Open Source Software Archive  

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

prefix.c  (udunits-2.2.26):prefix.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.
*/ */
/* /*
* Module for handling unit prefixes -- both names and symbols. * Module for handling unit prefixes -- both names and symbols.
*/ */
/*LINTLIBRARY*/ /*LINTLIBRARY*/
#ifndef _XOPEN_SOURCE #include "config.h"
# define _XOPEN_SOURCE 500
#endif #include "prefix.h"
#include "udunits2.h"
#include "systemMap.h"
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.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>
#include "prefix.h"
#include "udunits2.h"
#include "systemMap.h"
typedef struct { typedef struct {
void* tree; void* tree;
int (*compare)(const void*, const void*); int (*compare)(const void*, const void*);
} PrefixToValueMap; } PrefixToValueMap;
typedef struct { typedef struct {
void* nextTree; void* nextTree;
double value; double value;
size_t position; /* origin-0 index of character in prefix */ size_t position; /* origin-0 index of character in prefix */
int character; int character;
 End of changes. 4 change blocks. 
9 lines changed or deleted 6 lines changed or added

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