Menu

mcpp - newline V2.6.4

andym
2007-11-13
2013-05-28
  • andym

    andym - 2007-11-13

    Hi,

    I was looking for a preprocessor that I could build into something else that I have been working on and mcpp looks good. However one thing I have noticed is that if there is a missing newline at the end of the C file although mccp reports that it is adding a newline then this is not done and the last line is missed out of the output.

    eg

    a c file "a.c" containing

    int a;<end of file>

    becomes

    #line 1 "a.c"

    instead of the expected

    #line 1 "a.c"
    int a;

    is this a bug or am I missing something, I'm compiling using visual studio on windows but the precompiled version does exactly the same, I have not looked through the code in detail to see what is going on yet.

    Best regards

    Andy M

     
    • Kiyoshi Matsui

      Kiyoshi Matsui - 2007-11-14

      This is a bug of MCPP from V.2.6.2 through V.2.6.4.  This has been fixed
      in the current V.2.7-prerelease in SVN repository.  I don't publish a
      patch for V.2.6.* because it is large sized for its small utility.
      Please check out the SVN trunk or wait for the release of V.2.7 which
      will be at the beginning of December.

       

Log in to post a comment.