changeset 11488:49368dbf0822

Replace history control macros with enum
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 12 Jan 2011 08:04:14 -0600
parents 0f14c093476e
children 978802964923
files liboctave/ChangeLog liboctave/oct-rl-hist.h
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Jan 12 09:38:08 2011 -0800
+++ b/liboctave/ChangeLog	Wed Jan 12 08:04:14 2011 -0600
@@ -1,3 +1,7 @@
+2011-01-12  Jordi GutiƩrrez Hermoso  <jordigh@gmail.com>
+
+	* oct-rl-hist.h: Replace macros with an enum
+
 2011-01-12  Pascal Dupuis  <Pascal.Dupuis@worldonline.be>
 	    John W. Eaton  <jwe@octave.org>
 
--- a/liboctave/oct-rl-hist.h	Wed Jan 12 09:38:08 2011 -0800
+++ b/liboctave/oct-rl-hist.h	Wed Jan 12 08:04:14 2011 -0600
@@ -28,9 +28,11 @@
 {
 #endif
 
-#define HC_IGNSPACE 0x01
-#define HC_IGNDUPS 0x02
-#define HC_ERASEDUPS 0x04
+enum {
+  HC_IGNSPACE = 0x01,
+  HC_IGNDUPS = 0x02,
+  HC_ERASEDUPS = 0x04
+};
 
 extern int octave_add_history (const char *, int);