ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.C
(Generate patch)

Comparing rxvt-unicode/src/rxvt.C (file contents):
Revision 1.22 by sf-exg, Tue Dec 6 11:29:52 2011 UTC vs.
Revision 1.23 by root, Sat Dec 17 23:17:33 2011 UTC

25 25
26#include <cstdlib> 26#include <cstdlib>
27#include <cstring> 27#include <cstring>
28 28
29int 29int
30main (int argc, const char *const *argv) 30main (int argc, char *argv[])
31try 31try
32 { 32 {
33 ptytty::init (); 33 ptytty::init ();
34 rxvt_init (); 34 rxvt_init ();
35 35
36 rxvt_term *t = new rxvt_term; 36 rxvt_term *t = new rxvt_term;
37
38#if ENABLE_PERL
39 stringvec *args = new stringvec;
40 stringvec *envv = new stringvec;
41
42 for (int i = 0; i < argc; i++)
43 args->push_back (strdup (argv [i]));
44
45 for (char **var = environ; *var; var++)
46 envv->push_back (strdup (*var));
47
48 t->init (args, envv);
49#else
50 t->init (argc, argv); 37 t->init (argc, argv, environ);
51#endif
52
53 ev_run (); 38 ev_run ();
54 39
55 return EXIT_SUCCESS; 40 return EXIT_SUCCESS;
56 } 41 }
57catch (const class rxvt_failure_exception &e) 42catch (const class rxvt_failure_exception &e)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines