whitespace

This commit is contained in:
Kelvin Sherlock 2021-07-10 23:34:00 -04:00
parent 82a73ef79c
commit 5aa8990ac6
6 changed files with 14 additions and 14 deletions

View File

@ -11,7 +11,7 @@
/* /*
Todo -- Todo --
- when there is a value, can filter the list by only including header items and the selected value - when there is a value, can filter the list by only including header items and the selected value
- draw inactive menu items - draw inactive menu items
@ -21,7 +21,7 @@ Todo --
- 1. it's not moved someplace more appropriate when the size shrinks - 1. it's not moved someplace more appropriate when the size shrinks
- 2. it should display to the left or right in that case. - 2. it should display to the left or right in that case.
- need to know parent's frame. - need to know parent's frame.
- fuzzy search - minimum distance between letters? - fuzzy search - minimum distance between letters?
*/ */

View File

@ -182,7 +182,7 @@
NSFileManager *fm = [NSFileManager defaultManager]; NSFileManager *fm = [NSFileManager defaultManager];
NSError *error; NSError *error;
NSDictionary *attr = [fm attributesOfItemAtPath: path error: &error]; NSDictionary *attr = [fm attributesOfItemAtPath: path error: &error];
if (error) { if (error) {
NSLog(@"%@ : %@", path, error); NSLog(@"%@ : %@", path, error);

View File

@ -252,7 +252,7 @@ enum {
_items = tmp; _items = tmp;
[self refreshROMs: nil]; [self refreshROMs: nil];
[_arrayController setContent: _items]; [_arrayController setContent: _items];
//[_tableView reloadData]; //[_tableView reloadData];
NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
_session = [NSURLSession sessionWithConfiguration: config delegate: self delegateQueue: nil]; _session = [NSURLSession sessionWithConfiguration: config delegate: self delegateQueue: nil];
@ -486,7 +486,7 @@ enum {
NSUInteger tag = [sender tag]; NSUInteger tag = [sender tag];
[sender setState: NSControlStateValueOn]; [sender setState: NSControlStateValueOn];
for (NSButton *b in _filterButtons) { for (NSButton *b in _filterButtons) {
if (b != sender) [b setState: NSControlStateValueOff]; if (b != sender) [b setState: NSControlStateValueOff];
} }

View File

@ -205,7 +205,7 @@ static void AddSubview(NSView *parent, NSView *child) {
AddSubview(_mediaView, [_mediaController view]); AddSubview(_mediaView, [_mediaController view]);
AddSubview(_machineView, [_machineViewController view]); AddSubview(_machineView, [_machineViewController view]);
// can't be done until above views are set up. // can't be done until above views are set up.
[self defaultLoad: nil]; [self defaultLoad: nil];
@ -545,7 +545,7 @@ static NSString *ShellQuote(NSString *s) {
} }
// audio video. // audio video.
if (_mameAVI && [_mameAVIPath length]) { if (_mameAVI && [_mameAVIPath length]) {
[argv addObject: @"-aviwrite"]; [argv addObject: @"-aviwrite"];
[argv addObject: _mameAVIPath]; [argv addObject: _mameAVIPath];

View File

@ -199,7 +199,7 @@
/* /*
The parts we care about: The parts we care about:
<softwarelist name="" description=""> <softwarelist name="" description="">
<software name=""> <software name="">
<description>...</description> <description>...</description>

View File

@ -152,7 +152,7 @@ void sig_handler(int sig, siginfo_t *info, void *context) {
ioctl(pty_fd, TIOCOUTQ, &wlen); ioctl(pty_fd, TIOCOUTQ, &wlen);
ioctl(pty_fd, FIONREAD, &rlen); ioctl(pty_fd, FIONREAD, &rlen);
if (rlen > 9999) rlen = 9999; if (rlen > 9999) rlen = 9999;
if (wlen > 9999) wlen = 9999; if (wlen > 9999) wlen = 9999;
memcpy(buffer, "child pid: read queue: write queue: \n", 58); 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 { do {
buffer[n--] = '0' + (x %10); buffer[n--] = '0' + (x %10);
x /= 10; x /= 10;
} while(x); } while(x);
n = 35; n = 35;
x = rlen; x = rlen;
@ -272,9 +272,9 @@ int main(int argc, char **argv) {
tios.c_lflag = TTYDEF_LFLAG; tios.c_lflag = TTYDEF_LFLAG;
tios.c_iflag = TTYDEF_IFLAG; tios.c_iflag = TTYDEF_IFLAG;
tios.c_cflag = TTYDEF_CFLAG; tios.c_cflag = TTYDEF_CFLAG;
} }
tios.c_ispeed = tios.c_ospeed = B9600; tios.c_ispeed = tios.c_ospeed = B9600;
/* verify it's pty? */ /* verify it's pty? */
@ -380,7 +380,7 @@ int main(int argc, char **argv) {
} }
break; break;
} }
// flush discards data. // flush discards data.
//ok = tcflush(fd, TCIOFLUSH); //ok = tcflush(fd, TCIOFLUSH);
ok = tcdrain(fd); ok = tcdrain(fd);
} }