1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-24 22:33:52 +03:00

Reformat and use @import

This commit is contained in:
Tae Won Ha 2016-10-22 17:25:43 +02:00
parent 4f9f9e906c
commit 43e96079bd
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
7 changed files with 15 additions and 11 deletions

View File

@ -3,7 +3,7 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
@interface NSObject (NeoVimServer)

View File

@ -3,7 +3,7 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
NS_ASSUME_NONNULL_BEGIN

View File

@ -3,7 +3,7 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
typedef NS_ENUM(NSUInteger, NeoVimServerMsgId) {

View File

@ -3,7 +3,8 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
#import "NeoVimMsgIds.h"

View File

@ -3,18 +3,20 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
#import <sys/event.h>
#import <uv.h>
#import "NeoVimServer.h"
#import "server_globals.h"
#import "Logging.h"
#import "CocoaCategories.h"
#import <sys/event.h>
#import <uv.h>
NeoVimServer *_neovim_server;
// Ensure no parent-less NeoVimServer processes are left when the main app crashes.
// Ensure that no parent-less NeoVimServer processes are left when the main app crashes.
// From http://mac-os-x.10953.n7.nabble.com/Ensure-NSTask-terminates-when-parent-application-does-td31477.html
static void observe_parent_termination(void *arg) {
pid_t ppid = getppid(); // get parent pid
@ -35,7 +37,7 @@ static void observe_parent_termination(void *arg) {
kevent(kq, &procEvent, 1, &procEvent, 1, 0);
}
DLOG("Exiting NeoVimServer: Parent terminated.");
ILOG("Exiting NeoVimServer: Parent terminated.");
exit(0);
}

View File

@ -3,7 +3,7 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
@class NeoVimServer;

View File

@ -3,7 +3,8 @@
* See LICENSE
*/
#import <Foundation/Foundation.h>
@import Foundation;
#import "Logging.h"
#import "server_globals.h"
#import "NeoVimServer.h"