Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -9,7 +9,7 @@ enum
|
|||
Inset, /* move border in or out uniformly */
|
||||
Insetxy, /* move border in or out; different parameters for x and y */
|
||||
Set, /* set rectangle to absolute values */
|
||||
Blank, /* cut off blank region according to color value */
|
||||
Blank /* cut off blank region according to color value */
|
||||
/* Blank is not actually set as a mode; it can be combined with others */
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ enum
|
|||
Lx = 4, /* label tick length */
|
||||
|
||||
STACK = 8192,
|
||||
XSTACK = 32768,
|
||||
XSTACK = 32768
|
||||
};
|
||||
|
||||
enum
|
||||
|
|
@ -45,7 +45,7 @@ enum
|
|||
Vsys,
|
||||
Vsyscall,
|
||||
Vuser,
|
||||
Nvalue,
|
||||
Nvalue
|
||||
};
|
||||
|
||||
char*
|
||||
|
|
@ -67,7 +67,7 @@ labels[Nvalue] =
|
|||
"swap",
|
||||
"sys",
|
||||
"syscall",
|
||||
"user",
|
||||
"user"
|
||||
};
|
||||
|
||||
struct Graph
|
||||
|
|
@ -527,7 +527,7 @@ resize(void)
|
|||
for(x=startx, i=0; i<nmach; i++,x+=dx){
|
||||
draw(screen, Rect(x-1, starty-1, x, screen->r.max.y), display->black, nil, ZP);
|
||||
j = dx/stringwidth(mediumfont, "0");
|
||||
// n = mach[i].nproc;
|
||||
/* n = mach[i].nproc; */
|
||||
n = 1;
|
||||
if(n>1 && j>=1+3+(n>10)+(n>100)){ /* first char of name + (n) */
|
||||
j -= 3+(n>10)+(n>100);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
enum
|
||||
{
|
||||
STACK = 8192,
|
||||
STACK = 8192
|
||||
};
|
||||
|
||||
int nbit, npix;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ enum
|
|||
Up = 1,
|
||||
Down = 0,
|
||||
Mag = 4,
|
||||
Maxmag = 10,
|
||||
Maxmag = 10
|
||||
};
|
||||
|
||||
enum
|
||||
|
|
@ -49,12 +49,12 @@ enum
|
|||
Mchar,
|
||||
Mpixels,
|
||||
Mclose,
|
||||
Mexit,
|
||||
Mexit
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
Blue = 54,
|
||||
Blue = 54
|
||||
};
|
||||
|
||||
char *menu3str[] = {
|
||||
|
|
@ -66,7 +66,7 @@ char *menu3str[] = {
|
|||
"pixels",
|
||||
"close",
|
||||
"exit",
|
||||
0,
|
||||
0
|
||||
};
|
||||
|
||||
Menu menu3 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue