Mercurial > hg > octave-nkf
comparison src/pt-stmt.h @ 8843:b9ce57a309a3
don't store breakpoint info in tree_statement object
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 23 Feb 2009 12:44:57 -0500 |
parents | 33783e94fb16 |
children | 35cd375d4bb3 |
comparison
equal
deleted
inserted
replaced
8842:be7b30a24938 | 8843:b9ce57a309a3 |
---|---|
44 tree_statement | 44 tree_statement |
45 { | 45 { |
46 public: | 46 public: |
47 | 47 |
48 tree_statement (void) | 48 tree_statement (void) |
49 : cmd (0), expr (0), bp (false), comm (0) { } | 49 : cmd (0), expr (0), comm (0) { } |
50 | 50 |
51 tree_statement (tree_command *c, octave_comment_list *cl) | 51 tree_statement (tree_command *c, octave_comment_list *cl) |
52 : cmd (c), expr (0), bp (false), comm (cl) { } | 52 : cmd (c), expr (0), comm (cl) { } |
53 | 53 |
54 tree_statement (tree_expression *e, octave_comment_list *cl) | 54 tree_statement (tree_expression *e, octave_comment_list *cl) |
55 : cmd (0), expr (e), bp (false), comm (cl) { } | 55 : cmd (0), expr (e), comm (cl) { } |
56 | 56 |
57 ~tree_statement (void); | 57 ~tree_statement (void); |
58 | 58 |
59 void set_print_flag (bool print_flag); | 59 void set_print_flag (bool print_flag); |
60 | 60 |
62 | 62 |
63 bool is_command (void) const { return cmd != 0; } | 63 bool is_command (void) const { return cmd != 0; } |
64 | 64 |
65 bool is_expression (void) const { return expr != 0; } | 65 bool is_expression (void) const { return expr != 0; } |
66 | 66 |
67 void set_breakpoint (void) { bp = true; } | 67 void set_breakpoint (void); |
68 | 68 |
69 void delete_breakpoint (void) { bp = false; } | 69 void delete_breakpoint (void); |
70 | 70 |
71 bool is_breakpoint (void) const { return bp; } | 71 bool is_breakpoint (void) const; |
72 | 72 |
73 int line (void) const; | 73 int line (void) const; |
74 int column (void) const; | 74 int column (void) const; |
75 | 75 |
76 void echo_code (void); | 76 void echo_code (void); |
105 // Command to execute. | 105 // Command to execute. |
106 tree_command *cmd; | 106 tree_command *cmd; |
107 | 107 |
108 // Expression to evaluate. | 108 // Expression to evaluate. |
109 tree_expression *expr; | 109 tree_expression *expr; |
110 | |
111 // Breakpoint flag. | |
112 bool bp; | |
113 | 110 |
114 // Comment associated with this statement. | 111 // Comment associated with this statement. |
115 octave_comment_list *comm; | 112 octave_comment_list *comm; |
116 | 113 |
117 // No copying! | 114 // No copying! |