clean up compilaton options

This commit is contained in:
Venelin
2024-06-10 12:25:01 +03:00
parent 1386b967d3
commit a096a2a34c
4 changed files with 9 additions and 18 deletions
+5 -4
View File
@@ -223,7 +223,7 @@ namespace /* internal */
type = ATR_SPOUSES;
break;
default:
U16 cyr = ((U8)t.begin[0] << 8) | (U8)t.begin[1]; /* assuming char signed? */
U16 cyr = ((U8)t.begin[0] << 8) | (U8)t.begin[1];
switch(cyr) /* check for cyrilic attribure */
{
case 'д':
@@ -238,6 +238,7 @@ namespace /* internal */
case 'с':
type = ATR_SPOUSES;
break;
case 'AB':
default:
err_illegal_attribute(t);
}
@@ -338,7 +339,7 @@ namespace /* internal */
}
else if(it->size() == 2)
{
U16 cyr = ((U8)it->begin[0] << 8) | (U8)it->begin[1]; /* assuming char signed? */
U16 cyr = ((U8)it->begin[0] << 8) | (U8)it->begin[1];
if(cyr == 'М')
res = M;
else if(cyr == 'Ж')
@@ -543,10 +544,10 @@ namespace /* internal */
case ATR_SPOUSES:
spouses = parseSpouses(it, end);
break;
case NEW_LINE:
case NEW_LINE: // current person is done
++line;
++it;
case STRING:
case STRING: // next person starts here
/* todo str prevent copy */
cur_tree->addPerson(name.c_str(), sex,
parents.first, parents.second, birth, death);