Changes between Version 8 and Version 9 of ForeignData


Ignore:
Timestamp:
Dec 3, 2005 1:39:09 AM (8 years ago)
Author:
john@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ForeignData

    v8 v9  
    2424 
    2525{{{ 
    26  
    2726foreign space [bigendian|littleendian] [const] <n> :: Ptr <type> = constant 
     27}}} 
    2828 
    2929where constant may be one of  
    3030 
    31 a value: 3 
     31 * a value: 3 
    3232 
    33 an initialized list: [ 0, 1, 2, ...] 
     33 * an initialized list: [ 0, 1, 2, ...] 
    3434 
    35 a "string" to be output as utf8, utf16 or ucs4 unicode code points depending on what type of pointer it is assigned to. 
    3635 
    37 }}} 
     36 * a "string" to be output as utf8, utf16 or ucs4 unicode code points depending on what type of pointer it is assigned to. 
     37 
     38 
    3839 
    3940if the data is initialized as a string, <n> will always refer to a number of characters regardless of encoding and the string will be null terminated (unless an explicit <n> chops off the trailing space) 
     
    5657name :: built-in-type 
    5758name = <constant> 
     59}}} 
    5860 
    59 or sizeof a builtin 
     61 * or sizeof a builtin 
    6062 
    61 or 'foo <op> bar' where foo and bar are manifestly constant and op is a basic operation. 
    62 }}} 
     63 * or 'foo <op> bar' where foo and bar are manifestly constant and op is a basic operation. 
     64 
    6365 
    6466then allow such manifestly constant values for n and allow types whose sizeof is manifestly constant to be used in foreign space declarations.