/usr/share/doc/libplplot12/examples/c/plcdemos.h is in libplplot-dev 5.10.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | // $Id: plcdemos.h 11289 2010-10-29 20:44:17Z airwin $
//
// Everything needed by the C demo programs.
// Created to avoid junking up plplot.h with this stuff.
//
#ifndef __PLCDEMOS_H__
#define __PLCDEMOS_H__
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "plConfig.h"
#include "plplot.h"
// define PI if not defined by math.h
// Actually M_PI seems to be more widely used so we deprecate PI.
#ifndef PI
#define PI 3.1415926535897932384
#endif
#ifndef M_PI
#define M_PI 3.1415926535897932384
#endif
// various utility macros
#ifndef MAX
#define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
#endif
#ifndef MIN
#define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
#endif
#ifndef ROUND
#define ROUND( a ) (PLINT) ( ( a ) < 0. ? ( ( a ) - .5 ) : ( ( a ) + .5 ) )
#endif
// Declarations for save string functions
#ifdef PL_HAVE_SNPRINTF
// In case only _snprintf is declared (as for Visual C++ and
// Borland compiler toolset) we redefine the function names
#ifdef _PL_HAVE_SNPRINTF
#define snprintf _snprintf
#define snscanf _snscanf
#endif // _PL_HAVE_SNPRINTF
#else // !PL_HAVE_SNPRINTF
// declare dummy functions which just call the unsafe
// functions ignoring the size of the string
int plsnprintf( char *buffer, int n, const char *format, ... );
int plsnscanf( const char *buffer, int n, const char *format, ... );
#define snprintf plsnprintf
#define snscanf plsnscanf
#endif // PL_HAVE_SNPRINTF
// Add in missing isnan definition if required
#if defined ( PL__HAVE_ISNAN )
# define isnan _isnan
# if defined ( _MSC_VER )
# include <float.h>
# endif
#endif
#if !defined ( PL_HAVE_ISNAN )
# define isnan( x ) ( ( x ) != ( x ) )
#endif
#endif // __PLCDEMOS_H__
|