FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

New TBOOLEAN definition, rename struct element. · gnuplot/gnuplot-old@8330d7f · GitHub

Repository navigation

Commit 8330d7f

Browse files
lhecking
committed
New TBOOLEAN definition, rename struct element.
1 parent f676038 commit 8330d7f

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎src/plot.h‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Id: plot.h,v 1.25 1999/11/08 19:24:16 lhecking Exp $
2+
* $Id: plot.h,v 1.26 1999/11/15 22:02:51 lhecking Exp $
33
*
44
*/
55

@@ -74,8 +74,14 @@
7474
# define TRUE 1
7575
# define FALSE 0
7676
#endif
77+
78+
#ifndef __cplusplus
79+
#undef bool
80+
typedef unsigned int bool;
81+
#endif
82+
7783
/* TRUE or FALSE */
78-
typedef int TBOOLEAN;
84+
#define TBOOLEAN bool
7985

8086
/* double true, used in autoscale: 1=autoscale ?min, 2=autoscale ?max */
8187
#define DTRUE 3
@@ -544,7 +550,7 @@ struct lp_style_type { /* contains all Line and Point properties */
544550

545551

546552
struct curve_points {
547-
struct curve_points *next_cp; /* pointer to next plot in linked list */
553+
struct curve_points *next; /* pointer to next plot in linked list */
548554
int token; /* last token in re/plot line, for second pass */
549555
enum PLOT_TYPE plot_type;
550556
enum PLOT_STYLE plot_style;
@@ -628,7 +634,7 @@ struct TERMENTRY {
628634
int (*text_angle) __PROTO((int));
629635
int (*justify_text) __PROTO((enum JUSTIFY));
630636
void (*point) __PROTO((unsigned int, unsigned int,int));
631-
void (*arrow) __PROTO((unsigned int, unsigned int, unsigned int, unsigned int, int));
637+
void (*arrow) __PROTO((unsigned int, unsigned int, unsigned int, unsigned int, TBOOLEAN));
632638
int (*set_font) __PROTO((const char *font));
633639
void (*pointsize) __PROTO((double)); /* change pointsize */
634640
int flags;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL