]> cygwin.com Git - cygwin-apps/setup.git/commit - ini.h
* choose.cc: Eliminate extra array throughout. Use element in package
authorChristopher Faylor <me@cgf.cx>
Wed, 13 Jun 2001 16:11:01 +0000 (16:11 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 13 Jun 2001 16:11:01 +0000 (16:11 +0000)
commitc46a33a98a4f9cd5b853486b8eaff83b8c3aae49
tree439597457b859e01ca9f2ac8c655b5cf03453676
parent7cc06fd3df55edefaa7bb31c9fdf6cb887062b14
* choose.cc: Eliminate extra array throughout.  Use element in package
structure instead.  Use pointers rather than array indexes where appropriate.
(set_action): New function to set next action based on current.
(choose_caption): New function.  Returns display caption.
(check_existence): Change arguments.  Use pointer to 'info' structure.
(set_existence): Use pointer rather than array index.
(default_trust): Use trusts enum for second argument.
(set_full_list): Honor exclude element in package structure.
(build_labels): Eliminate.
(base): Make global.  Use const char * argument.
(get_package_version): Eliminate.
(getpkgbyname): New function.
(read_installed_db): Use parse_filename to get version info.
* desktop.cc (make_passwd_group): Use getpkgbyname function.
* download.cc (get_file_size): const argument.
(do_download): Use is_download_action to determine when something should be
downloaded.
* filemanip.h: Add some functions.
* ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
* ini.h: Use enums for actions and trusts.
(is_download_action): New macro.
(is_upgrade_action): Ditto.
(is_uninstall_action): Ditto.
(struct Package): Add new fields.
* inilex.l (yylex): Detect new setup.ini options.
* iniparse.y: Declare new tokens.
(yyparse): Detect exclude keyword.  Fill out version field even if version ==
0.
(new_package): Use greater granularity when allocating package array to avoid
repeated calls to realloc.
* install.cc (exists): const argument.
(uninstall_one): Take pkg argument.
(install_one): Ditto.  Eliminate unneeded arguments which can be derived from
package info.
(do_install): Iterate over package array using a pointer.  Use
is_download_action to control when package should be downloaded.
* tar.cc (tar_open): const argument.
* tar.h: Refloect const argument.
13 files changed:
ChangeLog
choose.cc
desktop.cc
download.cc
filemanip.h
ini.cc
ini.h
inilex.l
iniparse.y
install.cc
nio-file.cc
tar.cc
tar.h
This page took 0.033583 seconds and 5 git commands to generate.