changeset 20948:babc439a224f

* cdisplay.c: Add comment explaining existence of file.
author John W. Eaton <jwe@octave.org>
date Sat, 19 Dec 2015 07:57:38 -0600
parents ecb95c6384f2
children e456327188f9
files libinterp/corefcn/cdisplay.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/cdisplay.c	Sat Dec 19 07:54:00 2015 -0600
+++ b/libinterp/corefcn/cdisplay.c	Sat Dec 19 07:57:38 2015 -0600
@@ -36,6 +36,11 @@
 
 #include "cdisplay.h"
 
+// Programming Note: This file exists so that we can hide system
+// header files that make heavy use of macros and C-style casts in a C
+// language file and avoid warnings about using old-style casts in C++.
+// Please do NOT eliminate this file and move code to display.cc.
+
 const char *
 octave_get_display_info (int *ht, int *wd, int *dp, double *rx, double *ry,
                          int *dpy_avail)