aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 7803672d61a..58b1daecfe6 100644
--- a/src/process.h
+++ b/src/process.h
@@ -237,4 +237,17 @@ extern Lisp_Object network_interface_list (void);
237extern Lisp_Object network_interface_info (Lisp_Object); 237extern Lisp_Object network_interface_info (Lisp_Object);
238#endif 238#endif
239 239
240/* If program file NAME starts with /: for quoting a magic
241 name, remove that, preserving the multibyteness of NAME. */
242
243INLINE Lisp_Object
244remove_slash_colon (Lisp_Object name)
245{
246 return
247 ((SBYTES (name) > 2 && SREF (name, 0) == '/' && SREF (name, 1) == ':')
248 ? make_specified_string (SSDATA (name) + 2, SCHARS (name) - 2,
249 SBYTES (name) - 2, STRING_MULTIBYTE (name))
250 : name);
251}
252
240INLINE_HEADER_END 253INLINE_HEADER_END