diff --git a/atdna/PKGBUILD b/atdna/PKGBUILD index 6556fb6..f3e203f 100644 --- a/atdna/PKGBUILD +++ b/atdna/PKGBUILD @@ -1,7 +1,7 @@ # PKGBUILD for atdna _pkgname=atdna pkgname=$_pkgname-git -pkgver=1.1.0.30.gc086957 +pkgver=1.1.0.31.gd6a4897 pkgrel=1 pkgdesc="Companion DNA utility for libAthena" arch=('i686' 'x86_64') diff --git a/atdna/main.cpp b/atdna/main.cpp index 073ef27..5aad7cc 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -288,6 +288,7 @@ public: currentEndian = endian; } + fileOut << " /* " << field->getName() << " */\n"; if (!p) fileOut << " " << field->getName() << " = " << ioOp << ";\n"; else @@ -382,6 +383,7 @@ public: currentEndian = endian; } + fileOut << " /* " << field->getName() << " */\n"; if (!p) { fileOut << " " << field->getName() << ".clear();\n"; @@ -417,7 +419,8 @@ public: clang::QualType canonType = base.getType().getCanonicalType(); if (!canonType.getAsString().compare(0, 22, "struct Athena::io::DNA")) { - fileOut << " " << field->getNameAsString() << (p ? ".write(writer);\n" : ".read(reader);\n"); + fileOut << " /* " << field->getName() << " */\n"; + fileOut << " " << field->getName() << (p ? ".write(writer);\n" : ".read(reader);\n"); currentEndian = -1; break; }