Changeset 5731:6410f5b8df75 in roaraudio for plugins
- Timestamp:
- 11/07/12 01:33:23 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/universal/protocol-http.c
r5730 r5731 118 118 point++; 119 119 120 #define __type1(mime,ext) \ 121 } else if ( !strcmp(point, (ext)) ) { \ 122 return (mime); 123 #define __type2(mime,ext0,ext1) \ 124 } else if ( !strcmp(point, (ext0)) || !strcmp(point, (ext1)) ) { \ 125 return (mime); 126 127 #ifdef __FIX_VIM_SYNTAX_HIGHLIGHTING__ 128 } 129 #endif 130 120 131 if ( !strcmp(point, "txt") || !strcmp(point, "text") ) { 121 132 return "text/plain"; 122 } else if ( !strcmp(point, "htm") || !strcmp(point, "html") ) { 123 return "text/html"; 124 } else if ( !strcmp(point, "css") ) { 125 return "text/css"; 126 } else if ( !strcmp(point, "png") ) { 127 return "image/png"; 128 } else if ( !strcmp(point, "jpg") || !strcmp(point, "jpeg") ) { 129 return "image/jpeg"; 133 __type2("text/html", "html", "htm") 134 __type1("text/css", "css") 135 __type1("image/png", "png") 136 __type2("image/jpeg", "jpeg", "jpg") 130 137 } 131 138
Note: See TracChangeset
for help on using the changeset viewer.