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, component, max_len-1); |
71 |
+ |
} |
72 |
+ |
|
73 |
+ |
|
74 |
+ |
/* |
75 |
|
* Get/set finder type/creator for file specified by full path |
76 |
|
*/ |
77 |
|
|
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'}, |
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'}, |
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'}, |