[PATCH setup, v2] site.cc, site.h: code cleanup
Mon Nov 27 14:59:00 GMT 2017
On 24/11/2017 17:29, Ken Brown wrote:
> Remove site_list_type::init(), which was introduced to work around a
> problem with gcc-2.95.
> Add a bool member 'from_mirrors_lst' to the site_list_type class. Use
> it to distinguish mirrors listed in mirrors.lst from user-added sites.
> This replaces the (undocumented) use of
> site_list_type::servername.size() for this purpose.
> When registerSavedSite is called on a URL that's already in
> 'all_site_list', add the version from 'all_site_list' to 'site_list'
> rather than adding a temporary version that contains no information
> other than the URL.
> Similarly, if the user adds a site that was already in
> 'all_site_list', don't replace the existent version with the new one
> (which contains only the URL).
> site.cc | 42 ++++++++++++++++++------------------------
> site.h | 9 +++++----
> 2 files changed, 23 insertions(+), 28 deletions(-)
More information about the Cygwin-apps