… | |
… | |
133 | |
133 | |
134 | // temporarily replace the process environment |
134 | // temporarily replace the process environment |
135 | extern char **environ; |
135 | extern char **environ; |
136 | extern char **rxvt_environ; // the original environ pointer |
136 | extern char **rxvt_environ; // the original environ pointer |
137 | |
137 | |
|
|
138 | static inline void |
138 | static inline void set_environ (stringvec *envv) |
139 | set_environ (stringvec *envv) |
139 | { |
140 | { |
140 | #if ENABLE_PERL |
141 | #if ENABLE_PERL |
141 | assert (envv); |
142 | assert (envv); |
142 | #else |
143 | #else |
143 | if (envv) |
144 | if (envv) |
144 | #endif |
145 | #endif |
145 | environ = (char **)envv->begin (); |
146 | environ = (char **)envv->begin (); |
146 | } |
147 | } |
147 | |
148 | |
148 | static inline void set_environ (char **envv) |
149 | static inline void |
|
|
150 | set_environ (char **envv) |
149 | { |
151 | { |
150 | #if ENABLE_PERL |
152 | #if ENABLE_PERL |
151 | assert (envv); |
153 | assert (envv); |
152 | #else |
154 | #else |
153 | if (envv) |
155 | if (envv) |