Add more const declarations
This commit is contained in:
parent
de3e50e486
commit
5e1f1055e1
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000-2025 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2000-2026 Stephen Williams (steve@icarus.com)
|
||||
*
|
||||
* This source code is free software; you can redistribute it
|
||||
* and/or modify it in source code form under the terms of the GNU
|
||||
|
|
@ -131,7 +131,7 @@ Nexus* Link::find_nexus_() const
|
|||
{
|
||||
assert(next_);
|
||||
if (nexus_) return nexus_;
|
||||
for (Link*cur = next_ ; cur != this ; cur = cur->next_) {
|
||||
for (const Link*cur = next_ ; cur != this ; cur = cur->next_) {
|
||||
if (cur->nexus_) return cur->nexus_;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -408,12 +408,12 @@ vvp_net_t* vvp_net_lookup(const char*label)
|
|||
case vpiIntVar:
|
||||
case vpiLongIntVar:
|
||||
case vpiIntegerVar: {
|
||||
__vpiSignal*sig = dynamic_cast<__vpiSignal*>(vpi);
|
||||
const __vpiSignal*sig = dynamic_cast<__vpiSignal*>(vpi);
|
||||
return sig->node;
|
||||
}
|
||||
|
||||
case vpiRealVar: {
|
||||
__vpiRealVar*sig = dynamic_cast<__vpiRealVar*>(vpi);
|
||||
const __vpiRealVar*sig = dynamic_cast<__vpiRealVar*>(vpi);
|
||||
return sig->net;
|
||||
}
|
||||
|
||||
|
|
@ -425,7 +425,7 @@ vvp_net_t* vvp_net_lookup(const char*label)
|
|||
}
|
||||
|
||||
case vpiNamedEvent: {
|
||||
__vpiNamedEvent*tmp = dynamic_cast<__vpiNamedEvent*>(vpi);
|
||||
const __vpiNamedEvent*tmp = dynamic_cast<__vpiNamedEvent*>(vpi);
|
||||
return tmp->funct;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ char* vpi_get_str(PLI_INT32 property, vpiHandle ref)
|
|||
|
||||
__vpiScope*vpip_timescale_scope_from_handle(vpiHandle obj)
|
||||
{
|
||||
struct __vpiSysTaskCall*task;
|
||||
const struct __vpiSysTaskCall*task;
|
||||
struct __vpiSignal*signal;
|
||||
struct __vpiRealVar*real;
|
||||
const __vpiNamedEvent*event;
|
||||
|
|
|
|||
Loading…
Reference in New Issue