diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 32 |
1 files changed, 8 insertions, 24 deletions
| @@ -58,26 +58,24 @@ static Lisp_Object Vbuild_files; | |||
| 58 | extern Lisp_Object Voverriding_local_map; | 58 | extern Lisp_Object Voverriding_local_map; |
| 59 | 59 | ||
| 60 | /* For VMS versions with limited file name syntax, | 60 | /* For VMS versions with limited file name syntax, |
| 61 | convert the name to something VMS will allow. */ | 61 | convert the name to something VMS will allow. */ |
| 62 | static void | 62 | static void |
| 63 | munge_doc_file_name (name) | 63 | munge_doc_file_name (name) |
| 64 | char *name; | 64 | char *name; |
| 65 | { | 65 | { |
| 66 | #ifdef VMS | 66 | #ifdef VMS |
| 67 | #ifndef VMS4_4 | 67 | #ifndef NO_HYPHENS_IN_FILENAMES |
| 68 | /* For VMS versions with limited file name syntax, | 68 | extern char * sys_translate_unix (char *ufile); |
| 69 | convert the name to something VMS will allow. */ | 69 | strcpy (name, sys_translate_unix (name)); |
| 70 | p = name; | 70 | #else /* NO_HYPHENS_IN_FILENAMES */ |
| 71 | char *p = name; | ||
| 71 | while (*p) | 72 | while (*p) |
| 72 | { | 73 | { |
| 73 | if (*p == '-') | 74 | if (*p == '-') |
| 74 | *p = '_'; | 75 | *p = '_'; |
| 75 | p++; | 76 | p++; |
| 76 | } | 77 | } |
| 77 | #endif /* not VMS4_4 */ | 78 | #endif /* NO_HYPHENS_IN_FILENAMES */ |
| 78 | #ifdef VMS4_4 | ||
| 79 | strcpy (name, sys_translate_unix (name)); | ||
| 80 | #endif /* VMS4_4 */ | ||
| 81 | #endif /* VMS */ | 79 | #endif /* VMS */ |
| 82 | } | 80 | } |
| 83 | 81 | ||
| @@ -607,21 +605,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 607 | strcpy (name, SDATA (Vdoc_directory)); | 605 | strcpy (name, SDATA (Vdoc_directory)); |
| 608 | } | 606 | } |
| 609 | strcat (name, SDATA (filename)); /*** Add this line ***/ | 607 | strcat (name, SDATA (filename)); /*** Add this line ***/ |
| 610 | #ifdef VMS | 608 | munge_doc_file_name (name); |
| 611 | #ifndef VMS4_4 | ||
| 612 | /* For VMS versions with limited file name syntax, | ||
| 613 | convert the name to something VMS will allow. */ | ||
| 614 | p = name; | ||
| 615 | while (*p) | ||
| 616 | { | ||
| 617 | if (*p == '-') | ||
| 618 | *p = '_'; | ||
| 619 | p++; | ||
| 620 | } | ||
| 621 | #else /* VMS4_4 */ | ||
| 622 | strcpy (name, sys_translate_unix (name)); | ||
| 623 | #endif /* VMS4_4 */ | ||
| 624 | #endif /* VMS */ | ||
| 625 | 609 | ||
| 626 | /* Vbuild_files is nil when temacs is run, and non-nil after that. */ | 610 | /* Vbuild_files is nil when temacs is run, and non-nil after that. */ |
| 627 | if (NILP (Vbuild_files)) | 611 | if (NILP (Vbuild_files)) |