clean up compilaton options
This commit is contained in:
+1
-4
@@ -3,10 +3,7 @@
|
|||||||
language='
|
language='
|
||||||
-std=c++17
|
-std=c++17
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
-fno-exceptions
|
-fno-exceptions'
|
||||||
-fno-non-call-exceptions
|
|
||||||
-fno-common'
|
|
||||||
# force each global variable to be only defined once
|
|
||||||
|
|
||||||
warnings='
|
warnings='
|
||||||
-Wall
|
-Wall
|
||||||
|
|||||||
+1
-8
@@ -8,26 +8,19 @@ PREFIX=/usr/local
|
|||||||
language='
|
language='
|
||||||
-std=c++17
|
-std=c++17
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
-fno-exceptions
|
-fno-exceptions'
|
||||||
-fno-non-call-exceptions
|
|
||||||
-fno-common' # force each global variable to be only defined once
|
|
||||||
|
|
||||||
optimizations='
|
optimizations='
|
||||||
-Ofast
|
-Ofast
|
||||||
-flto
|
-flto
|
||||||
-fipa-pta
|
|
||||||
-fgcse-sm
|
|
||||||
-fgcse-las
|
|
||||||
-march=native'
|
-march=native'
|
||||||
|
|
||||||
warnings='
|
warnings='
|
||||||
-Wall
|
-Wall
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wno-implicit-fallthrough
|
|
||||||
-Wno-multichar'
|
-Wno-multichar'
|
||||||
# -Wpedantic' #-fanalyzer
|
# -Wpedantic' #-fanalyzer
|
||||||
|
|
||||||
|
|
||||||
other='-fno-fat-lto-objects'
|
other='-fno-fat-lto-objects'
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
|
|||||||
+5
-4
@@ -223,7 +223,7 @@ namespace /* internal */
|
|||||||
type = ATR_SPOUSES;
|
type = ATR_SPOUSES;
|
||||||
break;
|
break;
|
||||||
default:
|
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 */
|
switch(cyr) /* check for cyrilic attribure */
|
||||||
{
|
{
|
||||||
case 'д':
|
case 'д':
|
||||||
@@ -238,6 +238,7 @@ namespace /* internal */
|
|||||||
case 'с':
|
case 'с':
|
||||||
type = ATR_SPOUSES;
|
type = ATR_SPOUSES;
|
||||||
break;
|
break;
|
||||||
|
case 'AB':
|
||||||
default:
|
default:
|
||||||
err_illegal_attribute(t);
|
err_illegal_attribute(t);
|
||||||
}
|
}
|
||||||
@@ -338,7 +339,7 @@ namespace /* internal */
|
|||||||
}
|
}
|
||||||
else if(it->size() == 2)
|
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 == 'М')
|
if(cyr == 'М')
|
||||||
res = M;
|
res = M;
|
||||||
else if(cyr == 'Ж')
|
else if(cyr == 'Ж')
|
||||||
@@ -543,10 +544,10 @@ namespace /* internal */
|
|||||||
case ATR_SPOUSES:
|
case ATR_SPOUSES:
|
||||||
spouses = parseSpouses(it, end);
|
spouses = parseSpouses(it, end);
|
||||||
break;
|
break;
|
||||||
case NEW_LINE:
|
case NEW_LINE: // current person is done
|
||||||
++line;
|
++line;
|
||||||
++it;
|
++it;
|
||||||
case STRING:
|
case STRING: // next person starts here
|
||||||
/* todo str prevent copy */
|
/* todo str prevent copy */
|
||||||
cur_tree->addPerson(name.c_str(), sex,
|
cur_tree->addPerson(name.c_str(), sex,
|
||||||
parents.first, parents.second, birth, death);
|
parents.first, parents.second, birth, death);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ types - screenCoord...
|
|||||||
Visualization:
|
Visualization:
|
||||||
- zooming
|
- zooming
|
||||||
- snap to selection/scroll with selection
|
- snap to selection/scroll with selection
|
||||||
- horizontal navigation between cousins
|
- horizontal navigation between cousins - finish
|
||||||
- color on different consoles
|
- color on different consoles
|
||||||
- screen resize
|
- screen resize
|
||||||
- empty tree
|
- empty tree
|
||||||
@@ -32,7 +32,7 @@ Compilation
|
|||||||
|
|
||||||
Refactoring
|
Refactoring
|
||||||
- comment style /*
|
- comment style /*
|
||||||
- check return codes - setlocale
|
- check return codes - setlocale,
|
||||||
|
|
||||||
test
|
test
|
||||||
- no Adam
|
- no Adam
|
||||||
|
|||||||
Reference in New Issue
Block a user