projects
/
dcpu16
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
further cleanup of message callback changes
[dcpu16]
/
hw_clock.c
diff --git
a/hw_clock.c
b/hw_clock.c
index ebd58fde5568cdf4367503336acc65e869cdb638..fb9e195abe410b6f3c29fe82c4f110a3fbb09bef 100644
(file)
--- a/
hw_clock.c
+++ b/
hw_clock.c
@@
-39,7
+39,7
@@
void clock_cycle_(struct dcpu16 *vm, struct dcpu16_hw *hw) {
if (clock->interrupt_message) {
if (dcpu16_interrupt(vm, clock->interrupt_message))
if (clock->interrupt_message) {
if (dcpu16_interrupt(vm, clock->interrupt_message))
- vm->msg_cb_(MSG_ERROR, "%s: could not send interrupt", hw->mod->name_);
+ vm->msg_cb_(
DCPU16_
MSG_ERROR, "%s: could not send interrupt", hw->mod->name_);
}
}
}
}
}
}
@@
-71,7
+71,7
@@
int clock_data_init_(struct dcpu16_hw *hw, void *data) {
hw->data = calloc(1, sizeof(struct clock_));
if (hw->data == NULL) {
hw->data = calloc(1, sizeof(struct clock_));
if (hw->data == NULL) {
- hw->vm->msg_cb_(MSG_ERROR, "%s():%s", "calloc", strerror(errno));
+ hw->vm->msg_cb_(
DCPU16_
MSG_ERROR, "%s():%s", "calloc", strerror(errno));
return -1;
}
return 0;
return -1;
}
return 0;