ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/extfs_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/extfs_unix.cpp (file contents):
Revision 1.1 by cebix, 1999-10-19T17:41:34Z vs.
Revision 1.3 by cebix, 1999-10-21T22:40:01Z

# Line 57 | Line 57 | void extfs_exit(void)
57  
58  
59   /*
60 + *  Add component to path name
61 + */
62 +
63 + void add_path_component(char *path, const char *component, int max_len)
64 + {
65 +        int l = strlen(path);
66 +        if (l < max_len-1 && path[l-1] != '/') {
67 +                path[l] = '/';
68 +                path[l+1] = 0;
69 +        }
70 +        strncat(path, s, max_len-1);
71 + }
72 +
73 +
74 + /*
75   *  Get/set finder type/creator for file specified by full path
76   */
77  
# Line 67 | Line 82 | struct ext2type {
82   };
83  
84   static const ext2type e2t_translation[] = {
85 <        {".z", 'ZIVM', 'LZIV'},
85 >        {".Z", 'ZIVM', 'LZIV'},
86          {".gz", 'Gzip', 'Gzip'},
87          {".hqx", 'TEXT', 'SITx'},
88          {".pdf", 'PDF ', 'CARO'},
# Line 102 | Line 117 | static const ext2type e2t_translation[]
117          {".txt", 'TEXT', 'ttxt'},
118          {".rtf", 'TEXT', 'MSWD'},
119          {".c", 'TEXT', 'R*ch'},
120 +        {".C", 'TEXT', 'R*ch'},
121          {".cc", 'TEXT', 'R*ch'},
122          {".cpp", 'TEXT', 'R*ch'},
123          {".cxx", 'TEXT', 'R*ch'},
# Line 110 | Line 126 | static const ext2type e2t_translation[]
126          {".hpp", 'TEXT', 'R*ch'},
127          {".hxx", 'TEXT', 'R*ch'},
128          {".s", 'TEXT', 'R*ch'},
129 +        {".S", 'TEXT', 'R*ch'},
130          {".i", 'TEXT', 'R*ch'},
131          {".mpg", 'MPEG', 'TVOD'},
132          {".mpeg", 'MPEG', 'TVOD'},

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines