decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
The documentation can be treated as a separable component of the source code | 687 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
The documentation can be treated as a separable component of the source code
Authored by: Anonymous on Friday, April 27 2012 @ 10:52 PM EDT
You are NOT a Java programmer, and I doubt a programmer at all.

Thus, I do believe you are ill equipped to discern whether or not JavaDoc output
is exactly like the header files seen in other languages such as C or C++.

Furthermore, I believe it is moronic of you to apply such an analogy in this
instance -- It proves that you totally disregard your own ignorance of the
situation, yet proceed to make statements about it...

Moron n. A stupid person; a dolt.

It's a STUPID analogy you Dolt! Ergo, moronic.

[ Reply to This | Parent | # ]

The documentation can be treated as a separable component of the source code
Authored by: Anonymous on Friday, April 27 2012 @ 11:25 PM EDT
I am the anonymous you're talking about.

Here is an except from one of my C header files: core/buffer.c

/***************************************************************************//**


@struct Buffer_F

Buffer Forms encapsulate a series of bytes in memory and provide actions to
manipulate the data. The capacity of a Buffer's data may be fixed, or allowed
to grow as needed.

*******************************************************************************/


struct Buffer_F
{
/// Extends the base Entity Form.
Entity_F base;

//--------------------------------------------------------------------------
/// Read one byte at the marker, and advance the marker by one byte. If a
/// byte is requested beyond the limit it will not be read.
///
/// @return 1 if a byte was read, -1 on error, or 0 if the marker is
/// beyond the limit.
///
cs_sint32
(*/***************************************************************************//
**

@struct Buffer_F

Buffer Forms encapsulate a series of bytes in memory and provide actions to
manipulate the data. The capacity of a buffer's data may be fixed, or allowed
to grow as needed.

*******************************************************************************/


struct Buffer_F
{
/// Extends the base Entity Form.
Entity_F base;

//--------------------------------------------------------------------------
/// Read one byte at the marker, and advance the marker by one byte. If a
/// byte is requested beyond the limit it will not be read.
///
/// @return 1 if a byte was read, -1 on error, or 0 if the marker is
/// beyond the limit.
///
cs_sint32 (*getByte)
(
/// Buffer Entity to read from.
void *const buffer,

/// Location to store the byte value.
cs_uint8 *const byte
);


/// Location to store the byte value.
cs_uint8 *const byte
);

The header file is marked up with JavaDoc style comments.

The resulting Javadoc output contains ALL of the data in my header file in a
different form (HTML, PDF or Latex), though I use Doxygen as an alternative to
Javadoc.

I can run Javadoc across my C header files (with small modification to make them
more Javalike, and paste the .c file into the .h file), and Javadoc will
extcract ONLY the data that is nomally my header files, nothing of the source
implementation files will be present. I know this for a FACT, because I often
use different variable names in the implementation files, and Doxygen didn't
always exist, so I actually used Javadoc to produce the API documentation for my
C programs.

For instance, the .HTML documentation (API) will contain the "buffer"
and "byte" names in method signature form the .h header:
(*getByte)( void *const buffer, cs_uint8 *const byte);

The signature must be restated in the C implementation code, but the variable
names may be different, since in C the parameter names are ignored (and are
optional) in a .H forward declaration.

In the .C implementation code I actually use this signature:
F_Buffer_getByte( void *const buf, cs_uint8 *const dat ){
...
}

The function is statically assigned to a the Buffer Entity's member function
pointer. (Entity is my version of an object -- Yes, Object Oriented C code)

The terms "buf" and "dat" never appear in the Javadoc or
Doxygen output... This is because Javadoc extracts ONLY what would otherwise be
in a HEADER FILE.

You CLEARLY don't have ANY idea about what you're talking.

You may continue to blab about things you're woefully uneducated about, and
present yourself as knowledgeable, but don't expect others not to call such
behavior what it is... moronic.

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )