File: fldiff.cxx

package info (click to toggle)
fldiff 1.1%2B0-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 456 kB
  • ctags: 242
  • sloc: cpp: 2,977; makefile: 134; sh: 27
file content (63 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// "$Id: fldiff.cxx 407 2006-11-13 18:54:02Z mike $"
//
// A graphical diff program.
//
// Copyright 2005 by Michael Sweet.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License v2 as published
// by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// Contents:
//
//   main() - Show the differences between two files.
//

#include "DiffWindow.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


//
// 'main()' - Show the differences between two files.
//

int					// O - Exit status
main(int  argc,				// I - Number of command-line args
     char *argv[])			// I - Command-line arguments
{
  DiffWindow	*dw;			// Diff window...


  // Use POSIX locale for all commands...
  putenv("LANG=C");

  // Use the GTK+ scheme...
  Fl::scheme("gtk+");

  // Create the window...
  if (argc > 1)
    dw = new DiffWindow(argv[1], argv[2]);
  else
    dw = new DiffWindow(NULL, NULL);

  dw->show(1, argv);

  // Run until all windows are closed...
  Fl::run();

  // Return with no errors...
  return (0);
}


//
// End of "$Id: fldiff.cxx 407 2006-11-13 18:54:02Z mike $".
//