Mercurial > octave-nkf
comparison src/debug.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 | cda4aa780d58 |
children | 7dd7cccf0757 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
65 if (! instance) | 65 if (! instance) |
66 { | 66 { |
67 ::error ("unable to create breakpoint table!"); | 67 ::error ("unable to create breakpoint table!"); |
68 retval = false; | 68 retval = false; |
69 } | 69 } |
70 | 70 |
71 return retval; | 71 return retval; |
72 } | 72 } |
73 | 73 |
74 // Add a breakpoint at the nearest executable line. | 74 // Add a breakpoint at the nearest executable line. |
75 static intmap add_breakpoint (const std::string& fname = "", | 75 static intmap add_breakpoint (const std::string& fname = "", |
76 const intmap& lines = intmap ()) | 76 const intmap& lines = intmap ()) |
77 { | 77 { |
78 return instance_ok () | 78 return instance_ok () |
79 ? instance->do_add_breakpoint (fname, lines) : intmap (); | 79 ? instance->do_add_breakpoint (fname, lines) : intmap (); |
80 } | 80 } |
81 | 81 |
82 // Remove a breakpoint from a line in file. | 82 // Remove a breakpoint from a line in file. |
83 static int remove_breakpoint (const std::string& fname = "", | 83 static int remove_breakpoint (const std::string& fname = "", |
84 const intmap& lines = intmap ()) | 84 const intmap& lines = intmap ()) |
85 { | 85 { |
86 return instance_ok () | 86 return instance_ok () |
87 ? instance->do_remove_breakpoint (fname, lines) : 0; | 87 ? instance->do_remove_breakpoint (fname, lines) : 0; |
88 } | 88 } |
92 bool silent = false) | 92 bool silent = false) |
93 { | 93 { |
94 return instance_ok () | 94 return instance_ok () |
95 ? instance->do_remove_all_breakpoints_in_file (fname, silent) : intmap (); | 95 ? instance->do_remove_all_breakpoints_in_file (fname, silent) : intmap (); |
96 } | 96 } |
97 | 97 |
98 // Remove all the breakpoints registered with octave. | 98 // Remove all the breakpoints registered with octave. |
99 static void remove_all_breakpoints (void) | 99 static void remove_all_breakpoints (void) |
100 { | 100 { |
101 if (instance_ok ()) | 101 if (instance_ok ()) |
102 instance->do_remove_all_breakpoints (); | 102 instance->do_remove_all_breakpoints (); |
103 } | 103 } |
104 | 104 |
105 // Return all breakpoints. Each element of the map is a vector | 105 // Return all breakpoints. Each element of the map is a vector |
106 // containing the breakpoints corresponding to a given function name. | 106 // containing the breakpoints corresponding to a given function name. |
107 static fname_line_map | 107 static fname_line_map |
108 get_breakpoint_list (const octave_value_list& fname_list) | 108 get_breakpoint_list (const octave_value_list& fname_list) |
109 { | 109 { |
129 | 129 |
130 intmap do_add_breakpoint (const std::string& fname, const intmap& lines); | 130 intmap do_add_breakpoint (const std::string& fname, const intmap& lines); |
131 | 131 |
132 int do_remove_breakpoint (const std::string&, const intmap& lines); | 132 int do_remove_breakpoint (const std::string&, const intmap& lines); |
133 | 133 |
134 intmap do_remove_all_breakpoints_in_file (const std::string& fname, | 134 intmap do_remove_all_breakpoints_in_file (const std::string& fname, |
135 bool silent); | 135 bool silent); |
136 | 136 |
137 void do_remove_all_breakpoints (void); | 137 void do_remove_all_breakpoints (void); |
138 | 138 |
139 fname_line_map do_get_breakpoint_list (const octave_value_list& fname_list); | 139 fname_line_map do_get_breakpoint_list (const octave_value_list& fname_list); |