]> cygwin.com Git - cygwin-apps/setup.git/commit - site.h
2001-12-04 Robert Collins <rbtcollins@hotmail.com>
authorRobert Collins <rbtcollins@hotmail.com>
Mon, 3 Dec 2001 22:22:09 +0000 (22:22 +0000)
committerRobert Collins <rbtcollins@hotmail.com>
Mon, 3 Dec 2001 22:22:09 +0000 (22:22 +0000)
commitde6a1a64569bcf0fff3762bd64efc73efc043ddf
treeeb33a476ebddcb47026b1a175697f1ac45d17839
parent341988b9ced87238ddcb2bd0ce5ea58f01a79371
2001-12-04  Robert Collins  <rbtcollins@hotmail.com>

        * Makefile.in (OBJS): Add setup_version.o.
        (version.c): Rename to setup_version.
        * choose.cc (set_action): Prevent NULL pointer dereference.
        (package_sort): Remove.
        * fromcwd.cc (canonicalize_version): Moved to version.cc.
        (check_ini): New function for use with find to see if there is a cached setup.ini.
        (do_fromcwd): Check for a cached setup.ini from any mirror site.
        * ini.cc (find_routine): New function, for finding cached setup.ini's.
        (do_local_ini): New function, drives parsing of local ini's.
        (do_remote_ini): New function, drives parsing and caching of remote ini's.
        (do_ini): Move guts to do_remote_ini and do_local_ini.
        * list.h (removebyindex): New method.
        * other.cc (save_dialog): Use new site_list and all_site_list to add the
        new site to the site picklist.
        (dialog_cmd): Only save the dialog when exiting the dialog.
        * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
        * site.cc (site_list_type): Move to site.h
        (site_list): New global, sites chosen by the user.
        (all_site_list): New global, all potential sites.
        (site_list_type::init): New method, parses a mirror.lst URL string into a
        site_list_type object.
        (site_list_type::site_list_type): New method.
        (check_if_enable_next): Examine the control, not a local variable.
        (load_dialog): Select all the user chosen sites by default.
        (save_dialog): Adjust for multiple selection semantics.
        (save_site_url): Save all user chosen sites.
        (dialog_cmd): Don't save the dialog when the listbox recieves a message -
        thats not needed.
        Remove obsolete other_url reference.
        (dialog_proc): Use all_site_list instead of site_list.
        (site_sort): Remove.
        (get_site_list): Remove malloc use - use list template instead.
        Move site_list_type initialisation to site_list_type::init().
        (get_initial_list_idx): Renamed to ...
        (get_saved_sites): this. Also read in multiple sites to the site_list.
        (do_site): Use all_site_list not site_list.
        Log all chosen sites.
        * site.h: New file, defines site related class, functions and variables.
        * state.h: Add comment about use of state.h
        (mirror_site): Remove.
        (other_url): Remove.
        (MIRROR_SITE): Remove.
        * version.cc: New file, for version-handling and related functions.
12 files changed:
ChangeLog
Makefile.in
choose.cc
fromcwd.cc
ini.cc
list.h
other.cc
res.rc
site.cc
site.h [new file with mode: 0644]
state.h
version.cc [new file with mode: 0644]
This page took 0.036291 seconds and 5 git commands to generate.