pike.git / lib / modules / Search.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/module.pmod:1:   // Roxen Whitefish main pike module   //   // Copyright © 2000, Roxen IS.      #include "types.h"      private mapping filters=([]);      void create()   { -  foreach(values(Search.Filter.Base), program filter) +  foreach(values(Search.Filter), program filter)    {    Search.Filter.Base tmp=filter();    foreach(tmp->contenttypes || ({ }), string mime)    filters[mime]=tmp;    }   }      Search.Filter.Base get_filter(string mime_type)   {    if(!filters[mime_type]) return 0;