Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 418
    • Issues 418
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !249

Convert FREEdo and TRAVdo to FREEopt and TRAVopt

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jordy Aaldering requested to merge convert-do-to-opt into develop Nov 21, 2023
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 142

Used regular expressions to convert do to opt whenever possible.

For example,

if\s*\(\s*(.*)\s*!= NULL\) \{\s*\n(\s*)(?:\1\n?\s*= )?FREEdoFreeTree\s*\(\s*\1\);\n\s*\}

to

$1 = FREEoptFreeTree ($1);

And similarly for FREEdoFreeNode and TRAVdo, and for slight variations.

Thanks to Michiel for providing this regex.

Edited Nov 21, 2023 by Jordy Aaldering
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: convert-do-to-opt