Changeset 5731:6410f5b8df75 in roaraudio for plugins


Ignore:
Timestamp:
11/07/12 01:33:23 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some reformating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/protocol-http.c

    r5730 r5731  
    118118 point++; 
    119119 
     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 
    120131 if ( !strcmp(point, "txt") || !strcmp(point, "text") ) { 
    121132  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") 
    130137 } 
    131138 
Note: See TracChangeset for help on using the changeset viewer.