aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/draw/gview.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/draw/gview.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/draw/gview.c')
-rw-r--r--src/cmd/draw/gview.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/draw/gview.c b/src/cmd/draw/gview.c
index d935910e..68b6ad43 100644
--- a/src/cmd/draw/gview.c
+++ b/src/cmd/draw/gview.c
@@ -13,7 +13,7 @@
enum {
But1 = Button_bit(1),/* mouse buttons for events */
But2 = Button_bit(2),
- But3 = Button_bit(3),
+ But3 = Button_bit(3)
};
int cantmv = 1; /* disallow rotate and move? 0..1 */
int top_border, bot_border, lft_border, rt_border;
@@ -911,7 +911,7 @@ double out_length(const fpoint* p0, const fpoint* pn, frectangle r, double slope
#define Len_thous 30 /* bound on strlen(thous_nam[i]) */
char* thous_nam[Nthous] = {
"one", "thousand", "million", "billion",
- "trillion", "quadrillion", "quintillion",
+ "trillion", "quadrillion", "quintillion"
};
@@ -1966,6 +1966,8 @@ void usage(void)
"Read a polygonal line graph in an ASCII format (one x y pair per line, delimited\n"
"by spaces with a label after each polyline), and view it interactively. Use\n"
"standard input if no infile is specified.\n"
+ );
+ fprintf(stderr,
"Option -l specifies a file in which to log the coordinates of each point selected.\n"
"(Clicking a point with button one selects it and displays its coordinates and\n"
"the label of its polylone.) Option -m allows polylines to be moved and rotated.\n"