dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed 'add' record functions to 'new'.
[gedcom-parse.git]
/
t
/
src
/
update_gom.c
diff --git
a/t/src/update_gom.c
b/t/src/update_gom.c
index 46a990740f3a81d5be6f7ddd782ddcc014c1f647..87a65a1fd1a7f1dd987b55f171d36cc147ef8bd5 100644
(file)
--- a/
t/src/update_gom.c
+++ b/
t/src/update_gom.c
@@
-231,7
+231,7
@@
int test_record_add_delete_functions()
const char* new_nr_of_children = "3";
const char* note_text = "This is some text";
const char* new_nr_of_children = "3";
const char* note_text = "This is some text";
- fam1 = gom_
add
_family("@FAM1@");
+ fam1 = gom_
new
_family("@FAM1@");
if (!fam1) return 101;
value = gom_set_string(&fam1->nr_of_children, new_nr_of_children);
if (!fam1) return 101;
value = gom_set_string(&fam1->nr_of_children, new_nr_of_children);
@@
-240,16
+240,16
@@
int test_record_add_delete_functions()
if (strcmp(value, new_nr_of_children))
return 103;
if (strcmp(value, new_nr_of_children))
return 103;
- ind1 = gom_
add
_individual("@FAM1@");
+ ind1 = gom_
new
_individual("@FAM1@");
if (ind1) return 104;
if (ind1) return 104;
- ind1 = gom_
add
_individual("@IND1@");
+ ind1 = gom_
new
_individual("@IND1@");
if (!ind1) return 105;
if (!ind1) return 105;
- mm1 = gom_
add
_multimedia("@OBJ1@");
+ mm1 = gom_
new
_multimedia("@OBJ1@");
if (!mm1) return 106;
if (!mm1) return 106;
- note1 = gom_
add
_note("@NOTE1@");
+ note1 = gom_
new
_note("@NOTE1@");
if (!note1) return 107;
value = gom_set_string(¬e1->text, note_text);
if (!note1) return 107;
value = gom_set_string(¬e1->text, note_text);
@@
-258,37
+258,37
@@
int test_record_add_delete_functions()
if (strcmp(value, note_text))
return 109;
if (strcmp(value, note_text))
return 109;
- repo1 = gom_
add
_repository("@REPO1@");
+ repo1 = gom_
new
_repository("@REPO1@");
if (!repo1) return 110;
if (!repo1) return 110;
- sour1 = gom_
add
_source("@SOUR1@");
+ sour1 = gom_
new
_source("@SOUR1@");
if (!sour1) return 111;
if (!sour1) return 111;
- subm2 = gom_
add
_submitter("@SUBMITTER@");
+ subm2 = gom_
new
_submitter("@SUBMITTER@");
if (subm2) return 112;
if (subm2) return 112;
- subm2 = gom_
add
_submitter("@SUBM2@");
+ subm2 = gom_
new
_submitter("@SUBM2@");
if (!subm2) return 113;
if (!subm2) return 113;
- subn1 = gom_
add
_submission("@SUBMISSION@");
+ subn1 = gom_
new
_submission("@SUBMISSION@");
if (!subn1) return 114;
if (!subn1) return 114;
- user1 = gom_
add
_user_rec("@USER1@", "WRTAG");
+ user1 = gom_
new
_user_rec("@USER1@", "WRTAG");
if (user1) return 115;
if (user1) return 115;
- user1 = gom_
add
_user_rec("@USER1@", "_TAG");
+ user1 = gom_
new
_user_rec("@USER1@", "_TAG");
if (!user1) return 116;
xr = gom_set_xref(&(fam1->husband), ind1->xrefstr);
if (!xr) return 118;
if (!user1) return 116;
xr = gom_set_xref(&(fam1->husband), ind1->xrefstr);
if (!xr) return 118;
- ind2 = gom_
add
_individual("@IND2@");
+ ind2 = gom_
new
_individual("@IND2@");
if (!ind2) return 119;
if (!ind2) return 119;
- ind3 = gom_
add
_individual("@IND3@");
+ ind3 = gom_
new
_individual("@IND3@");
if (!ind3) return 120;
if (!ind3) return 120;
- ind4 = gom_
add
_individual("@IND4@");
+ ind4 = gom_
new
_individual("@IND4@");
if (!ind4) return 121;
xrl = gom_add_xref(&(fam1->children), ind2->xrefstr);
if (!ind4) return 121;
xrl = gom_add_xref(&(fam1->children), ind2->xrefstr);