Skip to content

Commit

Permalink
CodeGenInterface.m: Sort various items in interface.ccl
Browse files Browse the repository at this point in the history
This should make the generated code less sensitive to internal restructuring in Kranc.
  • Loading branch information
ianhinder committed Sep 13, 2013
1 parent 3e8deef commit e03b75b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tools/CodeGen/CodeGenInterface.m
Expand Up @@ -113,18 +113,17 @@
groups_, opts___] :=
{FileHeader["CCL"],
"implements: ", implementation, "\n\n",
"inherits: ", SpaceSeparated[inheritedImplementations], "\n\n",
"inherits: ", SpaceSeparated[Sort[inheritedImplementations]], "\n\n",
If[mapContains[{opts}, Friends],
{"friend: ", SpaceSeparated[lookup[{opts}, Friends]]},{}],
{"friend: ", SpaceSeparated[Sort[lookup[{opts}, Friends]]]},{}],
"\n\n",
Map[{"USES INCLUDE: ", #, "\n"} &, includeFiles],
Map[{"USES INCLUDE: ", #, "\n"} &, Sort[includeFiles]],
"\n",

Map[usesFunction, lookupDefault[{opts}, UsesFunctions, {}]],

Map[providesFunction, lookupDefault[{opts}, ProvidesFunctions, {}]],


NewlineSeparated[Map[FlattenBlock[interfaceGroupBlock[#]] &, groups]]};

End[];
Expand Down

0 comments on commit e03b75b

Please sign in to comment.