diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-08-20 08:35:47 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-08-20 08:35:47 +0000 |
commit | 1e7f8a79163fbde1acdf3000f08b574f33081e5c (patch) | |
tree | 71c79e6bf5b482ff4dcf9430ea38d4cd7346f9b3 /compiler/switches.pas | |
parent | 62af3e07646d5a9f45421691e33d3d6cb20d2e99 (diff) | |
download | fpc-1e7f8a79163fbde1acdf3000f08b574f33081e5c.tar.gz |
* the default string type for the JVM target is no longer automatically
unicodestring = java.lang.String. The reason this was the default in
the past is that this was the first string type that was implemented,
and without it being the default most code involving string operations
would fail. Now the default strings types are the same as for other
targets
+ new {$modeswitch unicodestrings} directive, that when activated
*together* with {$h+},
1) changes char into an alias for widechar
2) changes string into an alias for unicodestring
3) changes the preferred string evaluation type (in case of uncertainty)
to unicodestring
{$modeswitch unicodestrings} with {$h-} does not change anything at all
regarding the string type (it still changes the char type)
+ new uuchar unit that redefines char as widechar, and which is automatically
included by the compiler if {$modeswitch unicodestrings} is enabled
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18781 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/switches.pas')
-rw-r--r-- | compiler/switches.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/switches.pas b/compiler/switches.pas index 5dc58c8ce2..96d020167a 100644 --- a/compiler/switches.pas +++ b/compiler/switches.pas @@ -66,7 +66,7 @@ const {E} (typesw:modulesw; setsw:ord(cs_fp_emulation)), {F} (typesw:ignoredsw; setsw:ord(cs_localnone)), {G} (typesw:ignoredsw; setsw:ord(cs_localnone)), - {H} (typesw:localsw; setsw:ord(cs_ansistrings)), + {H} (typesw:localsw; setsw:ord(cs_refcountedstrings)), {I} (typesw:localsw; setsw:ord(cs_check_io)), {J} (typesw:localsw; setsw:ord(cs_typed_const_writable)), {K} (typesw:unsupportedsw; setsw:ord(cs_localnone)), @@ -96,7 +96,7 @@ const {E} (typesw:modulesw; setsw:ord(cs_fp_emulation)), {F} (typesw:ignoredsw; setsw:ord(cs_localnone)), {G} (typesw:ignoredsw; setsw:ord(cs_localnone)), - {H} (typesw:localsw; setsw:ord(cs_ansistrings)), + {H} (typesw:localsw; setsw:ord(cs_refcountedstrings)), {I} (typesw:localsw; setsw:ord(cs_check_io)), {J} (typesw:localsw; setsw:ord(cs_external_var)), {K} (typesw:unsupportedsw; setsw:ord(cs_localnone)), |