mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Cleanup (formatting)
This commit is contained in:
@@ -1,18 +1,4 @@
|
|||||||
/*
|
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||||
* Copyright 2000-2017 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <CoreServices/CoreServices.h>
|
#include <CoreServices/CoreServices.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@@ -63,11 +49,9 @@ static void callback(ConstFSEventStreamRef streamRef,
|
|||||||
FSEventStreamEventFlags flags = eventFlags[i] & 0xFF;
|
FSEventStreamEventFlags flags = eventFlags[i] & 0xFF;
|
||||||
if ((flags & kFSEventStreamEventFlagMustScanSubDirs) != 0) {
|
if ((flags & kFSEventStreamEventFlagMustScanSubDirs) != 0) {
|
||||||
reportEvent("RECDIRTY", paths[i]);
|
reportEvent("RECDIRTY", paths[i]);
|
||||||
}
|
} else if (flags != kFSEventStreamEventFlagNone) {
|
||||||
else if (flags != kFSEventStreamEventFlagNone) {
|
|
||||||
reportEvent("RESET", NULL);
|
reportEvent("RESET", NULL);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
reportEvent("DIRTY", paths[i]);
|
reportEvent("DIRTY", paths[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -105,8 +89,7 @@ static void PrintMountedFileSystems(CFArrayRef roots) {
|
|||||||
if (rootLen == mountLen || root[mountLen] == '/' || strcmp(mount, "/") == 0) {
|
if (rootLen == mountLen || root[mountLen] == '/' || strcmp(mount, "/") == 0) {
|
||||||
CFArrayAppendValue(mounts, root);
|
CFArrayAppendValue(mounts, root);
|
||||||
}
|
}
|
||||||
}
|
} else if (strncmp(root, mount, rootLen) == 0) {
|
||||||
else if (strncmp(root, mount, rootLen) == 0) {
|
|
||||||
// root over mount point
|
// root over mount point
|
||||||
if (strcmp(root, "/") == 0 || mount[rootLen] == '/') {
|
if (strcmp(root, "/") == 0 || mount[rootLen] == '/') {
|
||||||
CFArrayAppendValue(mounts, mount);
|
CFArrayAppendValue(mounts, mount);
|
||||||
|
|||||||
Reference in New Issue
Block a user