From 276db8ea56b8b82c3a15b8a50052084d72334132 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 26 Aug 2019 18:00:30 -0700 Subject: [PATCH] DNA fixes --- atdna/main.cpp | 8 ++++---- src/athena/Socket.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/atdna/main.cpp b/atdna/main.cpp index 0e30b10..3f3ad92 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -184,22 +184,22 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor { static std::string GetOpString(const std::string& fieldName, const std::string& propIdExpr, const std::string& endianExpr) { - return "({" + propIdExpr + "}, " + fieldName + ", s)"; + return "(athena::io::PropId(" + propIdExpr + "), " + fieldName + ", s)"; } static std::string GetOpString(const std::string& fieldName, const std::string& propIdExpr) { - return "({" + propIdExpr + "}, " + fieldName + ", s)"; + return "(athena::io::PropId(" + propIdExpr + "), " + fieldName + ", s)"; } static std::string GetVectorOpString(const std::string& fieldName, const std::string& propIdExpr, const std::string& sizeExpr, const std::string& endianExpr) { - return "({" + propIdExpr + "}, " + fieldName + ", " + sizeExpr + ", s)"; + return "(athena::io::PropId(" + propIdExpr + "), " + fieldName + ", " + sizeExpr + ", s)"; } static std::string GetVectorOpString(const std::string& fieldName, const std::string& propIdExpr, const std::string& sizeExpr) { - return "({" + propIdExpr + "}, " + fieldName + ", " + sizeExpr + ", s)"; + return "(athena::io::PropId(" + propIdExpr + "), " + fieldName + ", " + sizeExpr + ", s)"; } static void RecurseNestedTypeName(const clang::DeclContext* decl, std::string& templateStmt, std::string& qualType) { diff --git a/src/athena/Socket.cpp b/src/athena/Socket.cpp index d4041e5..8057d2a 100644 --- a/src/athena/Socket.cpp +++ b/src/athena/Socket.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #else #include #include