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

Remove Perl dependency of METAQUOTE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Charmonizer
    • 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. bye_bye_metaquote.diff
          7 kB
          Marvin Humphrey
        2. charm_and_harm_to_c_and_h.diff
          3 kB
          Marvin Humphrey
        3. quote.diff
          27 kB
          Marvin Humphrey

        Activity

          People

            marvin Marvin Humphrey
            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