> Main usage was to read defprogramming.pdf by Ulrich Drepper in my hackish
> non-X environment. But such docs, with silly 2 columns text, are coming out
> very broken. But some formatting for C in sed, is rather useful.

Just happened to look at "const volatile" semantics in C99 standard. It's
more interesting, than plain `fmt` :)

Is it really so hard to have text-only pdfs in the same formatting as in
pdf? pdftotext outputs a table there, constructed by whitespace
indentation, all in one paragraph.

#v+
[EMAIL PROTECTED]:/tmp$
[EMAIL PROTECTED]:/tmp$ grep 'const vola' < C_STANDARD-ISOIEC9899-1999.txt | sh 
sed-craziness
EXAMPLE The common type that results when the second and third operands are
pointers is determined in two independent stages. The appropriate qualifiers,
for example, do not depend on whether the two pointers have compatible types.
Given the declarations const void *c_vp;
         void *vp;
         const int *c_ip;
         volatile int *v_ip;
         int *ip;
         const char *c_cp;
         the third column in the following table is the common type that is the 
result
of a conditional expression in which the first two columns are the second and
third operands (in either order): c_vp v_ip c_ip vp ip vp c_ip 0 v_ip c_cp c_ip
ip const void * volatile int * const volatile int * const void * const int *
void *
EXAMPLE 1 An object declared extern const volatile int real_time_clock;
         may be modifiable by hardware, but cannot be assigned to, incremented, 
or
decremented.
[EMAIL PROTECTED]:/tmp$
#v-

For those, who saw (or will see) script. It is optimized for looong
paragraphs in one line, with partial output "P", to have working string
as small as possible (it is part of justification thing). On the start,
line is checked to be long, before actual processing. But i think, it's
possible to understand all that after some playing :)
_____


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to