changeset 9221:659657942ba6

declare octave_exit using a typedef
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 20 May 2009 13:37:18 +0200
parents 70177bf9cc16
children 7bd406e12e4d
files src/ChangeLog src/toplev.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-20  Jaroslav Hajek  <highegg@gmail.com>
+
+	* toplev.h (octave_exit_func): New typedef.
+	(octave_exit): Change to octave_exit_func.
+	
 2009-05-20  Jaroslav Hajek  <highegg@gmail.com>
 	
 	* ov-typeinfo.cc: Don't include oct-obj.h.
--- a/src/toplev.h
+++ b/src/toplev.h
@@ -43,7 +43,8 @@
 #include "oct-map.h"
 
 
-extern OCTINTERP_API void (*octave_exit) (int);
+typedef void (*octave_exit_func) (int);
+extern OCTINTERP_API octave_exit_func octave_exit;
 
 // quit is a lot like an interrupt, so we subclass it to simplify possible
 // handling.