On Fri, 1 Jun 2007 16:03:35 +0100 Dave wrote: DS> The other contributory factor is that there's a lot of duplication in DS> this naming DS> system - particularly with the multi-level directory structure. If DS> you've got a DS> table xxxxSomeTable, then the files will typically be called DS> DS> some-mib/xxxSomeTable/xxxSomeTable..... DS> DS> which immediately almost doubles the length of the filenames! DS> (Well, not quite doubles, but you know what I mean). DS> DS> I certainly like the idea of shortening (or omitting) some of this duplication. DS> One possibility might be to drop the table name from the lower-level files DS> (or replace it with a much shorter prefix). Giving something like: DS> DS> some-mib/xxxSomeTable/{table,data_access,interface}.[ch] DS> DS> And perhaps the "user-editable" code could be moved up a level, DS> giving: DS> DS> some-mib/xxxSomeTable.c (for main developer-tweakable code) DS> some-mib/xxxSomeTable/{interface,data_access}.[ch]
I'm not thrilled about the idea of lots of similarly named files (eg 'interface.c')... I'd rather eliminate the sub-directory, though I'm not keen on that idea either.. I have thought about having mib2c 'compress' the file names (eg xST_interface.c), but just never bothered to figure out how to do that in mib2c. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders