diff options
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 13 |
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); | |||
| 237 | extern Lisp_Object network_interface_info (Lisp_Object); | 237 | extern 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 | |||
| 243 | INLINE Lisp_Object | ||
| 244 | remove_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 | |||
| 240 | INLINE_HEADER_END | 253 | INLINE_HEADER_END |