break a2e_chk_last into separate function
This commit is contained in:
parent
4ff1aa2d6d
commit
3d01638da0
|
@ -41,6 +41,7 @@ struct LogData
|
||||||
|
|
||||||
static void append_to_empty(TestState *);
|
static void append_to_empty(TestState *);
|
||||||
static void append_to_existing(TestState *);
|
static void append_to_existing(TestState *);
|
||||||
|
static void a2e_chk_last(TestState *, LogData *);
|
||||||
static void mk_log_data(LogData *);
|
static void mk_log_data(LogData *);
|
||||||
|
|
||||||
static void chk_ptr_chg(
|
static void chk_ptr_chg(
|
||||||
|
@ -116,14 +117,19 @@ append_to_existing(TestState *s)
|
||||||
&ld.first
|
&ld.first
|
||||||
);
|
);
|
||||||
|
|
||||||
// last should change
|
a2e_chk_last(s, &ld);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
a2e_chk_last(TestState *s, LogData *ld)
|
||||||
|
{
|
||||||
print("\t\tlast_log\n");
|
print("\t\tlast_log\n");
|
||||||
chk_ptr_chg(
|
chk_ptr_chg(
|
||||||
s,
|
s,
|
||||||
"\t\t\t",
|
"\t\t\t",
|
||||||
"ERROR: append_test_log(): last_log:",
|
"ERROR: append_test_log(): last_log:",
|
||||||
ld.state.last_log,
|
ld->state.last_log,
|
||||||
&ld.second
|
&ld->second
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user