Increase maximum number of modifiers in rcontrib

Hello everyone,

Currently the maximum number of modifiers in rcontrib is set to 10000. Is this because of some technical limitations? or can this be set to a higher number?

Anytime there is a constant bracketed by #ifdef’s like this, you can put “-DMAXMODLIST=20000” or similar in your rmake script or add it to the compile flags by other means to change the definition. In this case, there is just the memory cost of the modname[] array, and it was allocated this size because I don’t know of any systems that handle this many simultaneously open files. Of course, the number of modifier names doesn’t dictate the number of open files, but the two are usually related in rcontrib.

1 Like