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.10 by root, Thu Sep 2 07:44:40 2004 UTC vs.
Revision 1.11 by root, Sun Jan 22 00:36:59 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 stringvec *envv = new stringvec;
36
37 for (char **var = environ; *var; var++)
38 envv->push_back (strdup (*var));
39
40 envv->push_back (0);
41
32 rxvt_term *t = new rxvt_term; 42 rxvt_term *t = new rxvt_term;
33 43
34 if (!t->init (argc, argv)) 44 if (!t->init (argc, argv, envv))
35 return EXIT_FAILURE; 45 return EXIT_FAILURE;
36 46
37 io_manager::loop (); 47 io_manager::loop ();
38 48
39 return EXIT_SUCCESS; 49 return EXIT_SUCCESS;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines