filename | test/include/unctrl.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Fri Dec 02 18:18:04 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | SH4 shadow-mode tweaks - Fix exceptions generated by the translator to account for the excepting instruction(s) in the cycle counts. - Compare floating point regs bitwise rather than with FP comparisons (otherwise can fail due to nan != nan) - Dump the translated block when we abort with an inconsistency |
file | annotate | diff | log | raw |
nkeynes@185 | 1 | /* From curses.h. */ |
nkeynes@185 | 2 | /* |
nkeynes@185 | 3 | * Copyright (c) 1981, 1993 |
nkeynes@185 | 4 | * The Regents of the University of California. All rights reserved. |
nkeynes@185 | 5 | * |
nkeynes@185 | 6 | * Redistribution and use in source and binary forms, with or without |
nkeynes@185 | 7 | * modification, are permitted provided that the following conditions |
nkeynes@185 | 8 | * are met: |
nkeynes@185 | 9 | * 1. Redistributions of source code must retain the above copyright |
nkeynes@185 | 10 | * notice, this list of conditions and the following disclaimer. |
nkeynes@185 | 11 | * 2. Redistributions in binary form must reproduce the above copyright |
nkeynes@185 | 12 | * notice, this list of conditions and the following disclaimer in the |
nkeynes@185 | 13 | * documentation and/or other materials provided with the distribution. |
nkeynes@185 | 14 | * 3. All advertising materials mentioning features or use of this software |
nkeynes@185 | 15 | * must display the following acknowledgement: |
nkeynes@185 | 16 | * This product includes software developed by the University of |
nkeynes@185 | 17 | * California, Berkeley and its contributors. |
nkeynes@185 | 18 | * 4. Neither the name of the University nor the names of its contributors |
nkeynes@185 | 19 | * may be used to endorse or promote products derived from this software |
nkeynes@185 | 20 | * without specific prior written permission. |
nkeynes@185 | 21 | * |
nkeynes@185 | 22 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
nkeynes@185 | 23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
nkeynes@185 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
nkeynes@185 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
nkeynes@185 | 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
nkeynes@185 | 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
nkeynes@185 | 28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
nkeynes@185 | 29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
nkeynes@185 | 30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
nkeynes@185 | 31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
nkeynes@185 | 32 | * SUCH DAMAGE. |
nkeynes@185 | 33 | */ |
nkeynes@185 | 34 | |
nkeynes@185 | 35 | #ifndef _UNCTRL_H_ |
nkeynes@185 | 36 | #define _UNCTRL_H_ |
nkeynes@185 | 37 | |
nkeynes@185 | 38 | #include <_ansi.h> |
nkeynes@185 | 39 | |
nkeynes@185 | 40 | #define unctrl(c) __unctrl[(c) & 0xff] |
nkeynes@185 | 41 | #define unctrllen(ch) __unctrllen[(ch) & 0xff] |
nkeynes@185 | 42 | |
nkeynes@185 | 43 | extern _CONST char * _CONST __unctrl[256]; /* Control strings. */ |
nkeynes@185 | 44 | extern _CONST char __unctrllen[256]; /* Control strings length. */ |
nkeynes@185 | 45 | |
nkeynes@185 | 46 | #endif /* _UNCTRL_H_ */ |
.