winsup/cinstall ChangeLog choose.cc desktop.cc ...
cgf@sourceware.cygnus.com
cgf@sourceware.cygnus.com
Wed Jun 13 09:11:00 GMT 2001
CVSROOT: /cvs/uberbaum
Module name: winsup
Changes by: cgf@sources.redhat.com 2001-06-13 09:11:01
Modified files:
cinstall : 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
Log message:
* 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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/ChangeLog.diff?cvsroot=uberbaum&r1=2.63&r2=2.64
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/choose.cc.diff?cvsroot=uberbaum&r1=2.23&r2=2.24
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/desktop.cc.diff?cvsroot=uberbaum&r1=2.9&r2=2.10
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/download.cc.diff?cvsroot=uberbaum&r1=2.11&r2=2.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/filemanip.h.diff?cvsroot=uberbaum&r1=1.2&r2=1.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/ini.cc.diff?cvsroot=uberbaum&r1=2.8&r2=2.9
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/ini.h.diff?cvsroot=uberbaum&r1=2.7&r2=2.8
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/inilex.l.diff?cvsroot=uberbaum&r1=2.2&r2=2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/iniparse.y.diff?cvsroot=uberbaum&r1=2.6&r2=2.7
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/install.cc.diff?cvsroot=uberbaum&r1=2.16&r2=2.17
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/nio-file.cc.diff?cvsroot=uberbaum&r1=2.1&r2=2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/tar.cc.diff?cvsroot=uberbaum&r1=2.4&r2=2.5
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cinstall/tar.h.diff?cvsroot=uberbaum&r1=2.0&r2=2.1
More information about the Cygwin-cvs
mailing list