mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
stupid sun
This commit is contained in:
parent
5a2171b2e8
commit
d7925b13e3
7 changed files with 17 additions and 14 deletions
|
@ -432,9 +432,11 @@ int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
AssertH ( 0, 6001 );
|
AssertH ( 0, 6001 );
|
||||||
|
|
||||||
return 0; /*NOTREACHED*/
|
return 0;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,7 @@ int BZ_API(BZ2_bzRead)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0; /*not reached*/
|
/* return 0; not reached*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -155,12 +155,17 @@ void latest_mouse(int but, Mouse* m)
|
||||||
|
|
||||||
/*********************************** Colors ***********************************/
|
/*********************************** Colors ***********************************/
|
||||||
|
|
||||||
enum { DOrange=0xffaa00FF, Dgray=0xbbbbbbFF, DDkgreen=0x009900FF,
|
#define DOrange 0xFFAA00FF
|
||||||
DDkred=0xcc0000FF, DViolet=0x990099FF, DDkyellow=0xaaaa00FF,
|
#define Dgray 0xBBBBBBFF
|
||||||
DLtblue=0xaaaaffFF, DPink=0xffaaaaFF,
|
#define DDkgreen 0x009900FF
|
||||||
/* ndraw.h sets DBlack, DBlue, DRed, DYellow, DGreen,
|
#define DDkred 0xCC0000FF
|
||||||
|
#define DViolet 0x990099FF
|
||||||
|
#define DDkyellow 0xAAAA00FF
|
||||||
|
#define DLtblue 0xAAAAFFFF
|
||||||
|
#define DPink 0xFFAAAAFF
|
||||||
|
|
||||||
|
/* draw.h sets DBlack, DBlue, DRed, DYellow, DGreen,
|
||||||
DCyan, DMagenta, DWhite */
|
DCyan, DMagenta, DWhite */
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct color_ref {
|
typedef struct color_ref {
|
||||||
ulong c; /* RGBA pixel color */
|
ulong c; /* RGBA pixel color */
|
||||||
|
|
|
@ -68,7 +68,7 @@ threadmain(int argc, char *argv[])
|
||||||
exits("usage");
|
exits("usage");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(initdraw(nil, nil, "colors") < 0)
|
if(initdraw(0, nil, "colors") < 0)
|
||||||
sysfatal("initdraw failed: %r");
|
sysfatal("initdraw failed: %r");
|
||||||
|
|
||||||
mousectl = initmouse(nil, display->image);
|
mousectl = initmouse(nil, display->image);
|
||||||
|
|
|
@ -853,7 +853,7 @@ type(char *buf, char *tag)
|
||||||
p += runetochar(p, &r);
|
p += runetochar(p, &r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0; /* shut up compiler */
|
/* return 0; shut up compiler */
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -210,7 +210,7 @@ gunzip(int ofd, char *ofile, Biobuf *bin)
|
||||||
h.file = nil;
|
h.file = nil;
|
||||||
gzok = Boffset(bin);
|
gzok = Boffset(bin);
|
||||||
}
|
}
|
||||||
return 0;
|
/* return 0; */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -261,8 +261,6 @@ sunztable(Biobuf *bin)
|
||||||
free(zh.file);
|
free(zh.file);
|
||||||
zh.file = nil;
|
zh.file = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ok;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -331,8 +329,6 @@ sunzip(Biobuf *bin)
|
||||||
if(eok < 0)
|
if(eok < 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue