Menu

#14 abc2xml configured to parse single file failes on include statement

Moritz_2_0_1
wont-fix
None
5
2020-12-28
2020-12-23
No

Hi Eckard,

while testing the possibility to configure abc2xml to parse a single file with

 <Source>
  <!-- to use a specific xml-file 
  <FileName   value="anxSource.c"        root="SourcePath" doNotSkip="No"/> -->
</Source>

I noticed that the first

#include "anyHeaderh"

forces abc2xml to break
BR
Wasili

Discussion

  • Eckard Klotz

    Eckard Klotz - 2020-12-23

    Hello Wasili.

    I added in one of my demo files which are called as single files also your include-line as first line.

    The parser abc2xml had no problem with it and the associated content of the produced file
    is this:

    <preprocedure l="1" c="1">
    <p_include l="1" c="1">
    <keychr l="1" c="1">#</keychr>
    <keyword l="1" c="2">include</keyword>
    <p_text l="1" c="10">"anyHeaderh" </p_text>
    </p_include>
    </preprocedure>

    You wrote:

    I noticed that the first ...

    Could it be that I have misunderstood you?

    • Please provide an example that contains a source-file as well as the configuration file you use to mention the source to be analysed as a single file.

    Mary Christmas, a happy new year and stay healthy,
    Eckard.

     

    Last edit: Eckard Klotz 2020-12-23
  • Eckard Klotz

    Eckard Klotz - 2020-12-24
    • status: open --> pending
     
  • Wasilios Goutas

    Wasilios Goutas - 2020-12-28

    Hello Eckard,

    on my system is a mixture of Moritz binaries from June 2020 and configuration files from the SVN repository from November I think. Maybe the behavior on my system is caused by this.
    If on your system it is working as expected than its fine. I don't need this functionality by now.
    BR
    Wasili

     
  • Eckard Klotz

    Eckard Klotz - 2020-12-28

    Hello Wasili.

    I assume that the source you have faced effect contains an additional problem that actually results in your issue.

    • This may be a special comment or a declaration directly behind the include line.
    • Furthermore I assume that "anyHeaderh" is not what you really use in your case.

    However, as long as you are not able to provide me more information I could not evaluate and fix your issue.

    Please reopen this bug-discussion once you face the issue again and are able to provide more details ideally with an example.

    I wish you a happy new year.

    Stay healthy,
    Eckard.

     
  • Eckard Klotz

    Eckard Klotz - 2020-12-28
    • status: pending --> wont-fix
     

Log in to post a comment.