Changeset 4327

Show
Ignore:
Timestamp:
06/28/08 09:00:08 (3 months ago)
Author:
pmoura
Message:

Updated the CxProlog? config file to take advantage and require the new 0.97.1 version (which implements some more ISO Prolog predicates and expands support for text encodings).

Updated the B-Prolog config file to take advantage and require the new 7.1 version (which adds support for the multifile/1 predicate directive).

Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/configs/b.config

    r4323 r4327  
    44%  Release 2.32.1 
    55% 
    6 %  configuration file for B-Prolog 7.0 
    7 % 
    8 %  last updated: May 30, 2008 
     6%  configuration file for B-Prolog 7.1 
     7% 
     8%  last updated: June 28, 2008 
    99% 
    1010%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     
    185185 
    186186'$lgt_default_flag'(encoding_directive, unsupported). 
    187 '$lgt_default_flag'(multifile_directive, unsupported). 
     187'$lgt_default_flag'(multifile_directive, supported). 
    188188'$lgt_default_flag'(threads, unsupported). 
    189189 
  • trunk/configs/cx.config

    r4323 r4327  
    44%  Release 2.32.1 
    55% 
    6 %  configuration file for CxProlog 0.96 or a later version 
    7 % 
    8 %  last updated: May 30, 2008 
     6%  configuration file for CxProlog 0.97.1 or a later version 
     7% 
     8%  last updated: June 28, 2008 
    99% 
    1010%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     
    3434 
    3535'$lgt_iso_predicate'(read_term(_, _, _)). 
    36 '$lgt_iso_predicate'(write_canonical(_, _)). 
    37 '$lgt_iso_predicate'(write_term(_, _, _)). 
    3836 
    3937 
     
    4644 
    4745 
    48 write_canonical(Stream, Term) :- 
    49     writeq(Stream, Term). 
    50  
    51  
    52 write_term(Stream, Term, _) :- 
    53     write(Stream, Term). 
    54  
    55  
    5646 
    5747%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     
    7969 
    8070 
    81 % call_cleanup(+callable, +callble) 
    82  
    83 call_cleanup(_, _) :- 
    84     throw(not_supported(call_cleanup/2)). 
     71% call_cleanup(+callable, +callble) -- built-in 
    8572 
    8673 
     
    318305% Logtalk source file, given a list of options 
    319306 
     307'$lgt_load_prolog_code'(File, _, [encoding(Encoding)]) :- 
     308    !, 
     309    current_prolog_flag(encoding, Default), 
     310    set_prolog_flag(encoding, Encoding), 
     311    catch(consult(File), Error, (set_prolog_flag(encoding, Default), throw(Error))), 
     312    set_prolog_flag(encoding, Default). 
     313 
    320314'$lgt_load_prolog_code'(File, _, _) :- 
    321315    consult(File). 
     
    528522% '$lgt_logtalk_prolog_encoding'(?atom, ?atom, +stream) 
    529523 
    530 '$lgt_logtalk_prolog_encoding'('US-ASCII', 'en_US.UTF-8', _). 
    531 '$lgt_logtalk_prolog_encoding'('ISO-8859-1', 'en_US.ISO8859-1', _). 
    532 '$lgt_logtalk_prolog_encoding'('UTF-8', 'en_US.UTF-8', _). 
     524'$lgt_logtalk_prolog_encoding'('US-ASCII', ascii, _). 
     525'$lgt_logtalk_prolog_encoding'('ISO-8859-1', iso_latin_1, _). 
     526'$lgt_logtalk_prolog_encoding'('UTF-8', utf8, _). 
     527'$lgt_logtalk_prolog_encoding'('UCS-2', Encoding, Stream) :-    % UTF-16 subsumes UCS-2 
     528    '$lgt_logtalk_prolog_encoding'('UTF-16', Encoding, Stream). 
     529'$lgt_logtalk_prolog_encoding'('UCS-2BE', unicode_be, _). 
     530'$lgt_logtalk_prolog_encoding'('UCS-2LE', unicode_le, _). 
     531'$lgt_logtalk_prolog_encoding'('UTF-16', Encoding, Stream) :-   % BOM optional but strongly recommended 
     532    (   stream_property(Stream, encoding(utf16be)) -> 
     533        Encoding = utf16be 
     534    ;   stream_property(Stream, encoding(utf16le)) -> 
     535        Encoding = utf16le 
     536    ). 
     537'$lgt_logtalk_prolog_encoding'('UTF-16BE', utf16be, _).         % BOM forbidden 
     538'$lgt_logtalk_prolog_encoding'('UTF-16LE', utf16le, _). 
     539'$lgt_logtalk_prolog_encoding'('UTF-32', Encoding, Stream) :-   % BOM mandatory 
     540    (   stream_property(Stream, encoding(utf32be)) -> 
     541        Encoding = utf32be 
     542    ;   stream_property(Stream, encoding(utf32le)) -> 
     543        Encoding = utf32le 
     544    ). 
     545'$lgt_logtalk_prolog_encoding'('UTF-32BE', utf32be, _).         % BOM forbidden 
     546'$lgt_logtalk_prolog_encoding'('UTF-32LE', utf32le, _). 
    533547 
    534548 
  • trunk/configs/NOTES.txt

    r4323 r4327  
    152152 
    153153 
    154 CxProlog 0.95.x or later versions 
     154CxProlog 0.97.1 or later versions 
    155155 
    156156    cx.config 
  • trunk/examples/encodings/NOTES.txt

    r4323 r4327  
    2222    mythology.lgt - UTF-32 (with a BOM) 
    2323 
    24 As of the release date of the Logtalk 2.31.2 version, only SICStus Prolog  
    25 supports UTF-32 encodings. Attempting to compile the "mythology.lgt" source  
    26 file with either YAP or SWI-Prolog results in a misleading syntax error. 
    27 CxProlog only supports US-ASCII and UTF-8 encodings (ISO-8859-1 seems to be  
    28 broken when reading terms). 
     24As of the release date of this Logtalk version, only SICStus Prolog and  
     25CxProlog support UTF-32 encodings. Attempting to compile the "mythology.lgt"  
     26source file with either YAP or SWI-Prolog results in a misleading syntax  
     27error. 
    2928 
    30 Be sure to use a text editor that supports these encodings when opening these  
    31 files. In addition, you may need to configure your text editor to open the  
    32 source file using the declared encoding. Be sure to use a font that supports  
    33 Unicode characters (both for your text editor and for your Prolog compiler  
    34 interpreter). 
     29Be sure to use a text editor that supports these encodings when opening  
     30these files. In addition, you may need to configure your text editor to  
     31open the source file using the declared encoding. Be sure to use a font  
     32that supports Unicode characters (both for your text editor and for the  
     33shell running your Prolog compiler interpreter). 
    3534 
    3635See the documentation of the Logtalk encoding/1 directive for its possible  
    37 arguments. The Prolog and XML files generated by the Logtalk compiler use the  
    38 same encoding as the compiled source files. 
     36arguments. The Prolog and XML files generated by the Logtalk compiler use  
     37the same encoding as the compiled source files. 
  • trunk/RELEASE_NOTES.txt

    r4325 r4327  
    1111 
    1212 
    13 2.32.1 - July ??, 2008 
     132.32.1 - July 30, 2008 
    1414 
    1515    Restored the redefined entity warnings for back-end Prolog compilers  
     
    2020    Changed the representation of the runtime tables for loaded entities  
    2121    in order to drop the need of a "functors clause" per entity. This avoids  
    22     redundancy on the representation of entity functors and helps reducing  
    23     the size of the generated Prolog files. 
     22    some redundancy on the representation of entity functors and also helps  
     23    reducing a bit the size of the generated Prolog files. 
    2424 
    2525    When loading a redefined object, also clean all entries in the event  
     
    2929    and loading source files (instead of doing it only when the files  
    3030    redefine existing entities). 
     31 
     32    Updated the CxProlog config file to take advantage and require the new  
     33    0.97.1 version (which implements some more ISO Prolog predicates and  
     34    expands support for text encodings). 
     35 
     36    Updated the B-Prolog config file to take advantage and require the new  
     37    7.1 version (which adds support for the multifile/1 predicate directive). 
    3138 
    3239    Updated the SWI-Prolog config file notes about possible compatibility