ObjFW  Diff

Differences From Artifact [18f66eccc2]:

To Artifact [a1d249e5df]:

  • File src/OFObject.h — part of check-in [1af54eb2c2] at 2024-04-02 03:21:12 on branch trunk — Only align OFVector4D where necessary

    Changing the alignment of OFVector4D globally (as was done previously)
    would have technically been an ABI break in extremely rare cases.
    However, since we only need the alignment for the methods added after
    1.0, it's better to only have the alignment there and get back to full
    ABI compatibility with 1.0. (user: js, size: 43716) [annotate] [blame] [check-ins using]


345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
}

/**
 * @struct OFVector4D OFObject.h ObjFW/OFObject.h
 *
 * @brief A vector in 4D space.
 */
typedef struct OF_ALIGN(16) OF_BOXABLE OFVector4D {
	/** The x coordinate of the vector */
	float x;
	/** The y coordinate of the vector */
	float y;
	/** The z coordinate of the vector */
	float z;
	/** The w coordinate of the vector */







|







345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
}

/**
 * @struct OFVector4D OFObject.h ObjFW/OFObject.h
 *
 * @brief A vector in 4D space.
 */
typedef struct OF_BOXABLE OFVector4D {
	/** The x coordinate of the vector */
	float x;
	/** The y coordinate of the vector */
	float y;
	/** The z coordinate of the vector */
	float z;
	/** The w coordinate of the vector */