Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-unix!sri-spam!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!ucbvax!jade!violet.berkeley.edu!mwm From: mwm@violet.berkeley.edu.UUCP Newsgroups: comp.sys.amiga Subject: placewindow & stylistic comments Message-ID: <3993@jade.BERKELEY.EDU> Date: Thu, 18-Jun-87 03:42:06 EDT Article-I.D.: jade.3993 Posted: Thu Jun 18 03:42:06 1987 Date-Received: Sat, 20-Jun-87 00:56:10 EDT Sender: usenet@jade.BERKELEY.EDU Reply-To: mwm@violet.berkeley.edu (Mike (My watch has windows) Meyer) Organization: Missionaria Phonibalonica Lines: 24 I just shipped placewindow to comp.amiga.sources. Placewindow is a simple hack that lets you move/resize a window from the CLI. You can also ask placewindow to change the max size limits on the window to -1, -1 (and do all three of the above in odd combinations). The syntax for window geometry is an extension of conman. Finally, there's a hook to start a command running, then wait for that command to create a window for placewindow to twiddle. This thing also has twice as many labels as I've ever put in a C program, in two classical "non-goto-less" type places. One involves an exit from a two-deep loop, and the other involves early termination of a parse. I'd be interested in rewrites of either that generate *more readable* goto-less code. The obvious changes (shuffling the code after the loop exit into an if, pushing the parser into a subroutine that uses 7 variables to talk to main, or pushing that code into a deeply-nested if) is *not* considered more readable.