diff options
| author | Daniel Colascione | 2012-11-20 11:28:53 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-11-20 11:28:53 -0800 |
| commit | a16ac13f6299d2610284a6b3fb4231c3279d2e9c (patch) | |
| tree | f46d36b8a4375e83bf149eb5a80e7c8f428c7bc7 /src/cygw32.c | |
| parent | 7cf95797aff43cb59fec03905a8937d41e68ada1 (diff) | |
| download | emacs-a16ac13f6299d2610284a6b3fb4231c3279d2e9c.tar.gz emacs-a16ac13f6299d2610284a6b3fb4231c3279d2e9c.zip | |
Backport: Rename cygwin_convert_path* to cygwin_convert_file_name*
Diffstat (limited to 'src/cygw32.c')
| -rw-r--r-- | src/cygw32.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/cygw32.c b/src/cygw32.c index 54f2076a891..d9777d5e22e 100644 --- a/src/cygw32.c +++ b/src/cygw32.c | |||
| @@ -106,22 +106,24 @@ conv_filename_from_w32_unicode (const wchar_t* in, int absolute_p) | |||
| 106 | return unbind_to (count, DECODE_FILE (converted)); | 106 | return unbind_to (count, DECODE_FILE (converted)); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | DEFUN ("cygwin-convert-path-to-windows", | 109 | DEFUN ("cygwin-convert-file-name-to-windows", |
| 110 | Fcygwin_convert_path_to_windows, Scygwin_convert_path_to_windows, | 110 | Fcygwin_convert_file_name_to_windows, |
| 111 | Scygwin_convert_file_name_to_windows, | ||
| 111 | 1, 2, 0, | 112 | 1, 2, 0, |
| 112 | doc: /* Convert PATH to a Windows path. If ABSOLUTE-P if | 113 | doc: /* Convert PATH to a Windows path. If ABSOLUTE-P is |
| 113 | non-nil, return an absolute path.*/) | 114 | non-nil, return an absolute path.*/) |
| 114 | (Lisp_Object path, Lisp_Object absolute_p) | 115 | (Lisp_Object path, Lisp_Object absolute_p) |
| 115 | { | 116 | { |
| 116 | return from_unicode ( | 117 | return from_unicode ( |
| 117 | conv_filename_to_w32_unicode (path, EQ (absolute_p, Qnil) ? 0 : 1)); | 118 | conv_filename_to_w32_unicode (path, EQ (absolute_p, Qnil) ? 0 : 1)); |
| 118 | } | 119 | } |
| 119 | 120 | ||
| 120 | DEFUN ("cygwin-convert-path-from-windows", | 121 | DEFUN ("cygwin-convert-file-name-from-windows", |
| 121 | Fcygwin_convert_path_from_windows, Scygwin_convert_path_from_windows, | 122 | Fcygwin_convert_file_name_from_windows, |
| 123 | Scygwin_convert_file_name_from_windows, | ||
| 122 | 1, 2, 0, | 124 | 1, 2, 0, |
| 123 | doc: /* Convert a Windows path to a Cygwin path. If ABSOLUTE-P | 125 | doc: /* Convert a Windows path to a Cygwin path. If ABSOLUTE-P |
| 124 | if non-nil, return an absolute path.*/) | 126 | is non-nil, return an absolute path.*/) |
| 125 | (Lisp_Object path, Lisp_Object absolute_p) | 127 | (Lisp_Object path, Lisp_Object absolute_p) |
| 126 | { | 128 | { |
| 127 | return conv_filename_from_w32_unicode (to_unicode (path, &path), | 129 | return conv_filename_from_w32_unicode (to_unicode (path, &path), |
| @@ -131,6 +133,6 @@ DEFUN ("cygwin-convert-path-from-windows", | |||
| 131 | void | 133 | void |
| 132 | syms_of_cygw32 (void) | 134 | syms_of_cygw32 (void) |
| 133 | { | 135 | { |
| 134 | defsubr (&Scygwin_convert_path_from_windows); | 136 | defsubr (&Scygwin_convert_file_name_from_windows); |
| 135 | defsubr (&Scygwin_convert_path_to_windows); | 137 | defsubr (&Scygwin_convert_file_name_to_windows); |
| 136 | } | 138 | } |