Skip to content

Commit 433450d

Browse files
committedAug 18, 2024··
Civita now building
1 parent e72a20b commit 433450d

11 files changed

+31
-4
lines changed
 

‎Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ else
162162
cp -f $(EXES) $(PREFIX)/bin
163163
endif
164164
cp -f fix-privates $(PREFIX)/bin
165-
cp -f $(INCLUDES) $(PREFIX)/include
165+
cp -f $(INCLUDES) *.cd $(PREFIX)/include
166166
# -ln -s $(PREFIX)/include/pack_base.h $(PREFIX)/include/unpack_base.h
167167
# cp -r $(SYSINCLUDES) $(PREFIX)
168168

@@ -191,7 +191,7 @@ dist:
191191
sh makeDist.sh
192192

193193
# cd file generation rules
194-
$(DESCRIPTORS:%=%-allCDs.h): Makefile
194+
$(DESCRIPTORS:%=%-allCDs.h): Makefile createCDs.sh
195195
createCDs.sh $(subst -allCDs.h,,$@) $(CDHEADERS)
196196

197197
%-dump.cd: %.h

‎RESTProcess-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_RESTProcess_allCDS_H
2+
#define CLASSDESC_RESTProcess_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-RESTProcess.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-RESTProcess.cd"
2123
#endif
24+
#endif

‎RESTProcess_base.h

-1
Original file line numberDiff line numberDiff line change
@@ -1600,5 +1600,4 @@ CLASSDESC_USE_OLDSTYLE_MEMBER_OBJECTS(RESTProcess);
16001600
using classdesc::RESTProcess;
16011601
using classdesc::RESTProcess_onbase;
16021602

1603-
#include "RESTProcess_base.cd"
16041603
#endif

‎createCDs.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
descriptor=$1
22
shift
3+
rm -f $descriptor-allCDs.h
4+
cat >$descriptor-allCDs.h <<EOF
5+
#ifndef CLASSDESC_${descriptor}_allCDS_H
6+
#define CLASSDESC_${descriptor}_allCDS_H
7+
EOF
38
for cdHeader in $*; do
49
guard=CLASSDESC_`echo $cdHeader|tr [a-z] [A-Z]`_H
510
cat >>$descriptor-allCDs.h <<EOF
@@ -8,3 +13,4 @@ for cdHeader in $*; do
813
#endif
914
EOF
1015
done
16+
echo "#endif" >>$descriptor-allCDs.h

‎dump-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_dump_allCDS_H
2+
#define CLASSDESC_dump_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-dump.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-dump.cd"
2123
#endif
24+
#endif

‎json_pack-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_json_pack_allCDS_H
2+
#define CLASSDESC_json_pack_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-json_pack.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-json_pack.cd"
2123
#endif
24+
#endif

‎multiArray.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ namespace classdesc
152152
bool same(const MultiArray& x) const {return m_data==x.m_data;}
153153
};
154154

155-
template <class T, int N> struct is_sequence<MultiArray<T,N>>: public true_type {};
155+
template <class T, int N> struct is_sequence<classdesc::MultiArray<T,N>>:
156+
public true_type {};
156157

157158
/// friended advance function for use in iterators
158159
template <class T, int R>

‎pack-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_pack_allCDS_H
2+
#define CLASSDESC_pack_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-pack.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-pack.cd"
2123
#endif
24+
#endif

‎random_init-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_random_init_allCDS_H
2+
#define CLASSDESC_random_init_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-random_init.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-random_init.cd"
2123
#endif
24+
#endif

‎typeName-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_typeName_allCDS_H
2+
#define CLASSDESC_typeName_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-typeName.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-typeName.cd"
2123
#endif
24+
#endif

‎xml_pack-allCDs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef CLASSDESC_xml_pack_allCDS_H
2+
#define CLASSDESC_xml_pack_allCDS_H
13
#ifdef CLASSDESC_MULTIARRAY_H
24
#include "multiArray-xml_pack.cd"
35
#endif
@@ -19,3 +21,4 @@
1921
#ifdef CLASSDESC_STRINGKEYMAP_H
2022
#include "stringKeyMap-xml_pack.cd"
2123
#endif
24+
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.