Mercurial > octave-nkf
comparison liboctave/oct-shlib.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | a21a3875ca83 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
40 | 40 |
41 class shlib_rep | 41 class shlib_rep |
42 { | 42 { |
43 public: | 43 public: |
44 | 44 |
45 shlib_rep (void) | 45 shlib_rep (void) |
46 : count (1), file (), tm_loaded (time_t ()), fcn_names () { } | 46 : count (1), file (), tm_loaded (time_t ()), fcn_names () { } |
47 | 47 |
48 protected: | 48 protected: |
49 | 49 |
50 shlib_rep (const std::string& f); | 50 shlib_rep (const std::string& f); |
87 | 87 |
88 int count; | 88 int count; |
89 | 89 |
90 protected: | 90 protected: |
91 | 91 |
92 void fake_reload (void); | 92 void fake_reload (void); |
93 | 93 |
94 std::string file; | 94 std::string file; |
95 octave_time tm_loaded; | 95 octave_time tm_loaded; |
96 | 96 |
97 // Set of hooked function names. | 97 // Set of hooked function names. |
143 bool operator == (const octave_shlib& sl) const | 143 bool operator == (const octave_shlib& sl) const |
144 { return (rep == sl.rep); } | 144 { return (rep == sl.rep); } |
145 | 145 |
146 operator bool () const { return rep->is_open (); } | 146 operator bool () const { return rep->is_open (); } |
147 | 147 |
148 void open (const std::string& f) | 148 void open (const std::string& f) |
149 { *this = octave_shlib (f); } | 149 { *this = octave_shlib (f); } |
150 | 150 |
151 void close (close_hook cl_hook = 0) | 151 void close (close_hook cl_hook = 0) |
152 { | 152 { |
153 if (cl_hook) | 153 if (cl_hook) |
154 rep->do_close_hook (cl_hook); | 154 rep->do_close_hook (cl_hook); |
155 | 155 |
156 *this = octave_shlib (); | 156 *this = octave_shlib (); |
157 } | 157 } |
158 | 158 |
159 void *search (const std::string& nm, name_mangler mangler = 0) const | 159 void *search (const std::string& nm, name_mangler mangler = 0) const |
160 { | 160 { |
161 void *f = rep->search (nm, mangler); | 161 void *f = rep->search (nm, mangler); |
162 if (f) | 162 if (f) |
163 rep->add_fcn_name (nm); | 163 rep->add_fcn_name (nm); |
164 | 164 |
165 return f; | 165 return f; |
166 } | 166 } |