Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 400
    • Issues 400
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Wiki
  • Tutorials
  • adding a traversal

adding a traversal · Changes

Page history
Fix cast of MEMalloc in MakeInfo function of example traversal in adding-a-traversal.md. authored Apr 24, 2025 by Quinten Cabo's avatar Quinten Cabo
Hide whitespace changes
Inline Side-by-side
tutorials/adding-a-traversal.md
View page @ a89ee81a
......@@ -271,7 +271,7 @@ MakeInfo ()
DBUG_ENTER ();
result = MEMmalloc (sizeof (info));
result = (info *)MEMmalloc (sizeof (info));
INFO_FOO (result) = NULL;
......@@ -308,6 +308,7 @@ TEMPdoTemplateTraversal (node *syntax_tree)
info *info;
DBUG_ENTER ();
DBUG_ASSERT (NODE_TYPE (arg_node) == N_module, "called with non-module node");
info = MakeInfo ();
......@@ -329,14 +330,13 @@ TEMPdoTemplateTraversal (node *syntax_tree)
*********************************************************/
/**
* @brief Traverses only the fundef chain and leaves out special thread
* @brief Traverses only the fundef chain
**/
node *
TEMPmodule (node *arg_node, info *arg_info)
{
DBUG_ENTER ();
DBUG_ASSERT (NODE_TYPE (arg_node) == N_module, "called with non-module node");
MODULE_FUNS (arg_node) = TRAVopt (MODULE_FUNS (arg_node), arg_info);
DBUG_RETURN (arg_node);
......
Clone repository
  • Styleguide
  • concepts
    • Deprecated Modules
    • Globals
    • Intermediate Code Macros
    • Named Tuples
    • Overloading
    • Preprocessor
    • Primitive functions
    • Runtime Representations
    • input stdin
    • phm xt
    • ref counting methods
    • type famlies
    • type patterns
  • error messages
    • Anthropomorphic error essages
View All Pages