View Issue Details

IDProjectCategoryView StatusLast Update
0003942unrealircdpublic2015-08-08 16:39
Reporterohnobinki Assigned Tosyzop  
PrioritylowSeverityfeatureReproducibilityhave not tried
Status closedResolutionno change required 
Product Version3.2.9-RC1 
Summary0003942: typechecking for module hooks
DescriptionIt would be nice to make it harder to mismatch hooks. For example, the compiler could detect that hooks are being mismatched if each hook is given a function prototype typedef or something. Or, maybe this could be as simple as a function like:

HookAddExArg(Module*, int hooktype, int (*intfunc)(), int num_args);

Assumably, if a hook changed its interface, the number of arguments passed to the hook would also change.



Maybe this idea is completely pointless. Unrealircd could just choose to never change the signatures of hook functions. If a hook needed to be changed, it could be renamed to HOOKTYPE_BLAH_V2 or something.
3rd party modules

Activities

syzop

2015-08-08 16:39

administrator   ~0018615

Probably a fair point but seems not worth the amount of work

Issue History

Date Modified Username Field Change
2010-08-05 22:05 ohnobinki New Issue
2010-08-05 22:05 ohnobinki QA => Not touched yet by developer
2010-08-05 22:05 ohnobinki U4: Need for upstream patch => No need for upstream InspIRCd patch
2010-08-05 22:05 ohnobinki U4: Upstream notification of bug => Not decided
2010-08-05 22:05 ohnobinki U4: Contributor working on this => None
2015-08-08 16:39 syzop Note Added: 0018615
2015-08-08 16:39 syzop Status new => closed
2015-08-08 16:39 syzop Assigned To => syzop
2015-08-08 16:39 syzop Resolution open => no change required