<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Here is a list of sed scripts that I used to tidy up my code for IDLDoc 3.0.<div><br class="webkit-block-placeholder"></div><div>As noted in ticket #25 on <a href="http://idldoc.idldev.com">http://idldoc.idldev.com</a> some of these won't be bulletproof, but they may help. I suggest doing a diff between new and old to confirm that it worked on your code base, if you decide to use them. I got rid of about 750 warnings with them, so I hope they can be of help.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># in every *.pro file find lines with @file_comments and replace just that text with nothing</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># Note this isn't a problem anymore, but you still may wish to remove them as they aren't needed at the file level.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># This will be dangerous if you have @file_comments at the routine level!!!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> find . -type f -name '*.pro' -exec sed -i 's/@file_comments//g' {} \;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># in every *.pro file find lines with @inherits and delete them</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># as noted in ticket #25 it only works if all related info is on the same line</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">find . -type f -name '*.pro' -exec sed -i '/@inherits/ D' {} \;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">## The next set is to remove whitespace between ;- and pro of function definitions. </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "># This could also pull file comments up close in some cases so be sure this will work for you.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># remove all trailing whitespace to ensure next matching will work.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">find . -type f -name '*.pro' -exec sed -i 's/[ \t]*$//' {} \;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># find blank line between ;- and pro/PRO IDL definition and remove it</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># NOTE: i makes it case insensitive</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># NOTE: this needs to be multiline. With N it seems you need a newline after it to work, </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># though someone may know other ways to do this.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "># You can do something similar for functions, and add in extra 'N' and '\n' to catch two blank lines, etc.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">find . -type f -name '*.pro' -exec sed -i '</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> /;-/ {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> N</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> N</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> s/;-\n\npro/;-\npro/i</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">}' {} \;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div></div><div><div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Joe Hood, MSc, BEng, CD </span></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><br style="font-family: Arial; font-size: 13.3px; "></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">President / Chief Technical Officer</span></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><br style="font-family: Arial; font-size: 13.3px; "></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Akoostix Inc.</span></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><br style="font-family: Arial; font-size: 13.3px; "></span></font><a href="mailto:jhood@akoostix.com"><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; color: rgb(0, 0, 238); font-family: Arial; -khtml-text-decorations-in-effect: underline; "><font class="Apple-style-span" color="#0020F6"><span class="Apple-style-span" style="color: rgb(0, 32, 246); font-family: Arial; font-size: 13.3px; -khtml-text-decorations-in-effect: underline; ">jhood@akoostix.com</span></font></span></font></a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Phone: (902) 404-7464</span></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><br style="font-family: Arial; font-size: 13.3px; "></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Cell: (902) 223-9876</span></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><br style="font-family: Arial; font-size: 13.3px; "></span></font><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Fax: (902) 405-3855</span></span></font></div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div></div><br class="Apple-interchange-newline"></span> </div><br></div></div></body></html>