File:  [CSRG BSD Unix] / 43BSD / contrib / X / CLUlib / x_erstr.clu
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

% Copyright    Barbara Liskov    1985

msgs = sequence[string]$["bad request code",
			 "int parameter out of range",
			 "parameter not a Window",
			 "parameter not a Pixmap",
			 "parameter not a Bitmap",
			 "parameter not a Cursor",
			 "parameter not a Font",
			 "parameter mismatch",
			 "Pixmap shape invalid for tiling",
			 "mouse/button already grabbed",
			 "access control violation",
			 "insufficient resources",
			 "no such color"]

x_erstr = proc (err, req, code, func, wid: int) returns (string)
    return(msgs[err] || ": request code " || int$unparse(code))
    end x_erstr

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.