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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • 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
  • Email patches
  • Plain diff
Merged Jordy Aaldering requested to merge convert-do-to-opt into develop Nov 21, 2023
  • Overview 2
  • Commits 4
  • 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
Reviewer
Request review from
Time tracking
Source branch: convert-do-to-opt