added commenting to output

This commit is contained in:
Jack Andersen 2015-06-17 21:57:53 -10:00
parent d6a489753d
commit 1aa3a705af
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# PKGBUILD for atdna # PKGBUILD for atdna
_pkgname=atdna _pkgname=atdna
pkgname=$_pkgname-git pkgname=$_pkgname-git
pkgver=1.1.0.30.gc086957 pkgver=1.1.0.31.gd6a4897
pkgrel=1 pkgrel=1
pkgdesc="Companion DNA utility for libAthena" pkgdesc="Companion DNA utility for libAthena"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')

View File

@ -288,6 +288,7 @@ public:
currentEndian = endian; currentEndian = endian;
} }
fileOut << " /* " << field->getName() << " */\n";
if (!p) if (!p)
fileOut << " " << field->getName() << " = " << ioOp << ";\n"; fileOut << " " << field->getName() << " = " << ioOp << ";\n";
else else
@ -382,6 +383,7 @@ public:
currentEndian = endian; currentEndian = endian;
} }
fileOut << " /* " << field->getName() << " */\n";
if (!p) if (!p)
{ {
fileOut << " " << field->getName() << ".clear();\n"; fileOut << " " << field->getName() << ".clear();\n";
@ -417,7 +419,8 @@ public:
clang::QualType canonType = base.getType().getCanonicalType(); clang::QualType canonType = base.getType().getCanonicalType();
if (!canonType.getAsString().compare(0, 22, "struct Athena::io::DNA")) 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; currentEndian = -1;
break; break;
} }