Last change
on this file since 2281 was
409,
checked in by ymipsl, 12 years ago
|
Add improved nectdf internal library src
YM
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Rev | Line | |
---|
[409] | 1 | /* |
---|
| 2 | * Copyright 2010 University Corporation for Atmospheric |
---|
| 3 | * Research/Unidata. See COPYRIGHT file for more info. |
---|
| 4 | * |
---|
| 5 | * This header file is for the parallel I/O functions of netCDF. |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | /* "$Id: netcdf_par.h,v 1.1 2010/06/01 15:46:49 ed Exp $" */ |
---|
| 9 | |
---|
| 10 | #ifndef NCCONFIGURE_H |
---|
| 11 | #define NCCONFIGURE_H 1 |
---|
| 12 | |
---|
| 13 | /* |
---|
| 14 | This is included in bottom |
---|
| 15 | of config.h. It is where, |
---|
| 16 | typically, alternatives to |
---|
| 17 | missing functions should be |
---|
| 18 | defined. |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #ifndef HAVE_STRDUP |
---|
| 22 | extern char* strdup(const char*); |
---|
| 23 | #endif |
---|
| 24 | |
---|
| 25 | /* handle null arguments */ |
---|
| 26 | #ifndef nulldup |
---|
| 27 | #ifdef HAVE_STRDUP |
---|
| 28 | #define nulldup(s) ((s)==NULL?NULL:strdup(s)) |
---|
| 29 | #else |
---|
| 30 | char *nulldup(const char* s); |
---|
| 31 | #endif |
---|
| 32 | #endif |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | #ifndef nulldup |
---|
| 36 | #define nulldup(s) ((s)==NULL?NULL:strdup(s)) |
---|
| 37 | #endif |
---|
| 38 | #ifndef nulllen |
---|
| 39 | #define nulllen(s) ((s)==NULL?0:strlen(s)) |
---|
| 40 | #endif |
---|
| 41 | #ifndef nullfree |
---|
| 42 | #define nullfree(s) {if((s)!=NULL) {free(s);} else {}} |
---|
| 43 | #endif |
---|
| 44 | |
---|
| 45 | #ifndef HAVE_UCHAR |
---|
| 46 | typedef unsigned char uchar; |
---|
| 47 | #endif |
---|
| 48 | |
---|
| 49 | #ifndef HAVE_LONGLONG |
---|
| 50 | typedef long long longlong; |
---|
| 51 | typedef unsigned long long ulonglong; |
---|
| 52 | #endif |
---|
| 53 | |
---|
| 54 | #ifndef HAVE_UINT |
---|
| 55 | typedef unsigned int uint; |
---|
| 56 | #endif |
---|
| 57 | |
---|
| 58 | #endif /* NCCONFIGURE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.