
Hi!
Mark> My understanding is that in the current implementation Mark> comments are not being preserved at any data structure in Mark> libsmi.
Right. Comments are filtered out by the flex scanner.
Mark> If I'm right, I would like to suggest that a code will be Mark> added to do this. The advantages of preserving comments are Mark> that utilities like dumpsmi will be able to regenerate the Mark> exact contents of the original MIB module, and that there are Mark> some places, like enum values definition, were it is more Mark> convinient to use a comment near the definition.
I disagree. Comments are just comments. All essential information of a MIB has to be placed in formal constructs, i.e. DESCRIPTION and REFERENCES clauses. Otherwise this information is not available, e.g. in MIB browsers, smiquery, or other tools.
In case you are really looking for a tool that regenerates the exact contens of a MIB file, try `cp'. ;-)
-frank