>
> Hi,
>
> It would seem not - not for Internet Explorer, anyway. This line of code:
>
> 'if((PhaseIdentifier >= PHASE_A_ID) && (PhaseIdentifier <= PHASE_C_ID))'
>
> causes the problem. It produces
>
> <Snip from Explorer>
>
> blah blah
> .
> ********************************************************************************
> * Copyright 1999, ABB Metering Systems Limited, Stone, Staffordshire, England *
> *******************************************************************************/
> /*
> = PHASE_A_ID)<+the remainder of code in the module (cannot show the code, for
> obvious reasons)>
>
> <Snip>
>
> There is a "/*</pre><!-- CODE STARTS HERE*/" is placed following the copyright
> message.
> I would that thought that Explorer was looking for the "->" token, too, but it
> seems it is more lax than that. I haven't tried it in any other browsers as it
> is corporate policy to use IE.
> I tried the </BODY> marker in several places, hoping that it would force IE to
> ignore subsequent information, but that doesnt appear to work.
>
> I'll have to have another bash at it when I get time as it is a really good idea
> to do things this way. If you have any suggestions, they would be greatly
> appreciated.
>
> Regards,
>
> Dan
>
> |------------->
> |(Embedded |
> |image moved |
> |to file: |
> |pic03657.pcx)|
> | |
> |------------->
> >------------------------------------------------------------------------|
> |"M. Adam Davis" <
spamBeGoneadavis
@spam@UBASICS.COM> |
> |05/06/2000 20:09 |
> >------------------------------------------------------------------------|
>
> Please respond to pic microcontroller discussion list <
RemoveMEPICLISTspam_OUT
MITVMA.MIT.EDU>
>
> To:
PICLISTspam
MITVMA.MIT.EDU
> cc: (bcc: Dan Lloyd/GBPTD/ABB)
> Subject: Re: [OT]: - Firmware Maintenance Templates/Procedures
>
> Security Level:? Internal
>
> hmm... As long as you don't have a '->' in the code, it shouldn't end the html
> comment tag '<!- ..... ->'
>
> -Adam
>
> D Lloyd wrote:
> >
> > Hi
> >
> > I did something along the lines of this but certain variable names, followed
> by
> > '>' (such as in tests), were interpreted as html control codes.
> > I didn't really want to be putting control codes all over the place but I'll
> > endeavour to get this working!
> >
> > Regards,
> > Dan
> >
> > |------------->
> > |(Embedded |
> > |image moved |
> > |to file: |
> > |pic12499.pcx)|
> > | |
> > |------------->
> > >------------------------------------------------------------------------|
> > |"M. Adam Davis" <
spam_OUTadavisspam_OUT
spam_OUTUBASICS.COM> |
> > |02/06/2000 13:45 |
> > >------------------------------------------------------------------------|
> >
> > Please respond to pic microcontroller discussion list <
PICLISTspam_OUT
MITVMA.MIT.EDU>
> >
> > To:
RemoveMEPICLISTKILLspam
@spam@MITVMA.MIT.EDU
> > cc: (bcc: Dan Lloyd/GBPTD/ABB)
> > Subject: Re: [OT]: - Firmware Maintenance Templates/Procedures
> >
> > Security Level:? Internal
> >
> > Just do
> >
> > /* <HTML><BODY><TITLE>This Darn C Program</TITLE><pre>
> > Program
> > Creator
> > Date
> > ... (no HTML code needed to format this area, it appears as
> > it is written in the browser, and is less cluttered for
> > the programmer to deal with)
> > ...
> > </pre><!-
> > */
> >
> > void main(void)
> > {
> > ...
> > w=0xff; // -><p>This line needs a special comment in the docs</p><!-
> > }
> >
> > /*
> > <p>This program does nothing, and is useless</p>
> > <p>Blah, blah blah</>
> > ...
> > </BODY></HTML>
> > */
> >
> > Since there is no 'end' directive to tell the compiler to stop looking, you
> have
> > to put all the HTML in comments.
> >
> > Unfortunately, my mailer may get rid of the HTML tags before it is sent. If
> you
> > don't see anything usefull above, go to
http://www.ubasics.com/adam/pic/doc/
> and
> > look for cfile.htm. You'll need to add a new C language, as well.
> >
> > -Adam
> >
> > D Lloyd wrote:
> > >
> > > Hi,
> > >
> > > This is a *nice* idea - thanks. Fits in nicely with our philosophy of
> > > "intranet-ising" everything.
> > > I'll have a bash at this with some of our *.c files (asm? what's that?
> > <grin>);
> > > have to see if I can frig the compiler to ignore the html.
> > >
> > > Dan
> > >
> > > |------------->
> > > |(Embedded |
> > > |image moved |
> > > |to file: |
> > > |pic20839.pcx)|
> > > | |
> > > |------------->
> > > >------------------------------------------------------------------------|
> > > |"M. Adam Davis" <
adavisspamBeGone
.....UBASICS.COM> |
> > > |01/06/2000 21:03 |
> > > >------------------------------------------------------------------------|
> > >
> > > Please respond to pic microcontroller discussion list
> <
KILLspamPICLIST
.....MITVMA.MIT.EDU>
> > >
> > > To:
spam_OUTPICLIST
KILLspamMITVMA.MIT.EDU
> > > cc: (bcc: Dan Lloyd/GBPTD/ABB)
> > > Subject: Re: [OT]: - Firmware Maintenance Templates/Procedures
> > >
> > > Security Level:? Internal
> > >
> > > Hmm... It appears as though my attachment didn't go through...
> > >
> > > Go to
http://www.ubasics.com/adam/pic/doc to see the files
> > > asmfile.htm The html formatted assembly file
> > > TLMCHIP.INI The modified language suite file for mchip
> > > (use it to replace tlmchip.ini)
> > > MPASMhtm.MTC The modified MPASM.MTC file
> > > (use it in addition with mpasm.mtc)
> > >
> > > After copying the language files to your mplab directory, choose 'install
> > > language tools' from the project menu. Under the microchip lanuage tools,
> > there
> > > will ba an additional language, "MPASM(*.htm)". Select that, and put in the
> > > path to your mpasmwin.exe file.
> > >
> > > -Adam
> > >
> > > "M. Adam Davis" wrote:
> > > >
> > > > Along those lines, here is an assembly file marked up with enough HTML to
> > > > display properly in a browser... (Small attachment! Don't shoot me!)
> > > >
> > > > It is an htm file so that I can simply click on it and see the document.
> > > MPLAB
> > > > does care what extension a file has so I provided an extra language tool
> > file
> > > > and modified microchip's language tool suite file to accept htm files.
> > > > (mpasm.mtc --> mpasmhtm.mtc with some modification and modified
> > TLMCHIP.INI).
> > > I
> > > > then installed my new language tool "MPASM(*.htm)" and now I can include
> htm
> > > > files as nodes in a project and assemble them under mplab.
> > > >
> > > > -Adam
> > > >
> > > > "Get the facts first, you can distort them later" - Mark Twain
> > > >
> > > > Mark Willis wrote:
> > > > >
> > > > > (Fixed the subject line, needed a colon after [OT].)
> > > > >
> > > > > One thing I've seen that I mostly liked, in past, was in aviation safety
> > > > > systems - the documentation was installed inside the source (.asm)
> > > > > files.
> > > > >
> > > > > IMO this is a good idea - This way the programmers could actually get at
> > > > > & see the docs, and were in fact in charge of the documentation's upkeep
> > > > > and maintenance (gasp!) - SO often, it's marketing or someone who knows
> > > > > nothing about the code, who writes the manual etc., months later, with
> > > > > no clue - And it ends up resembling the code's behavior SO little, that
> > > > > it's rather pathetic.
> > > > >
> > > > > They had a tool that'd extract the docs into a file that the
> > > > > documentation people were allowed to get at, then had a nice tool that
> > > > > re-formatted that text file into a properly formatted document.
> > > > > Nowadays, HTML comes to mind <G> Probably could treat it as a separate
> > > > > "source code" file, and not include it directly into the code. And the
> > > > > extract document "compiled" (checked syntax) as a matter of course so
> > > > > you couldn't "oops" without noticing, well, not too badly anyways.
> > > > >
> > > > > And of course you could verify that you didn't mess up the code when the
> > > > > docs were changed (compare the previous .obj files with current freshly
> > > > > compiled version, should be identical) - twas on a Z80/80186 dual
> > > > > processor machine.
> > > > >
> > > > > You already know about concepts like bug report filing, bug
> > > > > verification, change control boards, regression testing, and so on, I'll
> > > > > assume, if you've seen what NASA has to offer. (IMO some co's go way
> > > > > overboard on paranoia on "If we fix a bug it'll just make 15 new bugs.",
> > > > > I always feel my competence is being insulted, frankly. Now, "If we let
> > > > > management make decisions, it'll just encourage them", that definitely
> > > > > has truth to it, for some values of management <G>) Treat it like any
> > > > > other system, look for gaping holes, and design something that's able to
> > > > > cope with your organizations needs.
> > > > >
> > > > > Mark
> > > > >
> > > > > D Lloyd wrote:
> > > > > > Hi PICsters,
> > > > > >
> > > > > > As we all know that documentation of code is very important and that
> we
> > > all
> > > > > > *religiously* follow our procedures <cough, cough>, does anyone know
> of
> > > any good
> > > > > > templates regarding maintenance as opposed to development?
> > > > > >
> > > > > > Such templates would ideally relate to change control procedures, bug
> > > > > > maintenance etc. I went through the same exercise of obtaining such
> > > information
> > > > > > for development but procedures used by the likes of NASA are a bit
> > > overkill for
> > > > > > general embedded systems, so cut down information would be more
> > > beneficial.
> > > > > >
> > > > > > Any help/useful pointers would be appreciated.
> > > > > >
> > > > > > Kind Regards,
> > > > > > Dan Lloyd
> > > > > >
> > > > > > Firmware Engineer, Electronic Operations
> > > > > > ABB Metering. England.
> > > > >
> > > > > --
> > > > > I re-ship for small US & overseas businesses, world-wide.
> > > > > (For private individuals at cost; ask.)
> > >
> > >
> >
> --------------------------------------------------------------------------------
> > > Name: pic20839.pcx
> > > pic20839.pcx Type: PCX Image
> > (application/x-unknown-content-type-pcxfile)
> > > Encoding: base64
> >
> >
> --------------------------------------------------------------------------------
> > Name: pic12499.pcx
> > pic12499.pcx Type: application/x-unknown-content-type-pcxfile
> > Encoding: base64
>
> --------------------------------------------------------------------------------
> Name: pic03657.pcx
> pic03657.pcx Type: application/x-unknown-content-type-pcxfile
> Encoding: base64