| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/xgraph/files/ |
Upload File : |
--- xgraph.h.orig 1997-07-16 18:40:41 UTC +++ xgraph.h @@ -5,7 +5,12 @@ #ifndef _XGRAPH_H_ #define _XGRAPH_H_ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <X11/Xos.h> +#undef index +#undef rindex #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/cursorfont.h> @@ -33,20 +38,9 @@ extern void do_hardcopy(); /* Carries out hardcopy extern void ho_dialog(); /* Hardcopy dialog */ extern void set_X(); /* Initializes X device */ -#if 0 -/* To make lint happy */ -extern char *malloc(); -extern char *realloc(); -extern char *sprintf(); -extern char *strcpy(); -extern char *strcat(); -extern char *rindex(); -extern char *index(); -extern void exit(); -extern void free(); -extern double atof(); +#ifndef MAX +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif - -extern void abort(); #endif /* _XGRAPH_H_ */