From 5aa8990ac65aa468e22fc4b85cd93842941e916e Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 10 Jul 2021 23:34:00 -0400 Subject: [PATCH] whitespace --- Ample/AutocompleteControl.m | 4 ++-- Ample/DiskImagesWindowController.m | 2 +- Ample/DownloadWindowController.m | 4 ++-- Ample/LaunchWindowController.m | 4 ++-- Ample/SoftwareList.m | 2 +- pty_shell/pty_shell.c | 12 ++++++------ 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Ample/AutocompleteControl.m b/Ample/AutocompleteControl.m index 301a5e2..5bea0a7 100644 --- a/Ample/AutocompleteControl.m +++ b/Ample/AutocompleteControl.m @@ -11,7 +11,7 @@ /* - + Todo -- - when there is a value, can filter the list by only including header items and the selected value - draw inactive menu items @@ -21,7 +21,7 @@ Todo -- - 1. it's not moved someplace more appropriate when the size shrinks - 2. it should display to the left or right in that case. - need to know parent's frame. - + - fuzzy search - minimum distance between letters? */ diff --git a/Ample/DiskImagesWindowController.m b/Ample/DiskImagesWindowController.m index 97b3cf7..80402d8 100644 --- a/Ample/DiskImagesWindowController.m +++ b/Ample/DiskImagesWindowController.m @@ -182,7 +182,7 @@ NSFileManager *fm = [NSFileManager defaultManager]; NSError *error; - + NSDictionary *attr = [fm attributesOfItemAtPath: path error: &error]; if (error) { NSLog(@"%@ : %@", path, error); diff --git a/Ample/DownloadWindowController.m b/Ample/DownloadWindowController.m index 5016c08..06b0b61 100644 --- a/Ample/DownloadWindowController.m +++ b/Ample/DownloadWindowController.m @@ -252,7 +252,7 @@ enum { _items = tmp; [self refreshROMs: nil]; [_arrayController setContent: _items]; - + //[_tableView reloadData]; NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; _session = [NSURLSession sessionWithConfiguration: config delegate: self delegateQueue: nil]; @@ -486,7 +486,7 @@ enum { NSUInteger tag = [sender tag]; [sender setState: NSControlStateValueOn]; - + for (NSButton *b in _filterButtons) { if (b != sender) [b setState: NSControlStateValueOff]; } diff --git a/Ample/LaunchWindowController.m b/Ample/LaunchWindowController.m index 8d50354..37e89a2 100644 --- a/Ample/LaunchWindowController.m +++ b/Ample/LaunchWindowController.m @@ -205,7 +205,7 @@ static void AddSubview(NSView *parent, NSView *child) { AddSubview(_mediaView, [_mediaController view]); AddSubview(_machineView, [_machineViewController view]); - + // can't be done until above views are set up. [self defaultLoad: nil]; @@ -545,7 +545,7 @@ static NSString *ShellQuote(NSString *s) { } // audio video. - + if (_mameAVI && [_mameAVIPath length]) { [argv addObject: @"-aviwrite"]; [argv addObject: _mameAVIPath]; diff --git a/Ample/SoftwareList.m b/Ample/SoftwareList.m index f84b53d..c4be6a4 100644 --- a/Ample/SoftwareList.m +++ b/Ample/SoftwareList.m @@ -199,7 +199,7 @@ /* The parts we care about: - + ... diff --git a/pty_shell/pty_shell.c b/pty_shell/pty_shell.c index acaa849..b4f52b0 100644 --- a/pty_shell/pty_shell.c +++ b/pty_shell/pty_shell.c @@ -152,7 +152,7 @@ void sig_handler(int sig, siginfo_t *info, void *context) { ioctl(pty_fd, TIOCOUTQ, &wlen); ioctl(pty_fd, FIONREAD, &rlen); - if (rlen > 9999) rlen = 9999; + if (rlen > 9999) rlen = 9999; if (wlen > 9999) wlen = 9999; memcpy(buffer, "child pid: read queue: write queue: \n", 58); @@ -163,7 +163,7 @@ void sig_handler(int sig, siginfo_t *info, void *context) { do { buffer[n--] = '0' + (x %10); x /= 10; - } while(x); + } while(x); n = 35; x = rlen; @@ -272,9 +272,9 @@ int main(int argc, char **argv) { tios.c_lflag = TTYDEF_LFLAG; tios.c_iflag = TTYDEF_IFLAG; tios.c_cflag = TTYDEF_CFLAG; - } - tios.c_ispeed = tios.c_ospeed = B9600; - + } + tios.c_ispeed = tios.c_ospeed = B9600; + /* verify it's pty? */ @@ -380,7 +380,7 @@ int main(int argc, char **argv) { } break; } - // flush discards data. + // flush discards data. //ok = tcflush(fd, TCIOFLUSH); ok = tcdrain(fd); }