changeset 30043:b8ffd22ee32c

maint: use C++ style struct declaration instead of typedef struct in stream-euler.cc * stream-euler.cc: Convert "typedef struct" to "struct CLASS_NAME" for Vector2, Cell2, Vector3, Cell3.
author Rik <rik@octave.org>
date Wed, 25 Aug 2021 11:58:57 -0700
parents 13c04ecbfbe1
children 1f34286a2637
files libinterp/corefcn/stream-euler.cc
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/stream-euler.cc	Wed Aug 25 11:45:37 2021 -0700
+++ b/libinterp/corefcn/stream-euler.cc	Wed Aug 25 11:58:57 2021 -0700
@@ -57,31 +57,31 @@
 
 // Coordinates of a point in C-Space (unit square mesh)
 
-typedef struct
+struct Vector2
 {
   double x, y;
-} Vector2;
+};
 
 // The integer value and the fractional value from a point in C-Space.
 // Equivalent to the cell index the point is located in and the local
 // coordinates of the point in the cell.
 
-typedef struct
+struct Cell2
 {
   double fcx, fcy;
   signed long idx, idy;
-} Cell2;
+};
 
-typedef struct
+struct Vector3
 {
   double x, y, z;
-} Vector3;
+};
 
-typedef struct
+struct Cell3
 {
   double fcx, fcy, fcz;
   signed long idx, idy, idz;
-} Cell3;
+};
 
 static inline void
 number_to_fractional (signed long *id, double *fc, const double u)