patch-kernel_driver_info_cc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-kernel_driver_info_cc,v 1.1 2017/06/03 14:25:16 espie Exp $
  2. can't declare functions in the middle of functions in modern C++
  3. Index: kernel/driver_info.cc
  4. --- kernel/driver_info.cc.orig
  5. +++ kernel/driver_info.cc
  6. @@ -268,6 +268,7 @@ do_scalar_inertial_assignment(driver_info &driver, con
  7. *************************************************************************
  8. *************************************************************************/
  9. +inline int do_record_transport_assignment(driver_info &, const record_base &, int, const vtime &);
  10. // Creates transaction composite signals. Returns number of assigned scalars.
  11. inline int
  12. @@ -311,7 +312,6 @@ do_array_transport_assignment(driver_info &driver, con
  13. assigned_scalars += do_array_transport_assignment(driver, (array_base&)value.data[j], i, tr_time);
  14. break;
  15. case RECORD:
  16. - inline int do_record_transport_assignment(driver_info &, const record_base &, int, const vtime &);
  17. assigned_scalars += do_record_transport_assignment(driver, (record_base&)value.data[j], i, tr_time);
  18. break;
  19. }
  20. @@ -338,6 +338,9 @@ driver_info::transport_assign(const array_base &value,
  21. }
  22. +inline int do_record_inertial_assignment(driver_info &, const record_base &,
  23. + int, const vtime &, const vtime &);
  24. +
  25. // Creates transaction for composite signals. Returns number of assigned scalars.
  26. inline int
  27. do_array_inertial_assignment(driver_info &driver,
  28. @@ -381,8 +384,6 @@ do_array_inertial_assignment(driver_info &driver,
  29. assigned_scalars += do_array_inertial_assignment(driver, (array_base&)value.data[j], i, tr_time, rm_time);
  30. break;
  31. case RECORD:
  32. - inline int do_record_inertial_assignment(driver_info &, const record_base &, int,
  33. - const vtime &, const vtime &);
  34. assigned_scalars += do_record_inertial_assignment(driver, (record_base&)value.data[j], i, tr_time, rm_time);
  35. break;
  36. }