pike.git / lib / modules / GDK.pmod

version» Context lines:

pike.git/lib/modules/GDK.pmod:30:    object `[](string what)    {    if(atoms[what])    return atoms[what];    return atoms[what] = fake_atom( what );    }   }();      mixed `[](string what)   { -  if(what == "_module_value") return ([])[0]; +  if(what == "_module_value") return UNDEFINED;    if(what == "Atom") return Atom;    if(!zero_type(INDEX("Gdk"+what)))    return INDEX("Gdk"+what);    if(!zero_type(INDEX("GDK_"+what)))    return INDEX("GDK_"+what);    if(!zero_type(INDEX("GDK_"+upper_case(GTK->unsillycaps(what)))))    return INDEX("GDK_"+upper_case(GTK->unsillycaps(what))); -  return ([])[0]; +  return UNDEFINED;   // return GDKSupport[what];   }      #else /* !constant(GTK) */      static void create()   {    /* Destroy ourselves. */    destruct();   }      #endif /* constant(GTK) */