Uploaded image for project: 'Lucy'
  1. Lucy
  2. LUCY-71

Remove Perl dependency of METAQUOTE

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Charmonizer
    • Labels:
      None

      Description

      Charmonizer currently uses a Perl script 'METAQUOTE' to preprocess its '.charm' files into '.c' files and '.harm' files into '.h' files. This works, but requires a dependency on Perl that seems inappropriate for a C language tool.

      The suggested alternatives were to use manual quoting or standard macros.

      Manual quoting seemed error prone and cumbersome, so this patch proposes the using the 'stringify' (#expr) function within standard C preprocessor macros.

        Attachments

        1. charm_and_harm_to_c_and_h.diff
          3 kB
          Marvin Humphrey
        2. quote.diff
          27 kB
          Marvin Humphrey
        3. bye_bye_metaquote.diff
          7 kB
          Marvin Humphrey

          Activity

            People

            • Assignee:
              marvin Marvin Humphrey
              Reporter:
              nkurz Nathan Kurz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified