(!1788) 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>
This commit is contained in:
		
							parent
							
								
									03967f3242
								
							
						
					
					
						commit
						f365b8f211
					
				|  | @ -7,26 +7,24 @@ | |||
| #include <xorg-config.h> | ||||
| #endif | ||||
| 
 | ||||
| #include "xf86.h" | ||||
| #include "xf86str.h" | ||||
| #include "xf86Pci.h" | ||||
| #include "xf86int10.h" | ||||
| #include "xf86Module.h" | ||||
| //#include "xf86str.h"
 | ||||
| //#include "xf86Pci.h"
 | ||||
| //#include "xf86int10.h"
 | ||||
| 
 | ||||
| #ifndef MOD_NAME | ||||
| #define MOD_NAME int10 | ||||
| #endif | ||||
| 
 | ||||
| #define stringify(x) #x | ||||
| #define STRING(x) stringify(x) | ||||
| #define concat(x,y) x ## y | ||||
| #define combine(a,b) concat(a,b) | ||||
| #define NAME(x) combine(MOD_NAME,x) | ||||
| 
 | ||||
| static XF86ModuleVersionInfo NAME(VersRec) = { | ||||
|     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} | ||||
| static XF86ModuleVersionInfo VersRec = { | ||||
|     .modname      = "int10", | ||||
|     .vendor       = MODULEVENDORSTRING, | ||||
|     ._modinfo1_   = MODINFOSTRING1, | ||||
|     ._modinfo2_   = MODINFOSTRING2, | ||||
|     .xf86version  = XORG_VERSION_CURRENT, | ||||
|     .majorversion = 1, | ||||
|     .minorversion = 0, | ||||
|     .patchlevel   = 0, | ||||
|     .abiclass     = ABI_CLASS_VIDEODRV, | ||||
|     .abiversion   = ABI_VIDEODRV_VERSION, | ||||
| }; | ||||
| 
 | ||||
| _X_EXPORT XF86ModuleData NAME(ModuleData) = { | ||||
| &NAME(VersRec), NULL, NULL}; | ||||
| _X_EXPORT XF86ModuleData int10ModuleData = { | ||||
|     .vers = &VersRec | ||||
| }; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue