コード例 #1
0
ファイル: TextEditor.cpp プロジェクト: josephzizys/CM
void TextBuffer::matchParens()
{
  //std::cout << "matchParens()\n";
  int b=point();
  backwardExpr(); // find start of expr
  int a=point();
  if (a<b)
    startMatching(a,b);
}
コード例 #2
0
ファイル: IOCatalogue.cpp プロジェクト: Prajna/xnu
/* This function is called after a module has been loaded.
 * Is invoked from user client call, ultimately from IOKitLib's
 * IOCatalogueModuleLoaded(). Sent from kextd.
 */
void IOCatalogue::moduleHasLoaded(OSString * moduleName)
{
    OSDictionary * dict;

    dict = OSDictionary::withCapacity(2);
    dict->setObject(gIOModuleIdentifierKey, moduleName);
    startMatching(dict);
    dict->release();

    (void) OSKext::considerRebuildOfPrelinkedKernel(moduleName);
}