mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +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 );
|
||||
|
||||
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 ***********************************/
|
||||
|
||||
enum { DOrange=0xffaa00FF, Dgray=0xbbbbbbFF, DDkgreen=0x009900FF,
|
||||
DDkred=0xcc0000FF, DViolet=0x990099FF, DDkyellow=0xaaaa00FF,
|
||||
DLtblue=0xaaaaffFF, DPink=0xffaaaaFF,
|
||||
/* ndraw.h sets DBlack, DBlue, DRed, DYellow, DGreen,
|
||||
#define DOrange 0xFFAA00FF
|
||||
#define Dgray 0xBBBBBBFF
|
||||
#define DDkgreen 0x009900FF
|
||||
#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 */
|
||||
};
|
||||
|
||||
typedef struct color_ref {
|
||||
ulong c; /* RGBA pixel color */
|
||||
|
|
|
@ -68,7 +68,7 @@ threadmain(int argc, char *argv[])
|
|||
exits("usage");
|
||||
}
|
||||
|
||||
if(initdraw(nil, nil, "colors") < 0)
|
||||
if(initdraw(0, nil, "colors") < 0)
|
||||
sysfatal("initdraw failed: %r");
|
||||
|
||||
mousectl = initmouse(nil, display->image);
|
||||
|
|
|
@ -853,7 +853,7 @@ type(char *buf, char *tag)
|
|||
p += runetochar(p, &r);
|
||||
}
|
||||
}
|
||||
return 0; /* shut up compiler */
|
||||
/* return 0; shut up compiler */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -210,7 +210,7 @@ gunzip(int ofd, char *ofile, Biobuf *bin)
|
|||
h.file = nil;
|
||||
gzok = Boffset(bin);
|
||||
}
|
||||
return 0;
|
||||
/* return 0; */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -261,8 +261,6 @@ sunztable(Biobuf *bin)
|
|||
free(zh.file);
|
||||
zh.file = nil;
|
||||
}
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -331,8 +329,6 @@ sunzip(Biobuf *bin)
|
|||
if(eok < 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue