[gen] Fixed generation of sources to contain Embeddinator tool name.
This commit is contained in:
Родитель
34cda0b8ac
Коммит
aaeed0061e
|
@ -30,26 +30,9 @@ namespace MonoEmbeddinator4000.Generators
|
|||
WriteInclude("mono_embeddinator.h");
|
||||
}
|
||||
|
||||
public override void GenerateFilePreamble(CommentKind kind)
|
||||
{
|
||||
var lines = new System.Collections.Generic.List<string>
|
||||
{
|
||||
"----------------------------------------------------------------------------",
|
||||
"<auto-generated>",
|
||||
"This is autogenerated code by the Embeddinator C generator.",
|
||||
"Do not edit this file or all your changes will be lost after re-generation.",
|
||||
"</auto-generated>",
|
||||
"----------------------------------------------------------------------------"
|
||||
};
|
||||
|
||||
PushBlock(CppSharp.BlockKind.Header);
|
||||
GenerateMultiLineComment(lines, kind);
|
||||
PopBlock();
|
||||
}
|
||||
|
||||
public override void Process()
|
||||
{
|
||||
GenerateFilePreamble(CommentKind.BCPL);
|
||||
GenerateFilePreamble(CommentKind.BCPL, "Embeddinator-4000");
|
||||
|
||||
PushBlock();
|
||||
WriteHeaders();
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace MonoEmbeddinator4000.Generators
|
|||
{
|
||||
RemoveTypedefNodes();
|
||||
|
||||
GenerateFilePreamble(CommentKind.BCPL);
|
||||
GenerateFilePreamble(CommentKind.BCPL, "Embeddinator-4000");
|
||||
|
||||
PushBlock();
|
||||
WriteHeaders();
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace MonoEmbeddinator4000.Generators
|
|||
|
||||
public override void Process()
|
||||
{
|
||||
GenerateFilePreamble(CommentKind.JavaDoc);
|
||||
GenerateFilePreamble(CommentKind.JavaDoc, "Embeddinator-4000");
|
||||
|
||||
GenerateJavaPackage(TranslationUnit);
|
||||
GenerateJavaImports();
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace MonoEmbeddinator4000.Generators
|
|||
|
||||
public override void Process()
|
||||
{
|
||||
GenerateFilePreamble(CommentKind.JavaDoc);
|
||||
GenerateFilePreamble(CommentKind.JavaDoc, "Embeddinator-4000");
|
||||
|
||||
GenerateJavaPackage(Declaration);
|
||||
GenerateJavaImports();
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a8027694acfb00aeb4befbef2e35eb4c69bb8b90
|
||||
Subproject commit 2af96cd75d5bfe18852df47569e16760b7731890
|
Загрузка…
Ссылка в новой задаче