comparison libinterp/corefcn/toplev.h @ 20946:6eff66fb8a02

style fixes for comments * find-dialog.cc, find-dialog.h, display.cc, error.cc, gl-render.cc, graphics.cc, graphics.in.h, max.cc, oct-handle.h, oct-obj.h, oct-stream.cc, oct.h, pr-output.cc, profiler.cc, str2double.cc, symtab.cc, toplev.cc, toplev.h, xgl2ps.c, zfstream.cc, zfstream.h, __glpk__.cc, audiodevinfo.cc, colamd.cc, symbfact.cc, ov-classdef.cc, ov-classdef.h, ov-java.cc, op-int.h, pt-pr-code.cc, pt-walk.h: Use C++-style comments where possible.
author John W. Eaton <jwe@octave.org>
date Fri, 18 Dec 2015 22:39:36 -0500
parents f7084eae3318
children 850e3d2533d4
comparison
equal deleted inserted replaced
20945:9d9270e2f98f 20946:6eff66fb8a02
204 static symbol_table::context_id current_context (void) 204 static symbol_table::context_id current_context (void)
205 { 205 {
206 return instance_ok () ? instance->do_current_context () : 0; 206 return instance_ok () ? instance->do_current_context () : 0;
207 } 207 }
208 208
209 /* 209 #if 0
210 static stack_frame frame (size_t idx) 210 static stack_frame frame (size_t idx)
211 { 211 {
212 return instance_ok () ? instance->do_frame (idx) : stack_frame (); 212 return instance_ok () ? instance->do_frame (idx) : stack_frame ();
213 } 213 }
214 */ 214 #endif
215
215 // Function at location N on the call stack (N == 0 is current), may 216 // Function at location N on the call stack (N == 0 is current), may
216 // be built-in. 217 // be built-in.
217 static octave_function *element (size_t n) 218 static octave_function *element (size_t n)
218 { 219 {
219 return instance_ok () ? instance->do_element (n) : 0; 220 return instance_ok () ? instance->do_element (n) : 0;
383 { 384 {
384 return curr_frame > 0 && curr_frame < cs.size () 385 return curr_frame > 0 && curr_frame < cs.size ()
385 ? cs[curr_frame].m_context : 0; 386 ? cs[curr_frame].m_context : 0;
386 } 387 }
387 388
388 /* const stack_frame& do_frame (size_t idx) 389 #if 0
390 const stack_frame& do_frame (size_t idx)
389 { 391 {
390 static stack_frame foobar; 392 static stack_frame foobar;
391 393
392 return idx < cs.size () ? cs[idx] : foobar; 394 return idx < cs.size () ? cs[idx] : foobar;
393 } 395 }
394 */ 396 #endif
397
395 octave_function *do_element (size_t n) 398 octave_function *do_element (size_t n)
396 { 399 {
397 octave_function *retval = 0; 400 octave_function *retval = 0;
398 401
399 if (cs.size () > n) 402 if (cs.size () > n)