eranif wrote:What do you mean by "complex" definitions?jfouche wrote: need to improve it in order ta manage complexe #ifxxx definitions.
Code: Select all
#if defined(BAR)
//
#endif
#if defined(__WXMSW__) && defined(__X__)
//
#endif
eranif wrote:What do you mean by "complex" definitions?jfouche wrote: need to improve it in order ta manage complexe #ifxxx definitions.
Code: Select all
#if defined(BAR)
//
#endif
#if defined(__WXMSW__) && defined(__X__)
//
#endif
I understand what you mean, but I don't know how to achieve it. I didn't fond a way to know if the given editor is still alive. A clue would be helpfulleranif wrote:- Once the parse is done, an event is sent back to the editor (the requested file name is sent back with teh event to make sure that the calling editor is still opened)
- If the requesting editor is "still alive" the macros are then "feed" into scintilla
Code: Select all
LEditor *MainBook::FindEditor(const wxString &fileName);
this table contains only macros which are 'function like'jfouche wrote: (question : what about the existing MACRO table ? Can we merge it ?)
Nothing.jfouche wrote: Call it also when the user entered ... what
I know about this. I was talking about the use (not the definition) of a macro :eranif wrote:Note that if you add new macro the current file, it will be pre-processed by scintilla automatically. Scintilla only needs of macros which are defined elsewhere and not in the current file.
Code: Select all
...
#ifdef FOO|