Skip to content

Commit

Permalink
Use designated initializers for StructInitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 3, 2025
1 parent 787ead0 commit 23e9c35
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/DeepThought.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,11 @@ static Int InitLibrary( StructInitInfo *module )
*F InitInfopl() . . . . . . . . . . . . . . . . . table of init functions
*/
static StructInitInfo module = {
/* type = */ MODULE_DYNAMIC,
/* name = */ "DeepThought",
/* revision_c = */ 0,
/* revision_h = */ 0,
/* version = */ 0,
/* crc = */ 0,
/* initKernel = */ InitKernel,
/* initLibrary = */ InitLibrary,
/* checkInit = */ 0,
/* preSave = */ 0,
/* postSave = */ 0,
/* postRestore = */ PostRestore
.type = MODULE_DYNAMIC,
.name = "DeepThought",
.initKernel = InitKernel,
.initLibrary = InitLibrary,
.postRestore = PostRestore,
};

StructInitInfo *Init__Dynamic( void )
Expand Down

0 comments on commit 23e9c35

Please sign in to comment.