xfree86: xf86int10module: use explicit field initializers for XF86ModuleData
Even though the order of these fields shouldn't change anytime soon, it's still better programming style to name'em explicitly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1788>
This commit is contained in:
parent
f54993a222
commit
d87e93bf40
|
@ -7,26 +7,21 @@
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xf86.h"
|
#include "xf86Module.h"
|
||||||
#include "xf86str.h"
|
|
||||||
#include "xf86Pci.h"
|
|
||||||
#include "xf86int10.h"
|
|
||||||
|
|
||||||
#ifndef MOD_NAME
|
static XF86ModuleVersionInfo VersRec = {
|
||||||
#define MOD_NAME int10
|
.modname = "int10",
|
||||||
#endif
|
.vendor = MODULEVENDORSTRING,
|
||||||
|
._modinfo1_ = MODINFOSTRING1,
|
||||||
#define stringify(x) #x
|
._modinfo2_ = MODINFOSTRING2,
|
||||||
#define STRING(x) stringify(x)
|
.xf86version = XORG_VERSION_CURRENT,
|
||||||
#define concat(x,y) x ## y
|
.majorversion = 1,
|
||||||
#define combine(a,b) concat(a,b)
|
.minorversion = 0,
|
||||||
#define NAME(x) combine(MOD_NAME,x)
|
.patchlevel = 0,
|
||||||
|
.abiclass = ABI_CLASS_VIDEODRV,
|
||||||
static XF86ModuleVersionInfo NAME(VersRec) = {
|
.abiversion = ABI_VIDEODRV_VERSION,
|
||||||
STRING(NAME()), MODULEVENDORSTRING, MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, 1, 0, 0, ABI_CLASS_VIDEODRV, /* needs the video driver ABI */
|
|
||||||
ABI_VIDEODRV_VERSION, MOD_CLASS_NONE, {
|
|
||||||
0, 0, 0, 0}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_X_EXPORT XF86ModuleData NAME(ModuleData) = {
|
_X_EXPORT XF86ModuleData int10ModuleData = {
|
||||||
&NAME(VersRec), NULL, NULL};
|
.vers = &VersRec
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue