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 diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -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
+++ b/liboctave/oct-rl-hist.h
@@ -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);