Changeset 160 for trunk/appswitch/appswitch/main.c
- Timestamp:
- 05/16/04 06:20:42 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/appswitch/appswitch/main.c
r156 r160 24 24 const char *APP_NAME; 25 25 26 #define VERSION "1.0 "26 #define VERSION "1.0.1" 27 27 28 28 struct { … … 308 308 int termwidth = 80; 309 309 struct winsize ws; 310 char *banner = " PSN PID TYPE CREA NAME";311 // 12345678 .0 12345 1234 1234 12345678901234567890310 char *banner = " PSN PID TYPE CREA NAME "; 311 // 123456789.0 12345 1234 1234 1234567890123456789 312 312 if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) != -1 || 313 313 ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) != -1 || 314 314 ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) != -1) || 315 315 ws.ws_col != 0) termwidth = ws.ws_col; 316 char *formatButPath = "% 8ld.%ld %5ld %c%c%c%c %c%c%c%c %-20.20s";316 char *formatButPath = "%9ld.%ld %5ld %c%c%c%c %c%c%c%c %-19.19s"; 317 317 int pathlen = termwidth - strlen(banner) - 1; 318 318 // XXX don't ever free 'format', should fix if we get called repeatedly … … 404 404 } 405 405 406 int main 406 int main(int argc, char * const argv[]) { 407 407 OSStatus err = noErr; 408 408 … … 416 416 CPSProcessSerNum psn = matchApplication(&info); 417 417 418 const char *verb ;418 const char *verb = NULL; 419 419 switch (OPTS.appAction) { 420 420 case APP_NONE: break;
Note:
See TracChangeset
for help on using the changeset viewer.