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.9 by root, Sun Aug 15 02:17:32 2004 UTC vs.
Revision 1.12 by root, Sun Jan 22 11:57:06 2006 UTC

21 *----------------------------------------------------------------------*/ 21 *----------------------------------------------------------------------*/
22 22
23#include "../config.h" 23#include "../config.h"
24#include "rxvt.h" 24#include "rxvt.h"
25 25
26#include <cstdlib>
27#include <cstring>
28
26int 29int
27main (int argc, const char *const *argv) 30main (int argc, const char *const *argv)
28try 31try
29 { 32 {
30 rxvt_init (); 33 rxvt_init ();
31 34
35#if ENABLE_PERL
36 stringvec *envv = new stringvec;
37
38 for (char **var = environ; *var; var++)
39 envv->push_back (strdup (*var));
40
41 envv->push_back (0);
42#else
43 stringvec *envv = 0;
44#endif
45
32 rxvt_term *t = new rxvt_term; 46 rxvt_term *t = new rxvt_term;
33 47
34 if (!t->init (argc, argv)) 48 if (!t->init (argc, argv, envv))
35 return EXIT_FAILURE; 49 return EXIT_FAILURE;
36 50
37 iom.loop (); 51 io_manager::loop ();
38 52
39 return EXIT_SUCCESS; 53 return EXIT_SUCCESS;
40 } 54 }
41catch (const class rxvt_failure_exception &e) 55catch (const class rxvt_failure_exception &e)
42 { 56 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines