#47 Enum translation

closed
nobody
5
2006-01-11
2006-01-04
Anonymous
No

The translation of enumerations is been done
incorrectly. See the example:

In Object Pascal

{* Types of messages scan should emit }
TMsgScan = (
MSG_ERROR = 1, {*< An error was found during scan }
MSG_INFO = 2, {*< Information about the process }
MSG_DIRECTORY = 3 {*< Scan entered a directory }
);

And in the resultant CPP

/** Types of messages scan should emit */
enum TMsgScan
{
=/**< An error was found during scan */ =/**<
Information about the process */ =/**< Scan entered a
directory */ MSG_ERROR,
1,
MSG_INFO,
2,
MSG_DIRECTORY,
3
};

Another example, that without assigned values

{* Returns that the callback have to give }
TMsgScanRetorno = (
RET_OK, {*< Scan should continue }
RET_CANCEL {*< Scan should shutdown imediately }
);

In CPP it comes to

/** Returns that the callback have to give */
enum TMsgScanRetorno2
{
/**< Scan should continue */ /**< Scan should
shutdown imediately */ RET_OK,
RET_CANCEL
};

Ronaldo Capaverde
capaverde@3ia.com.br

Discussion

  • Darren Bowles

    Darren Bowles - 2006-01-11

    Logged In: YES
    user_id=73730

    I have just checked in a new version of pas2dox.l to CVS.
    Have a go with that and let me know how you get on.

    PS. I now have a bugzilla server at bugzilla.pas2dox.org

     
  • Darren Bowles

    Darren Bowles - 2006-01-11
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks