1 | /*----------------------------------------------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: rxvt.C |
2 | * File: rxvt.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
6 | * Copyright (c) 2003-2006 Marc Lehmann <schmorp@schmorp.de> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 2 of the License, or |
10 | * the Free Software Foundation; either version 2 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
43 | args->push_back (strdup (argv [i])); |
43 | args->push_back (strdup (argv [i])); |
44 | |
44 | |
45 | for (char **var = environ; *var; var++) |
45 | for (char **var = environ; *var; var++) |
46 | envv->push_back (strdup (*var)); |
46 | envv->push_back (strdup (*var)); |
47 | |
47 | |
48 | envv->push_back (0); |
|
|
49 | |
|
|
50 | t->init (args, envv); |
48 | t->init (args, envv); |
51 | #else |
49 | #else |
52 | t->init (argc, argv, 0); |
50 | t->init (argc, argv); |
53 | #endif |
51 | #endif |
54 | |
52 | |
55 | ev_run (); |
53 | ev_run (); |
56 | |
54 | |
57 | return EXIT_SUCCESS; |
55 | return EXIT_SUCCESS; |