"Diego 'Flameeyes' Pettenò" <[EMAIL PROTECTED]> writes: > On 01/feb/08, at 09:12, Hrvoje Niksic wrote: > >> Even ignoring the fact that Wget is not a shared library, there are >> ways to solve this problem other than turning all char *foo[] into >> char foo[][MAXSIZE], which is, sorry, just lame and wasteful in all >> but the most trivial examples. > > That's why I didn't turn _all_ of them, but just where the waste of > space for the strings was very limited, or none at all.
I appreciate that, but from a maintainer's perspective that kind of change adds a small maintenance burden for literally *no* gain. Although the individual burden in each case is quite small, they tend to accumulate. On the other hand, the gain by this kind of change is virtually zero and doesn't accumulate into a measurable performance boost. This kind of effort should be redirected toward shared libraries where it might actually make a difference, especially for those that are used by many programs and that contain many pointers. Of course, the changes that introduce const without compromising maintainability, such as the constification of the Wp declaration in ftp-opie.c, are more than welcome.
