mirror of https://github.com/libAthena/athena.git
added commenting to output
This commit is contained in:
parent
d6a489753d
commit
1aa3a705af
|
@ -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')
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue