Back to index

plt-scheme  4.2.1
plcdemos.h
Go to the documentation of this file.
00001 /* $Id: plcdemos.h,v 1.1 2004/03/01 20:54:51 cozmic Exp $
00002 
00003        Everything needed by the C demo programs.
00004        Created to avoid junking up plplot.h with this stuff.
00005 */
00006 
00007 #ifndef __PLCDEMOS_H__
00008 #define __PLCDEMOS_H__
00009 
00010 #include "plConfig.h"
00011 #include "plplot.h"
00012 #include <math.h>
00013 #include <string.h>
00014 #include <ctype.h>
00015 
00016 /* define PI if not defined by math.h */
00017 
00018 #ifndef PI
00019 #define PI 3.1415926535897932384
00020 #endif
00021 
00022 /* various utility macros */
00023 
00024 #ifndef MAX
00025 #define MAX(a,b)    (((a) > (b)) ? (a) : (b))
00026 #endif
00027 
00028 #ifndef MIN
00029 #define MIN(a,b)    (((a) < (b)) ? (a) : (b))
00030 #endif
00031 
00032 #ifndef ROUND
00033 #define ROUND(a)    (PLINT)((a)<0. ? ((a)-.5) : ((a)+.5))
00034 #endif
00035 
00036 #endif /* __PLCDEMOS_H__ */