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
Definition of SUB_MAKEFUNC, SUB_ADDFUNC and SUB_DELETEFUNC.
[gedcom-parse.git]
/
t
/
src
/
update.c
diff --git
a/t/src/update.c
b/t/src/update.c
index d9f02a24651577a2145b3b543bf70dbd23ca88eb..22e852c76278ed5d323deda0278062a3e01cbd1d 100644
(file)
--- a/
t/src/update.c
+++ b/
t/src/update.c
@@
-23,6
+23,7
@@
#include "gedcom.h"
#include "output.h"
#include "gedcom.h"
#include "output.h"
+#include "portability.h"
#include <locale.h>
#include <stdio.h>
#include <locale.h>
#include <stdio.h>
@@
-40,7
+41,7
@@
void gedcom_message_handler(Gedcom_msg_type type, char *msg)
void show_help ()
{
printf("gedcom-parse test program for libgedcom\n\n");
void show_help ()
{
printf("gedcom-parse test program for libgedcom\n\n");
- printf("Usage: updatetest [options]
file
\n");
+ printf("Usage: updatetest [options]\n");
printf("Options:\n");
printf(" -h Show this help text\n");
printf(" -q No output to standard output\n");
printf("Options:\n");
printf(" -h Show this help text\n");
printf(" -q No output to standard output\n");
@@
-51,6
+52,7
@@
int test_xref_functions()
{
struct xref_value* xr;
int result;
{
struct xref_value* xr;
int result;
+ long int tmp;
xr = gedcom_get_by_xref("@NOTHING_THERE@");
if (xr != NULL)
xr = gedcom_get_by_xref("@NOTHING_THERE@");
if (xr != NULL)
@@
-81,7
+83,8
@@
int test_xref_functions()
return 16;
}
return 16;
}
- if ((int)xr->object != 1) {
+ tmp = void_ptr_to_int(xr->object);
+ if (tmp != 1) {
output(1, "Not the correct cross-reference object\n");
return 17;
}
output(1, "Not the correct cross-reference object\n");
return 17;
}