mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 08:59:26 +02:00
- Put gpc mode between ifdefs. The only thing it does it disable all
features, this is not gpc compatibility. git-svn-id: trunk@6518 -
This commit is contained in:
parent
57cfd89fbd
commit
5aef9bc086
@ -63,8 +63,10 @@ interface
|
||||
m_property,m_default_inline,m_except];
|
||||
tpmodeswitches : tmodeswitches=
|
||||
[m_tp7,m_all,m_tp_procvar,m_duplicate_names];
|
||||
{$ifdef gpc_mode}
|
||||
gpcmodeswitches : tmodeswitches=
|
||||
[m_gpc,m_all,m_tp_procvar];
|
||||
{$endif}
|
||||
macmodeswitches : tmodeswitches=
|
||||
[m_mac,m_all,m_result,m_cvar_support,m_mac_procvar];
|
||||
|
||||
|
@ -180,7 +180,8 @@ interface
|
||||
{ Switches which can be changed by a mode (fpc,tp7,delphi) }
|
||||
tmodeswitch = (m_none,m_all, { needed for keyword }
|
||||
{ generic }
|
||||
m_fpc,m_objfpc,m_delphi,m_tp7,m_gpc,m_mac,
|
||||
m_fpc,m_objfpc,m_delphi,m_tp7,m_mac,
|
||||
{$ifdef fpc_mode}m_gpc,{$endif}
|
||||
{ more specific }
|
||||
m_class, { delphi class model }
|
||||
m_objpas, { load objpas unit }
|
||||
|
@ -1069,8 +1069,10 @@ begin
|
||||
include(init_settings.moduleswitches,cs_support_macro);
|
||||
'o' : //an alternative to -Mtp
|
||||
SetCompileMode('TP',true);
|
||||
{$ifdef gpc_mode}
|
||||
'p' : //an alternative to -Mgpc
|
||||
SetCompileMode('GPC',true);
|
||||
{$endif}
|
||||
's' :
|
||||
include(init_settings.globalswitches,cs_constructor_name);
|
||||
't' :
|
||||
|
@ -282,9 +282,11 @@ implementation
|
||||
current_settings.modeswitches:=objfpcmodeswitches;
|
||||
{ TODO: enable this for 2.3/2.9 }
|
||||
// include(current_settings.localswitches, cs_typed_addresses);
|
||||
end else
|
||||
if s='GPC' then
|
||||
end
|
||||
{$ifdef gpc_mode}
|
||||
else if s='GPC' then
|
||||
current_settings.modeswitches:=gpcmodeswitches
|
||||
{$endif}
|
||||
else
|
||||
if s='MACPAS' then
|
||||
current_settings.modeswitches:=macmodeswitches
|
||||
@ -379,8 +381,10 @@ implementation
|
||||
undef_system_macro('FPC_TP')
|
||||
else if (m_objfpc in oldmodeswitches) then
|
||||
undef_system_macro('FPC_OBJFPC')
|
||||
{$ifdef gpc_mode}
|
||||
else if (m_gpc in oldmodeswitches) then
|
||||
undef_system_macro('FPC_GPC')
|
||||
{$endif}
|
||||
else if (m_mac in oldmodeswitches) then
|
||||
undef_system_macro('FPC_MACPAS');
|
||||
|
||||
@ -391,8 +395,10 @@ implementation
|
||||
def_system_macro('FPC_TP')
|
||||
else if (m_objfpc in current_settings.modeswitches) then
|
||||
def_system_macro('FPC_OBJFPC')
|
||||
{$ifdef gpc_mode}
|
||||
else if (m_gpc in current_settings.modeswitches) then
|
||||
def_system_macro('FPC_GPC')
|
||||
{$endif}
|
||||
else if (m_mac in current_settings.modeswitches) then
|
||||
def_system_macro('FPC_MACPAS');
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user