Mercurial > hg > octave-lyh
changeset 9247:b2790fd23800
More export symbols to allow usage from an IDE.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 22 May 2009 23:48:04 +0100 |
parents | 6e9ba936e983 |
children | 98034ebda172 |
files | src/ChangeLog src/input.h src/lex.h src/toplev.h |
diffstat | 4 files changed, 18 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2009-05-22 Michael Goffioul <michael.goffioul@gmail.com> + + * toplev.h (main_loop): Tag with OCTINTERP_API. + * input.h (octave_read, get_input_from_file, get_input_from_stdin): + Ditto. + * lex.h (create_buffer, current_buffer, switch_to_buffer, + delete_buffer, restore_input_buffer, delete_input_buffer): Ditto. + 2009-05-22 Robert T. Short <octave@phaselockedsystems.com> * ov-class.h, ov-class.cc (octave_class::clear_exemplar_map):
--- a/src/input.h +++ b/src/input.h @@ -36,9 +36,9 @@ class octave_value; -extern int octave_read (char *buf, unsigned max_size); -extern FILE *get_input_from_file (const std::string& name, int warn = 1); -extern FILE *get_input_from_stdin (void); +extern OCTINTERP_API int octave_read (char *buf, unsigned max_size); +extern OCTINTERP_API FILE *get_input_from_file (const std::string& name, int warn = 1); +extern OCTINTERP_API FILE *get_input_from_stdin (void); // Global pointer for eval(). extern std::string current_eval_string;
--- a/src/lex.h +++ b/src/lex.h @@ -32,22 +32,22 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE; // Associate a buffer with a new file to read. -extern YY_BUFFER_STATE create_buffer (FILE *f); +extern OCTINTERP_API YY_BUFFER_STATE create_buffer (FILE *f); // Report the current buffer. -extern YY_BUFFER_STATE current_buffer (void); +extern OCTINTERP_API YY_BUFFER_STATE current_buffer (void); // Connect to new buffer buffer. -extern void switch_to_buffer (YY_BUFFER_STATE buf); +extern OCTINTERP_API void switch_to_buffer (YY_BUFFER_STATE buf); // Delete a buffer. -extern void delete_buffer (YY_BUFFER_STATE buf); +extern OCTINTERP_API void delete_buffer (YY_BUFFER_STATE buf); // Restore a buffer (for unwind-prot). -extern void restore_input_buffer (void *buf); +extern OCTINTERP_API void restore_input_buffer (void *buf); // Delete a buffer (for unwind-prot). -extern void delete_input_buffer (void *buf); +extern OCTINTERP_API void delete_input_buffer (void *buf); // Is the given string a keyword? extern bool is_keyword (const std::string& s);