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