]> cygwin.com Git - cygwin-apps/setup.git/blame - ini.h
* ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
[cygwin-apps/setup.git] / ini.h
CommitLineData
23c9e63c 1/*
eb20d728 2 * Copyright (c) 2000,2007 Red Hat, Inc.
23c9e63c
DD
3 *
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.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by DJ Delorie <dj@cygnus.com>
13 *
14 */
15
c93bc6d0
MB
16#ifndef SETUP_INI_H
17#define SETUP_INI_H
8f53e82a 18
341988b9 19class io_stream;
fd93eff9 20#include <string>
b92028a4 21class IniState;
076654e7 22class IniDBBuilder;
aa1e3b4d
RC
23class IniParseFeedback;
24void ini_init (io_stream *, IniDBBuilder *, IniParseFeedback &);
d0fa1c4e
RC
25#define YYSTYPE char *
26
23c9e63c
DD
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
32 selected packages. */
33
c46a33a9
CF
34typedef enum
35{
36 EXCLUDE_NONE = 0,
37 EXCLUDE_BY_SETUP,
38 EXCLUDE_NOT_FOUND
4ea94dbb 39} excludes;
c46a33a9 40
e49fef4d 41extern bool is_64bit;
f57981db
CF
42#define SETUP_INI_FILENAME (is_64bit ? "x86_64/setup.ini" : "x86/setup.ini")
43#define SETUP_BZ2_FILENAME (is_64bit ? "x86_64/setup.bz2" : "x86/setup.bz2")
5072c0bb 44
eb20d728
BD
45/* The following three vars are used to facilitate error handling between the
46 parser/lexer and its callers, namely ini.cc:do_remote_ini() and
47 IniParseFindVisitor::visitFile(). */
48
49extern std::string current_ini_name; /* current filename/URL being parsed */
dbfe3c19 50extern std::string current_ini_sig_name; /* current filename/URL for sig file */
eb20d728
BD
51extern std::string yyerror_messages; /* textual parse error messages */
52extern int yyerror_count; /* number of parse errors */
8f53e82a 53
c93bc6d0 54#endif /* SETUP_INI_H */
This page took 0.140824 seconds and 5 git commands to generate.