00001 /* 00002 Copyright © 1998. The Regents of the University of California (Regents). 00003 All Rights Reserved. 00004 00005 Written by Matt Wright, The Center for New Music and Audio Technologies, 00006 University of California, Berkeley. 00007 00008 Permission to use, copy, modify, distribute, and distribute modified versions 00009 of this software and its documentation without fee and without a signed 00010 licensing agreement, is hereby granted, provided that the above copyright 00011 notice, this paragraph and the following two paragraphs appear in all copies, 00012 modifications, and distributions. 00013 00014 IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 00015 SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING 00016 OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS 00017 BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00018 00019 REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00020 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00021 PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED 00022 HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE 00023 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00024 00025 The OpenSound Control WWW page is 00026 http://www.cnmat.berkeley.edu/OpenSoundControl 00027 */ 00028 00029 00030 00031 /* OSC-common.h 00032 Simple stuff to #include everywhere in the OSC package 00033 00034 by Matt Wright, 3/13/98 00035 */ 00036 00037 /* Boolean type */ 00038 00039 #ifndef TRUE 00040 #define TRUE 1 00041 #define FALSE 0 00042 #endif 00043 00044 //typedef int Boolean; 00045 #define Boolean int 00046 typedef int FileDescriptor; 00047 00048 /* Fixed byte width types */ 00049 typedef int int4; /* 4 byte int */ 00050 00051 /* Printing type procedures. All take printf-style format string */ 00052 00053 /* Catastrophic failure: print message and halt system */ 00054 void fatal_error(char *s, ...); 00055 00056 /* Error message for user */ 00057 void OSCProblem(char *s, ...); 00058 00059 /* Warning for user */ 00060 void OSCWarning(char *s, ...); 00061 00062
1.5.8