Loading ...
Sorry, an error occurred while loading the content.

Re: Macro problem

Expand Messages
  • David
    Modify the file src/misc/macros.cxx as follows to restore the post EXEC macro text expansion: // remove all trailing end-of-lines while
    Message 1 of 12 , Dec 2, 2012
    • 0 Attachment
      Modify the file src/misc/macros.cxx as follows to restore the post EXEC macro text expansion:

      // remove all trailing end-of-lines
      while (lnbuff[lnbuff.length()-1] == '\n')
      lnbuff.erase(lnbuff.length()-1,1);

      if (!lnbuff.empty()) {
      // NEW LINE
      lnbuff = m.expandMacro(lnbuff, false);
      s.insert(i, lnbuff);
      i += lnbuff.length();
      } else
      i++;

      fclose(fp);
      close(pfd[0]);

      73, Dave, W1HKJ
    • tidalwaters
      Dave, thanks, now things are starting to make sense. Do you expect this will be included in future releases or remain a user mod? Mac wa4caw
      Message 2 of 12 , Dec 3, 2012
      • 0 Attachment
        Dave, thanks, now things are starting to make sense. Do you expect this will be included in future releases or remain a user mod?

        Mac
        wa4caw


        --- In linuxham@yahoogroups.com, "David" <w1hkj@...> wrote:
        >
        > Modify the file src/misc/macros.cxx as follows to restore the post EXEC macro text expansion:
        >
        > // remove all trailing end-of-lines
        > while (lnbuff[lnbuff.length()-1] == '\n')
        > lnbuff.erase(lnbuff.length()-1,1);
        >
        > if (!lnbuff.empty()) {
        > // NEW LINE
        > lnbuff = m.expandMacro(lnbuff, false);
        > s.insert(i, lnbuff);
        > i += lnbuff.length();
        > } else
        > i++;
        >
        > fclose(fp);
        > close(pfd[0]);
        >
        > 73, Dave, W1HKJ
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.