mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge remote-tracking branch 'origin/fieldmap.dmh' into multi-pull
This commit is contained in:
commit
c88bc64bfa
@ -2,7 +2,6 @@ SET(abs_top_srcdir ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
remove_definitions(-DDLL_EXPORT)
|
||||
|
||||
|
||||
ADD_SUBDIRECTORY(baseline)
|
||||
ADD_SUBDIRECTORY(baselineraw)
|
||||
ADD_SUBDIRECTORY(baselineremote)
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,10 +11,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="s" type="/s">
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
<Struct name="s" type="/s"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -17,8 +17,6 @@
|
||||
<Struct name="s" type="/s">
|
||||
<Dim name="/_Anonymous2"/>
|
||||
<Dim name="/_Anonymous2"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
</Variables>
|
||||
<Attribute name="_dap4.ce" type="String">
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -18,8 +18,6 @@
|
||||
<Struct name="s" type="/s">
|
||||
<Dim name="/dx"/>
|
||||
<Dim name="/dy"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
|
@ -11,7 +11,7 @@ variables:
|
||||
float z(dx) ;
|
||||
float t(dy) ;
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,7 +11,7 @@ variables:
|
||||
float z(dx) ;
|
||||
float t(dy) ;
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -19,10 +19,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="x" type="/x">
|
||||
<Map name="/x_field1.x"/>
|
||||
<Map name="/x_field1.y"/>
|
||||
</Struct>
|
||||
<Struct name="x" type="/x"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,10 +11,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="s" type="/s">
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
<Struct name="s" type="/s"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
@ -51,7 +51,7 @@
|
||||
</Opaque>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -51,7 +51,7 @@
|
||||
</Opaque>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -33,12 +33,12 @@
|
||||
<String name="vs"/>
|
||||
<Opaque name="vo" _edu.ucar.opaque.size="8"/>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
<Enum name="secondary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -33,12 +33,12 @@
|
||||
<String name="vs"/>
|
||||
<Opaque name="vo"/>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
<Enum name="secondary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<EnumConst name="Missing" value="127"/>
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -24,7 +24,7 @@
|
||||
</Attribute>
|
||||
<Group name="h">
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim size="2"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -8,8 +8,6 @@
|
||||
<Structure name="s">
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -10,8 +10,6 @@
|
||||
<Int32 name="y"/>
|
||||
<Dim size="2"/>
|
||||
<Dim size="2"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_dap4.ce" type="String">
|
||||
<Value value="/s[0:2:3][0:1]"/>
|
||||
|
@ -12,8 +12,6 @@
|
||||
<Int32 name="y"/>
|
||||
<Dim name="/dx"/>
|
||||
<Dim name="/dy"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -14,8 +14,6 @@
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
</Structure>
|
||||
<Map name="/x.field1.x"/>
|
||||
<Map name="/x.field1.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -8,8 +8,6 @@
|
||||
<Structure name="s">
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -2,5 +2,5 @@ FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5,6 +5,8 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
. ${srcdir}/d4test_common.sh
|
||||
|
||||
echo "test_data.sh:"
|
||||
|
||||
cd ${DAPTESTFILES}
|
||||
F=`ls -1 *.dap | sed -e 's/[.]dap//g' | tr '\r\n' ' '`
|
||||
cd $WD
|
||||
|
@ -5,6 +5,8 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
. ${srcdir}/d4test_common.sh
|
||||
|
||||
echo "test_meta.sh:"
|
||||
|
||||
cd ${DMRTESTFILES}
|
||||
F=`ls -1 *.dmr | sed -e 's/[.]dmr//g' | tr '\r\n' ' '`
|
||||
cd $WD
|
||||
|
@ -5,6 +5,8 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
. ${srcdir}/d4test_common.sh
|
||||
|
||||
echo "test_parse.sh:"
|
||||
|
||||
cd ${DMRTESTFILES}
|
||||
F=`ls -1 *.dmr | sed -e 's/[.]dmr//' |tr '\r\n' ' '`
|
||||
cd $WD
|
||||
|
@ -5,6 +5,8 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
. ${srcdir}/d4test_common.sh
|
||||
|
||||
echo "test_raw.sh:"
|
||||
|
||||
# Compute the set of testfiles
|
||||
PUSHD ${srcdir}/daptestfiles
|
||||
F=`ls -1d *.dap`
|
||||
|
@ -5,6 +5,8 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
. ${srcdir}/d4test_common.sh
|
||||
|
||||
echo "test_remote.sh:"
|
||||
|
||||
#BIG=1
|
||||
#NOCSUM=1
|
||||
|
||||
|
@ -167,7 +167,9 @@ readfile(const NCURI* uri, const char* suffix, NCbytes* packet)
|
||||
#ifdef O_BINARY
|
||||
flags |= O_BINARY;
|
||||
#endif
|
||||
#ifdef D4DEBUGPARSER
|
||||
fprintf(stderr,"XXX: flags=0x%x file=%s\n",flags,filename);
|
||||
#endif
|
||||
fd = NCopen2(filename,flags);
|
||||
if(fd < 0) {
|
||||
nclog(NCLOGERR,"open failed:%s",filename);
|
||||
|
@ -207,7 +207,7 @@ backslashEscape(const char* s)
|
||||
}
|
||||
|
||||
/* Parse an fqn into a sequence of names;
|
||||
initially using '/', then '.' */
|
||||
using '/', and then (conditionally) '.' */
|
||||
int
|
||||
NCD4_parseFQN(const char* fqn0, NClist* pieces)
|
||||
{
|
||||
@ -239,6 +239,7 @@ NCD4_parseFQN(const char* fqn0, NClist* pieces)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#ifdef ALLOWFIELDMAPS
|
||||
/* Step 2, walk the final piece to break up based on '.' */
|
||||
for(p=start;*p;) {
|
||||
switch(*p) {
|
||||
@ -255,6 +256,7 @@ NCD4_parseFQN(const char* fqn0, NClist* pieces)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
count++; /* acct for last piece */
|
||||
/* Step 3: capture and de-scape the pieces */
|
||||
for(p=fqn;count > 0;count--) {
|
||||
|
@ -13,6 +13,12 @@ are defined here.
|
||||
|
||||
#undef COMPILEBYDEFAULT
|
||||
|
||||
/*
|
||||
Control if struct fields can be map targets.
|
||||
Currently turned off because semantics are unclear.
|
||||
*/
|
||||
#undef ALLOWFIELDMAPS
|
||||
|
||||
#define long64 long long
|
||||
#define ncerror int
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user