50 |
#include "manconfig.h" |
#include "manconfig.h" |
51 |
#include "lib/error.h" |
#include "lib/error.h" |
52 |
#include "manp.h" |
#include "manp.h" |
53 |
|
#include "convert_name.h" |
54 |
|
|
55 |
static __inline__ void gripe_converting_name (const char *name) |
static __inline__ void gripe_converting_name (const char *name) |
56 |
{ |
{ |
78 |
#endif /* COMP_SRC */ |
#endif /* COMP_SRC */ |
79 |
|
|
80 |
#ifdef COMP_CAT |
#ifdef COMP_CAT |
81 |
|
/* TODO: BSD layout requires .0. */ |
82 |
to_name = strappend (NULL, name, "." COMPRESS_EXT, NULL); |
to_name = strappend (NULL, name, "." COMPRESS_EXT, NULL); |
83 |
#else /* !COMP_CAT */ |
#else /* !COMP_CAT */ |
84 |
to_name = xstrdup (name); |
to_name = xstrdup (name); |
93 |
gripe_converting_name (name); |
gripe_converting_name (name); |
94 |
|
|
95 |
*t1 = '/'; |
*t1 = '/'; |
96 |
|
/* TODO: This is broken beyond repair. Rewrite this whole |
97 |
|
* function, after understanding what on earth it's trying |
98 |
|
* to achieve! |
99 |
|
*/ |
100 |
*(t2 + 1) = 'c'; |
*(t2 + 1) = 'c'; |
101 |
*(t2 + 3) = 't'; |
*(t2 + 3) = 't'; |
102 |
} else |
} else |
103 |
gripe_converting_name (name); |
gripe_converting_name (name); |
104 |
|
|
105 |
if (0) /* (debug) */ |
if (debug) |
106 |
fprintf (stderr, "to_name in convert_name () is %s\n", to_name); |
fprintf (stderr, "to_name in convert_name () is %s\n", to_name); |
107 |
|
|
108 |
#ifdef COMP_SRC |
#ifdef COMP_SRC |