02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

The first line in a library source file is a one-line title in the following format:<br />

sourceFileName - simple description<br />

That is, the line begins (after whatever start-of-comment character is required) with the<br />

name of the file containing it, separated by a space, a hyphen, and another space from a<br />

simple description of the library.<br />

The first line in a routine’s description (after the source-language-dependent routine<br />

delimiter) is a one-line title in the same format.<br />

Routine descriptions are taken to begin after the routine-title line, whether or not a<br />

DESCRIPTION tag is present explicitly.<br />

Section headings are specified by all-caps strings beginning at a newline and ending with<br />

either a newline or a colon.<br />

Italics, notably including text variables—that is, words in the documentation that are not<br />

typed literally, but are instead meant to be replaced by some value specific to each<br />

instance of use—-are marked in the source by paired angle brackets. Thus, to produce the<br />

output textVar, type .<br />

Boldface words are obtained as follows: General mechanism: surround a word with<br />

single quotes in the source. For example, ‘sysIntIdtType’ produces sysIntIdtType. Special<br />

words: words ending in “Lib” or in a recognized filename suffix are automatically<br />

rendered in bold. For example, fileName.c, object.o, and myStuff.tcl all appear in<br />

boldface.<br />

Simple lists can be constructed by indenting lines in the source from the margin (or from<br />

the comment-continuation character, if one is required in a particular source language).<br />

For example:<br />

line one<br />

line two<br />

Overall Output Conventions<br />

Library descriptions are automatically prefaced by a synopsis of the routines in that<br />

library, constructed from the title lines of all routines.<br />

For some input languages, a SYNOPSIS section is supplied automatically for each routine<br />

as well, extracted from the routine definition in a language-dependent manner specified<br />

in the input meta-syntax tables. Input languages that do not support this have empty<br />

strings for $SYNTAX(declDelim); in such languages, the SYNOPSIS section must be<br />

explicitly present as part of the subroutine comments. For example, both Assembly and<br />

Tcl require an explicit SYNOPSIS section following the DESCRIPTION. The following<br />

example shows the correct markup for Assembly:<br />

416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!