Re: JavaXPCOM: How to handle unsigned 8-bit values?

Michal Ceresna <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <200704261015.44075.michal.ceresna__35064.6090847023$1177575543$gmane$org@gmail.com>
On Wednesday 25 April 2007, Javier Pedemonte wrote:

> Yes, for example, nsIMarkupDocumentViewer.idl has several 'octet'
> attributes, which would now be represented as Java 'short'.
imho, doing octet->short and PRUint8->short is fine

$ grep 'attribute[ ]*octet' * | grep -v '[ \t]*\(#\|\*\|//\)'
nsIMarkupDocumentViewer.idl:  attribute octet bidiTextDirection;
nsIMarkupDocumentViewer.idl:  attribute octet bidiTextType;
nsIMarkupDocumentViewer.idl:  attribute octet bidiControlsTextMode;
nsIMarkupDocumentViewer.idl:  attribute octet bidiNumeral;
nsIMarkupDocumentViewer.idl:  attribute octet bidiSupport;
nsIMarkupDocumentViewer.idl:  attribute octet bidiCharacterSet;

$ grep 'attribute[ ]*PRUint8' * | grep -v '[ \t]*\(#\|\*\|//\)'
nsIAccessible.idl:  readonly attribute PRUint8 numActions;
nsIScriptableInterfaceInfo.idl:    readonly attribute PRUint8  paramCount;
nsISupportsPrimitives.idl:    attribute PRUint8 data;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.