]>
cygwin.com Git - cygwin-apps/setup.git/blob - ini.h
2 * Copyright (c) 2000, Red Hat, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by DJ Delorie <dj@cygnus.com>
20 void ini_init (io_stream
*, char const *);
21 #define YYSTYPE char *
27 /* When setup.ini is parsed, the information is stored according to
28 the declarations here. ini.cc (via inilex and iniparse)
29 initializes these structures. choose.cc sets the action and trust
30 fields. download.cc downloads any needed files for selected
31 packages (the chosen "install" field). install.cc installs
34 /* the classes here store installation info *shrug* */
36 /* lowest number must be most trusted, highest least trusted */
55 #define is_download_action(pkg) \
56 ((pkg)->action == ACTION_PREV || \
57 (pkg)->action == ACTION_CURR || \
58 (pkg)->action == ACTION_TEST || \
59 (pkg)->action == ACTION_REDO || \
60 (pkg)->action == ACTION_SRC_ONLY)
62 #define is_upgrade_action(pkg) \
63 (((pkg)->action >= ACTION_CURR && \
64 (pkg)->action <= ACTION_TEST) || \
65 (pkg)->action == ACTION_REDO)
67 #define is_uninstall_action(pkg) \
68 (is_upgrade_action (pkg) || \
69 (pkg)->action == ACTION_PREV || \
70 (pkg)->action == ACTION_UNINSTALL)
72 #define is_full_action(pkg) \
73 (((pkg)->action >= ACTION_SAME_PREV && (pkg)->action <= ACTION_SAME_TEST) \
74 || (pkg)->action == ACTION_SKIP)
76 #define SRCACTION_NO 0
77 #define SRCACTION_YES 1
This page took 0.037383 seconds and 6 git commands to generate.