SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
40
lang/freehdl/patches/patch-kernel_driver_info_cc
Normal file
40
lang/freehdl/patches/patch-kernel_driver_info_cc
Normal file
|
@ -0,0 +1,40 @@
|
|||
can't declare functions in the middle of functions in modern C++
|
||||
|
||||
Index: kernel/driver_info.cc
|
||||
--- kernel/driver_info.cc.orig
|
||||
+++ kernel/driver_info.cc
|
||||
@@ -268,6 +268,7 @@ do_scalar_inertial_assignment(driver_info &driver, con
|
||||
*************************************************************************
|
||||
*************************************************************************/
|
||||
|
||||
+inline int do_record_transport_assignment(driver_info &, const record_base &, int, const vtime &);
|
||||
|
||||
// Creates transaction composite signals. Returns number of assigned scalars.
|
||||
inline int
|
||||
@@ -311,7 +312,6 @@ do_array_transport_assignment(driver_info &driver, con
|
||||
assigned_scalars += do_array_transport_assignment(driver, (array_base&)value.data[j], i, tr_time);
|
||||
break;
|
||||
case RECORD:
|
||||
- inline int do_record_transport_assignment(driver_info &, const record_base &, int, const vtime &);
|
||||
assigned_scalars += do_record_transport_assignment(driver, (record_base&)value.data[j], i, tr_time);
|
||||
break;
|
||||
}
|
||||
@@ -338,6 +338,9 @@ driver_info::transport_assign(const array_base &value,
|
||||
}
|
||||
|
||||
|
||||
+inline int do_record_inertial_assignment(driver_info &, const record_base &,
|
||||
+ int, const vtime &, const vtime &);
|
||||
+
|
||||
// Creates transaction for composite signals. Returns number of assigned scalars.
|
||||
inline int
|
||||
do_array_inertial_assignment(driver_info &driver,
|
||||
@@ -381,8 +384,6 @@ do_array_inertial_assignment(driver_info &driver,
|
||||
assigned_scalars += do_array_inertial_assignment(driver, (array_base&)value.data[j], i, tr_time, rm_time);
|
||||
break;
|
||||
case RECORD:
|
||||
- inline int do_record_inertial_assignment(driver_info &, const record_base &, int,
|
||||
- const vtime &, const vtime &);
|
||||
assigned_scalars += do_record_inertial_assignment(driver, (record_base&)value.data[j], i, tr_time, rm_time);
|
||||
break;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue