Including Processes

[posted 2001/11/16]

Finally, I was seeing an obscure error in the auto-generation of macros/files_pikt_log_macros.cfg involving including processes.  This preprocessor directive

#include <macros/files_pikt_log_macros.cfg> [/pikt/bin/pikts <
  /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next};
  /^[A-Z]/ {print " "; next}; {print $1 " " $2}']

was producing a files_pikt_log_macros.cfg with duplicate entries.  The "solution" was to not update that file but rather to just get live update from the

    /pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg |
      awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'

command each time piktc is run.  I did this by leaving out the "<macros/files_pikt_log_macros.cfg>" part (and commenting out the older, broken version for future reference):

#include [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg |
  awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}']
//#include <macros/files_pikt_log_macros.cfg> [/pikt/bin/pikts <
    /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next};
    /^[A-Z]/ {print " "; next}; {print $1 " " $2}']

I think I know what's going on here, but it will take some deep debugging to solve.

For more examples, see Developer's Notes.


 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
kill idle
user sessions
Pikt script