From 2b87c6b68914064a446235245bd0a623b2236233 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Wed, 3 Jun 2020 18:35:41 +0000 Subject: [PATCH] - fix bug with Intel I9 and Linux git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7125 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 08d9da7d96ca52b06edb7dd47f4eb13bb8dc868e Former-commit-id: 4e4211b7c46423acf5de6d11a3b82ee0a69d3f28 --- src/libs/tgf/modinfo.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libs/tgf/modinfo.h b/src/libs/tgf/modinfo.h index 61d9ab910..ba9ff4b9a 100644 --- a/src/libs/tgf/modinfo.h +++ b/src/libs/tgf/modinfo.h @@ -2,7 +2,7 @@ modinfo.h -- Tools for module interface management created : Fri Aug 13 22:32:14 CEST 1999 - copyright : (C) 2008 by Jean-Philippe Meuret + copyright : (C) 2008 by Jean-Philippe Meuret email : jpmeuret@free.fr version : $Id$ ***************************************************************************/ @@ -16,8 +16,8 @@ * * ***************************************************************************/ -/** @file - Tools for module interface management. +/** @file + Tools for module interface management. @author Jean-Philippe Meuret @version $Id$ */ @@ -26,14 +26,14 @@ #ifndef __MODINFO__H__ #define __MODINFO__H__ -/** Maximum number of interfaces in one "legacy" module +/** Maximum number of interfaces in one "legacy" module (no limit for "Unlimited Number of Interfaces" modules) @see ModList */ -#define MAX_MOD_ITF 40 +#define MAX_MOD_ITF 20 #define GfModInfoDefaultMaxItf MAX_MOD_ITF -/* Name of the module function where run-time informations are exchanged (new scheme) +/* Name of the module function where run-time informations are exchanged (new scheme) This function is called before moduleInitialize if present */ #define GfModInfoWelcomeFuncName "moduleWelcome" @@ -55,7 +55,7 @@ typedef struct ModWelcomeOut { unsigned int maxNbItf; /**< Max number of interfaces */ } tModWelcomeOut; -/** initialisation of the function table +/** initialisation of the function table @see ModInfo */ typedef int (*tfModPrivInit)(int index, void *); @@ -71,7 +71,7 @@ typedef struct ModInfo { int magic; /**< magic number for integrity check */ } tModInfo; -/** Internal module interface information structure (see GfModInfoDuplicate) +/** Internal module interface information structure (see GfModInfoDuplicate) WARNING: Must have the same fields ; only const-ness may differ */ typedef struct ModInfoNC { char *name; /**< name of the module (short) (NULL if no module) */ @@ -103,7 +103,7 @@ typedef struct ModList { } tModList; -/* Interface of module function where run-time informations are exchanged +/* Interface of module function where run-time informations are exchanged This function is called before moduleInitialize if present */ typedef int (*tfModInfoWelcome)(const tModWelcomeIn*, tModWelcomeOut*); @@ -131,8 +131,8 @@ TGF_API void GfModInfoFreeNC(tModInfoNC *array, int maxItf); TGF_API tModInfoNC* GfModInfoDuplicate(const tModInfo *source, int maxItf); /* Initialize the module with given handle and library file path */ -TGF_API int GfModInitialize(tSOHandle soHandle, const char *soPath, - unsigned int gfid, tModList **mod); +TGF_API int GfModInitialize(tSOHandle soHandle, const char *soPath, + unsigned int gfid, tModList **mod); /* Terminate the module with given handle and library file path */ TGF_API int GfModTerminate(tSOHandle soHandle, const char *soPath);