Subversion Repositories SvarDOS

Rev

Rev 1290 | Rev 1297 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1290 Rev 1294
Line 81... Line 81...
81
in TXT files and embedds the default one inside the application in an automated
81
in TXT files and embedds the default one inside the application in an automated
82
way at compile time.
82
way at compile time.
83
 
83
 
84
There is also a licensing issue: CATS/Kitten libraries are published under the
84
There is also a licensing issue: CATS/Kitten libraries are published under the
85
terms of a viral, corrosive license. SvarLANG, on the other hand, is published
85
terms of a viral, corrosive license. SvarLANG, on the other hand, is published
86
under a truly free, liberal license (MIT).
86
under a truly free, liberal MIT license.
87
 
87
 
88
 
88
 
89
### FILE FORMAT ###
89
### FILE FORMAT ###
90
 
90
 
91
File =
91
File =
92
    magic         : Char[4] := "SvL1"
92
    magic         : Char[4] := "SvL\x1a" (ie. "SvL" followed with a 0x1a char)
93
    guard         : Char := "\0x1a"
-
 
94
                  ; end-of-file char to prevent TYPE garbage
93
                  ; 0x1a is an end-of-file marker that prevents TYPE garbage
95
    num_strings   : U16
94
    num_strings   : U16
96
    languages     : array[num_languages] of Language
95
    languages     : array[num_languages] of Language
97
 
96
 
98
Language =
97
Language =
99
    lang_id       : Char[2]
98
    lang_id       : Char[2]