# HG changeset patch # User Rik # Date 1629917937 25200 # Node ID b8ffd22ee32c4bd486a8f5ead8c7d18fca39279d # Parent 13c04ecbfbe1b51cc6adacbad080f2a3011eff19 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. diff -r 13c04ecbfbe1 -r b8ffd22ee32c libinterp/corefcn/stream-euler.cc --- 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)