TODO: Collapse darcs repositories 'ale' and 'ale-working' into a single repository.
[Ale.git] / ale.cc
blob8ddedcb349ff1c52912cf8086e7b3d9452e1b1be
1 // Copyright 2002, 2003, 2004, 2005, 2006 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * ale.cc: The main module of ale. This calls the input handler.
26 * Configuration
29 #include <config.h>
32 * Types
35 #include "ale_pos.h"
36 #include "ale_real.h"
39 * Version Information
42 char *package_name = PACKAGE_NAME;
44 char *short_version = VERSION;
46 char *version = PACKAGE_NAME " Version: " VERSION "\n"
47 #ifdef USE_MAGICK
48 "File handler: ImageMagick\n"
49 #else
50 "File handler: PPM\n"
51 #endif
52 "Color data: " ALE_REAL_PRECISION_STRING "\n"
53 "Coordinate data: " ALE_POS_PRECISION_STRING "\n"
54 #ifdef USE_FFTW
55 "DFT: FFTW3\n"
56 #else
57 "DFT: Built-in\n"
58 #endif
59 #if defined NDEBUG && !defined DEBUG
60 "Assertions: Disabled\n"
61 #elif defined DEBUG && !defined NDEBUG
62 "Assertions: Enabled\n"
63 #elif defined NDEBUG
64 "Assertions: Probably disabled\n"
65 #else
66 "Assertions: Probably enabled\n"
67 #endif
68 #if OPTIMIZATIONS == 1
69 "Optimizations: Enabled\n"
70 #else
71 "Optimizations: Disabled\n"
72 #endif
76 * User interface includes
79 #include "ui/ui.h"
82 * main() calls the input handler.
85 int main(int argc, const char *argv[]){
87 /*
88 * Call UI routine to handle options and other interface input.
89 * Returning from this function indicates program success.
92 ui::handle_input(argc, argv, package_name, short_version, version);
94 return 0;