/[man-db]/man-db/src/convert_name.c
ViewVC logotype

Diff of /man-db/src/convert_name.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by cjwatson, Tue Apr 22 18:54:15 2003 UTC revision 1.8 by cjwatson, Thu May 1 18:14:11 2003 UTC
# Line 50  Line 50 
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  {  {
# Line 77  char *convert_name (const char *name, co Line 78  char *convert_name (const char *name, co
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);
# Line 91  char *convert_name (const char *name, co Line 93  char *convert_name (const char *name, co
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

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26