KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_find_replace_tool.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2019 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <sch_commit.h>
22#include <sch_sheet_pin.h>
23#include <schematic.h>
25#include <sch_sheet_path.h>
26#include "sch_actions.h"
27
28
30{
31 m_frame->ShowFindReplaceDialog( aEvent.IsAction( &ACTIONS::findAndReplace ) );
32 return UpdateFind( aEvent );
33}
34
35
37{
38 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
39 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
40 SCH_SHEET_PATH* sheetPath = nullptr;
41 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
42
43 if( m_frame->GetFrameType() == FRAME_SCH )
44 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
45
46 auto visit =
47 [&]( EDA_ITEM* aItem, SCH_SHEET_PATH* aSheet )
48 {
49 // We may get triggered when the dialog is not opened due to binding
50 // SelectedItemsModified we also get triggered when the find dialog is
51 // closed....so we need to double check the dialog is open.
52 if( m_frame->GetFindReplaceDialog() != nullptr
53 && !data.findString.IsEmpty()
54 && aItem->Matches( data, aSheet )
55 && ( !selectedOnly || aItem->IsSelected() ) )
56 {
57 aItem->SetForceVisible( true );
58 m_selectionTool->BrightenItem( aItem );
60 }
61 else if( aItem->IsBrightened() || aItem->IsForceVisible() )
62 {
63 aItem->SetForceVisible( false );
64 m_selectionTool->UnbrightenItem( aItem );
65 }
66 };
67
68 auto visitAll =
69 [&]()
70 {
71 if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
72 {
73 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
74 {
75 for( SCH_ITEM& item : symbol->GetDrawItems() )
76 visit( &item, nullptr );
77 }
78 }
79 else
80 {
81 for( SCH_ITEM* item : m_frame->GetScreen()->Items() )
82 visit( item, sheetPath );
83 }
84 };
85
86 if( aEvent.IsAction( &ACTIONS::find ) || aEvent.IsAction( &ACTIONS::findAndReplace )
87 || aEvent.IsAction( &ACTIONS::updateFind ) )
88 {
90 visitAll();
91 }
92 else if( aEvent.Matches( EVENTS::SelectedItemsModified ) )
93 {
94 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
95 visit( item, sheetPath );
96 }
97 else if( aEvent.Matches( EVENTS::PointSelectedEvent )
100 || aEvent.Matches( EVENTS::ClearedEvent ) )
101 {
102 if( !m_frame->GetFindReplaceDialog() )
103 {
105 {
107 visitAll();
108 }
109 }
110 else if( selectedOnly )
111 {
112 // Normal find modifies the selection, but selection-based find does not, so we want
113 // to start over in the items we are searching through when the selection changes
114 m_afterItem = nullptr;
115 m_afterItemScreen = nullptr;
116 visitAll();
117 }
118 }
119 else if( m_foundItemHighlighted )
120 {
122 visitAll();
123 }
124
125 getView()->UpdateItems();
126 m_frame->GetCanvas()->Refresh();
127
128 return 0;
129}
130
131
133 EDA_SEARCH_DATA& aData, bool reversed )
134{
135 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &aData );
136 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
137 bool past_item = !aAfter;
138 std::vector<SCH_ITEM*> sorted_items;
139
140 auto addItem =
141 [&](SCH_ITEM* item)
142 {
143 sorted_items.push_back( item );
144
145 if( item->Type() == SCH_SYMBOL_T )
146 {
147 SCH_SYMBOL* cmp = static_cast<SCH_SYMBOL*>( item );
148
149 for( SCH_FIELD& field : cmp->GetFields() )
150 sorted_items.push_back( &field );
151
152 for( SCH_PIN* pin : cmp->GetPins() )
153 sorted_items.push_back( pin );
154 }
155 else if( item->Type() == SCH_SHEET_T )
156 {
157 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
158
159 for( SCH_FIELD& field : sheet->GetFields() )
160 sorted_items.push_back( &field );
161
162 for( SCH_SHEET_PIN* pin : sheet->GetPins() )
163 sorted_items.push_back( pin );
164 }
165 else if( item->IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
166 {
167 SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( item );
168
169 for( SCH_FIELD& field : label->GetFields() )
170 sorted_items.push_back( &field );
171 }
172 };
173
174 if( selectedOnly )
175 {
176 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
177 addItem( static_cast<SCH_ITEM*>( item ) );
178 }
179 else if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
180 {
181 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
182 {
183 for( SCH_ITEM& item : symbol->GetDrawItems() )
184 addItem( &item );
185 }
186 }
187 else
188 {
189 for( SCH_ITEM* item : aScreen->Items() )
190 addItem( item );
191 }
192
193 std::sort( sorted_items.begin(), sorted_items.end(),
194 [&]( SCH_ITEM* a, SCH_ITEM* b )
195 {
196 if( a->GetPosition().x == b->GetPosition().x )
197 {
198 // Ensure deterministic sort
199 if( a->GetPosition().y == b->GetPosition().y )
200 return a->m_Uuid < b->m_Uuid;
201
202 return a->GetPosition().y < b->GetPosition().y;
203 }
204 else
205 return a->GetPosition().x < b->GetPosition().x;
206 } );
207
208 if( reversed )
209 std::reverse( sorted_items.begin(), sorted_items.end() );
210
211 for( SCH_ITEM* item : sorted_items )
212 {
213 if( item == aAfter )
214 {
215 past_item = true;
216 }
217 else if( past_item )
218 {
219 if( aData.markersOnly && item->Type() == SCH_MARKER_T )
220 return item;
221
222 if( item->Matches( aData, aSheet ) )
223 return item;
224 }
225 }
226
227 return nullptr;
228}
229
230
232{
233 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
234 bool searchAllSheets = false;
235 bool selectedOnly = false;
236 bool isReversed = aEvent.IsAction( &ACTIONS::findPrevious );
237 SCH_ITEM* item = nullptr;
238 SCH_SHEET_PATH* currentSheet = nullptr;
239 SCH_SHEET_PATH* afterSheet = nullptr;
240
241 try
242 {
243 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
244
245 if( m_frame->GetFrameType() == FRAME_SCH )
246 {
247 currentSheet = afterSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
248 searchAllSheets = !schSearchData.searchCurrentSheetOnly;
249 }
250
251 selectedOnly = schSearchData.searchSelectedOnly;
252 }
253 catch( const std::bad_cast& )
254 {
255 }
256
257 if( aEvent.IsAction( &ACTIONS::findNextMarker ) )
258 data.markersOnly = true;
259 else if( data.findString.IsEmpty() )
260 return FindAndReplace( ACTIONS::find.MakeEvent() );
261
262 if( m_afterItem && m_afterItemScreen != m_frame->GetScreen() )
263 {
264 m_afterItem = nullptr;
265 m_afterItemScreen = nullptr;
266 }
267
268 if( data.findString != m_lastSearchString )
269 {
270 m_afterItem = nullptr;
271 m_afterItemScreen = nullptr;
273 }
274
275 bool wrappedAround = false;
276
277 for( int attempt = 0; attempt < 2; ++attempt )
278 {
279 if( attempt == 1 )
280 {
281 if( m_afterItem == nullptr )
282 break; // already a fresh session; nothing to wrap to
283
284 m_afterItem = nullptr;
285 m_afterItemScreen = nullptr;
286 afterSheet = nullptr;
287 wrappedAround = true;
288 }
289
290 bool freshSession = ( m_afterItem == nullptr );
291
292 if( afterSheet || !searchAllSheets || selectedOnly )
293 item = nextMatch( m_frame->GetScreen(), currentSheet, m_afterItem, data, isReversed );
294
295 if( !item && searchAllSheets && !selectedOnly )
296 {
297 if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
298 {
299 SCH_SCREENS screens( editFrame->Schematic().Root() );
300 SCH_SHEET_LIST paths;
301
302 screens.BuildClientSheetPathList();
303
304 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
305 {
306 for( SCH_SHEET_PATH& sheet : screen->GetClientSheetPaths() )
307 paths.push_back( sheet );
308 }
309
310 paths.SortByPageNumbers( false );
311
312 if( isReversed )
313 std::reverse( paths.begin(), paths.end() );
314
315 for( SCH_SHEET_PATH& sheet : paths )
316 {
317 if( afterSheet && !freshSession )
318 {
319 if( afterSheet->GetCurrentHash() == sheet.GetCurrentHash() )
320 afterSheet = nullptr;
321
322 continue;
323 }
324
325 item = nextMatch( sheet.LastScreen(), &sheet, nullptr, data, isReversed );
326
327 if( item )
328 {
329 if( editFrame->Schematic().CurrentSheet() != sheet )
330 editFrame->GetToolManager()->RunAction<SCH_SHEET_PATH*>( SCH_ACTIONS::changeSheet, &sheet );
331
332 break;
333 }
334 }
335 }
336 }
337
338 if( item )
339 break;
340 }
341
342 if( item )
343 {
344 m_afterItem = item;
345 m_afterItemScreen = m_frame->GetScreen();
346
347 if( !selectedOnly )
348 {
349 m_selectionTool->ClearSelection();
350 m_selectionTool->AddItemToSel( item );
351 }
352
353 if( !item->IsBrightened() )
354 {
355 // Clear any previous brightening
356 UpdateFind( aEvent );
357
358 // Brighten (and show) found object
359 item->SetForceVisible( true );
360 m_selectionTool->BrightenItem( item );
362 }
363
364 m_frame->FocusOnLocation( item->GetBoundingBox().GetCenter() );
365 m_frame->GetCanvas()->Refresh();
366
367 if( wrappedAround )
368 {
369 wxString msg;
370
371 if( m_frame->GetFrameType() == FRAME_SCH_SYMBOL_EDITOR )
372 msg = _( "Reached end of symbol." );
373 else if( searchAllSheets )
374 msg = _( "Reached end of schematic." );
375 else
376 msg = _( "Reached end of sheet." );
377
378 m_frame->ShowFindReplaceStatus( msg, 2000 );
379 }
380 }
381 else
382 {
383 m_afterItem = nullptr;
384 m_afterItemScreen = nullptr;
385 m_frame->ShowFindReplaceStatus( _( "No matches found." ), 2000 );
386 }
387
388 return 0;
389}
390
392{
393 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
394 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
395 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
396
397 return selectedOnly ? m_afterItem : m_selectionTool->GetSelection().Front();
398}
399
401{
402 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
403 EDA_ITEM* match = getCurrentMatch();
404 SCH_SHEET_PATH* sheetPath = nullptr;
405
406 if( m_frame->GetFrameType() == FRAME_SCH )
407 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
408
409 return match && match->Matches( data, sheetPath );
410}
411
412
414{
415 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
416 EDA_ITEM* item = getCurrentMatch();
417 SCH_SHEET_PATH* currentSheet = nullptr;
418
419 if( m_frame->GetFrameType() == FRAME_SCH )
420 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
421
422 if( data.findString.IsEmpty() )
423 return FindAndReplace( ACTIONS::find.MakeEvent() );
424
425 if( item && HasMatch() )
426 {
427 SCH_COMMIT commit( m_frame );
428 SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
429
430 commit.Modify( sch_item, m_frame->GetScreen(), RECURSE_MODE::NO_RECURSE );
431
432 if( item->Replace( data, currentSheet ) )
433 {
434 if( currentSheet )
435 currentSheet->UpdateAllScreenReferences();
436
437 commit.Push( wxS( "Find and Replace" ) );
438 }
439
440 FindNext( ACTIONS::findNext.MakeEvent() );
441 }
442
443 return 0;
444}
445
446
448{
449 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
450 SCH_SHEET_PATH* currentSheet = nullptr;
451 bool currentSheetOnly = true;
452 bool selectedOnly = false;
453
454 try
455 {
456 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
457
458 if( m_frame->GetFrameType() == FRAME_SCH )
459 {
460 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
461 currentSheetOnly = schSearchData.searchCurrentSheetOnly;
462 }
463
464 selectedOnly = schSearchData.searchSelectedOnly;
465 }
466 catch( const std::bad_cast& )
467 {
468 }
469
470 SCH_COMMIT commit( m_frame );
471
472 if( data.findString.IsEmpty() )
473 return FindAndReplace( ACTIONS::find.MakeEvent() );
474
475 auto doReplace =
476 [&]( SCH_ITEM* aItem, SCH_SHEET_PATH* aSheet, EDA_SEARCH_DATA& aData )
477 {
478 wxCHECK_RET( aSheet, wxT( "must have a sheetpath for undo" ) );
479
480 commit.Modify( aItem, aSheet->LastScreen(), RECURSE_MODE::NO_RECURSE );
481
482 if( aItem->Replace( aData, aSheet ) )
483 m_frame->UpdateItem( aItem, false, true );
484 };
485
486 if( currentSheetOnly || selectedOnly )
487 {
488 if( currentSheet )
489 {
490 SCH_ITEM* item = nextMatch( m_frame->GetScreen(), currentSheet, nullptr, data, false );
491
492 while( item )
493 {
494 if( !selectedOnly || item->IsSelected() )
495 doReplace( item, currentSheet, data );
496
497 item = nextMatch( m_frame->GetScreen(), currentSheet, item, data, false );
498 }
499 }
500 }
501 else if( SCH_EDIT_FRAME* schematicFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
502 {
503 SCH_SHEET_LIST allSheets = schematicFrame->Schematic().Hierarchy();
504 SCH_SCREENS screens( schematicFrame->Schematic().Root() );
505
506 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
507 {
508 SCH_SHEET_LIST sheets = allSheets.FindAllSheetsForScreen( screen );
509
510 for( unsigned ii = 0; ii < sheets.size(); ++ii )
511 {
512 SCH_ITEM* item = nextMatch( screen, &sheets[ii], nullptr, data, false );
513
514 while( item )
515 {
516 if( ii == 0 )
517 {
518 doReplace( item, &sheets[0], data );
519 }
520 else if( item->Type() == SCH_FIELD_T )
521 {
522 SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
523
524 // References must be handled for each distinct sheet
525 if( field->GetId() == FIELD_T::REFERENCE )
526 doReplace( field, &sheets[ii], data );
527 }
528
529 item = nextMatch( screen, &sheets[ii], item, data, false );
530 }
531 }
532 }
533 }
534
535 if( !commit.Empty() )
536 {
537 commit.Push( wxS( "Find and Replace All" ) );
538
539 if( currentSheet )
540 currentSheet->UpdateAllScreenReferences();
541 }
542
543 return 0;
544}
545
546
static TOOL_ACTION replaceAll
Definition actions.h:119
static TOOL_ACTION updateFind
Definition actions.h:120
static TOOL_ACTION findPrevious
Definition actions.h:116
static TOOL_ACTION findAndReplace
Definition actions.h:114
static TOOL_ACTION replaceAndFindNext
Definition actions.h:118
static TOOL_ACTION findNext
Definition actions.h:115
static TOOL_ACTION findNextMarker
Definition actions.h:117
static TOOL_ACTION find
Definition actions.h:113
constexpr const Vec GetCenter() const
Definition box2.h:226
bool Empty() const
Definition commit.h:134
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
Definition commit.h:102
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
virtual VECTOR2I GetPosition() const
Definition eda_item.h:282
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:135
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:108
void SetForceVisible(bool aEnable)
Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is se...
Definition eda_item.h:220
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:416
bool IsSelected() const
Definition eda_item.h:132
bool IsBrightened() const
Definition eda_item.h:134
bool IsForceVisible() const
Definition eda_item.h:221
static bool Replace(const EDA_SEARCH_DATA &aSearchData, wxString &aText)
Perform a text replace on aText using the find and replace criteria in aSearchData on items that supp...
Definition eda_item.cpp:261
static const TOOL_EVENT ClearedEvent
Definition actions.h:343
static const TOOL_EVENT SelectedEvent
Definition actions.h:341
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition actions.h:348
static const TOOL_EVENT PointSelectedEvent
Definition actions.h:340
static const TOOL_EVENT UnselectedEvent
Definition actions.h:342
void UpdateItems()
Iterate through the list of items that asked for updating and updates them.
Definition view.cpp:1569
Define a library symbol object.
Definition lib_symbol.h:79
static TOOL_ACTION changeSheet
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
Schematic editor (Eeschema) main window.
FIELD_T GetId() const
Definition sch_field.h:132
void setTransitions() override
< Set up handlers for various events.
int UpdateFind(const TOOL_EVENT &aEvent)
int FindNext(const TOOL_EVENT &aEvent)
SCH_ITEM * nextMatch(SCH_SCREEN *aScreen, SCH_SHEET_PATH *aSheet, SCH_ITEM *aAfter, EDA_SEARCH_DATA &aData, bool reverse)
Advance the search and returns the next matching item after aAfter.
int ReplaceAll(const TOOL_EVENT &aEvent)
int FindAndReplace(const TOOL_EVENT &aEvent)
int ReplaceAndFindNext(const TOOL_EVENT &aEvent)
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition sch_item.h:162
std::vector< SCH_FIELD > & GetFields()
Definition sch_label.h:210
Container class that holds multiple SCH_SCREEN objects in a hierarchy.
Definition sch_screen.h:746
SCH_SCREEN * GetNext()
SCH_SCREEN * GetFirst()
void BuildClientSheetPathList()
Build the list of sheet paths sharing a screen for each screen in use.
EE_RTREE & Items()
Get the full RTree, usually for iterating.
Definition sch_screen.h:115
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void SortByPageNumbers(bool aUpdateVirtualPageNums=true)
Sort the list of sheets by page number.
SCH_SHEET_LIST FindAllSheetsForScreen(const SCH_SCREEN *aScreen) const
Return a SCH_SHEET_LIST with a copy of all the SCH_SHEET_PATH using a particular screen.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
size_t GetCurrentHash() const
void UpdateAllScreenReferences() const
Update all the symbol references for this sheet path.
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Definition sch_sheet.h:44
std::vector< SCH_FIELD > & GetFields()
Return a reference to the vector holding the sheet's fields.
Definition sch_sheet.h:87
std::vector< SCH_SHEET_PIN * > & GetPins()
Definition sch_sheet.h:227
Schematic symbol object.
Definition sch_symbol.h:69
std::vector< const SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
SCH_SELECTION_TOOL * m_selectionTool
The symbol library editor main window.
KIGFX::VIEW * getView() const
Definition tool_base.cpp:34
Generic, UI-independent tool event.
Definition tool_event.h:167
bool Matches(const TOOL_EVENT &aEvent) const
Test whether two events match in terms of category & action or command.
Definition tool_event.h:388
bool IsAction(const TOOL_ACTION *aAction) const
Test if the event contains an action issued upon activation of the given TOOL_ACTION.
void Go(int(SCH_BASE_FRAME::*aStateFunc)(const TOOL_EVENT &), const TOOL_EVENT_LIST &aConditions=TOOL_EVENT(TC_ANY, TA_ANY))
#define _(s)
@ NO_RECURSE
Definition eda_item.h:50
@ FRAME_SCH_SYMBOL_EDITOR
Definition frame_type.h:31
@ FRAME_SCH
Definition frame_type.h:30
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
@ REFERENCE
Field Reference of part, i.e. "IC21".
KIBIS_PIN * pin
@ SCH_SYMBOL_T
Definition typeinfo.h:169
@ SCH_FIELD_T
Definition typeinfo.h:147
@ SCH_SHEET_T
Definition typeinfo.h:172
@ SCH_MARKER_T
Definition typeinfo.h:155