1 //
2 // "$Id: fldiff.cxx 407 2006-11-13 18:54:02Z mike $"
3 //
4 // A graphical diff program.
5 //
6 // Copyright 2005 by Michael Sweet.
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License v2 as published
10 // by the Free Software Foundation.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // Contents:
18 //
19 // main() - Show the differences between two files.
20 //
21
22 #include "DiffWindow.h"
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26
27
28 //
29 // 'main()' - Show the differences between two files.
30 //
31
32 int // O - Exit status
main(int argc,char * argv[])33 main(int argc, // I - Number of command-line args
34 char *argv[]) // I - Command-line arguments
35 {
36 DiffWindow *dw; // Diff window...
37
38
39 // Use POSIX locale for all commands...
40 putenv("LANG=C");
41
42 // Use the GTK+ scheme...
43 Fl::scheme("gtk+");
44
45 // Create the window...
46 if (argc > 1)
47 dw = new DiffWindow(argv[1], argv[2]);
48 else
49 dw = new DiffWindow(NULL, NULL);
50
51 dw->show(1, argv);
52
53 // Run until all windows are closed...
54 Fl::run();
55
56 // Return with no errors...
57 return (0);
58 }
59
60
61 //
62 // End of "$Id: fldiff.cxx 407 2006-11-13 18:54:02Z mike $".
63 //
64