Luke Kenneth Casson Leighton
lkcl at switchboard.net
Tue Aug 4 20:53:39 GMT 1998
On Fri, 31 Jul 1998, Christopher R. Hertel wrote:
> Hmmm... How many places in Samba do we have two functions which are
> similar but not quite the same? How many times has a function been copied
> and renamed?
this is another good reason for having a proper directory structure, to
isolate common modules. when you go to create a function you don't know
exists, you find that in the directory where such a function should be
placed there already is a module with such a function.
if you have a "utils.c" file with 4,000 lines of code in it, who's going
to be bothered to trawl through it to find a 16-bit version of strcat?
if you have a "unicodestr.c" file with 200 lines of code in it, ustrcat is
going to pop up in seconds.
More information about the samba-technical