use to "feature" in DEBUGFILES
The code to lookup a value in DEBUGFILES usually operates on a file name, but there are few non-file uses. The latter wouldn't work on VMS because of the way it was manipulating the name: first stripping away path, suffix, and version, then adding hardcoded ".c" suffix on. I thought we already had a routine to get the base part of a name from a full path, but if so, I haven't been able to find it. This adds new nh_basename() to do that, with the option of either keeping or discarding the suffix or type portion. The VMS usage that prompted this hasn't actually been tested.
This commit is contained in:
@@ -335,7 +335,7 @@ typedef int32_t off_t;
|
||||
extern void vms_exit(int);
|
||||
extern int vms_open(const char *, int, unsigned);
|
||||
extern FILE *vms_fopen(const char *, const char *);
|
||||
char *vms_basename(const char *); /* vmsfiles.c */
|
||||
char *vms_basename(const char *, boolean); /* vmsfiles.c */
|
||||
|
||||
#endif /* VMSCONF_H */
|
||||
#endif /* VMS */
|
||||
|
||||
Reference in New Issue
Block a user