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

reduce #ifdef/#else/#endif clutter · gnuplot/gnuplot@02392c5 · GitHub

Repository navigation

Commit 02392c5

Browse files
Ethan A Merritt
committed
reduce #ifdef/#else/#endif clutter
also typos
1 parent a4e9132 commit 02392c5

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎docs/gnuplot.doc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4741,7 +4741,7 @@ Ffigure_newsyntax
47414741
plot DATA using 1:2 smooth cnormal watch y=0.25 watch y=0.5 watch y=0.75
47424742

47434743
Ffigure_watchpoints
4744-
Watchpoint hits for each targets in the previous plot command are stored in
4744+
Watchpoint hits for each target in the previous plot command are stored in
47454745
named arrays WATCH_n. You can also display a summary of all watchpoint hits
47464746
from the previous plot command; see `show watchpoints`.
47474747

‎src/graphics.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,12 +1267,9 @@ plot_lines(struct curve_points *plot)
12671267
for (i = 0; i < plot->p_count; i++) {
12681268
xnow = plot->points[i].x;
12691269
ynow = plot->points[i].y;
1270-
1271-
#ifdef USE_WATCHPOINTS
12721270
znow = plot->points[i].z;
1273-
#else
1274-
(void)zprev; /* prevents warnings about unused variable */
1275-
#endif
1271+
1272+
(void)zprev; /* prevents unused variable warning #ifndef USE_WATCHPOINTS */
12761273

12771274
/* rgb variable - color read from data column */
12781275
check_for_variable_color(plot, &plot->varcolor[i]);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL