Skip to content

Commit

Permalink
Avoid using InstallValue
Browse files Browse the repository at this point in the history
For some background, see gap-system/gap#1637
  • Loading branch information
fingolfin committed Aug 1, 2022
1 parent d8007ec commit 37c7808
Show file tree
Hide file tree
Showing 59 changed files with 45 additions and 291 deletions.
2 changes: 0 additions & 2 deletions 4ti2Interface/gap/4ti2Interface.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#! Copy it in your GAP pkg-directory.
#! After this, the package can be loaded via LoadPackage( "4ti2Interface" );

DeclareGlobalVariable( "4ti2Interface_BINARIES" );

#! @Chapter 4ti2 functions

#! @Section Groebner
Expand Down
2 changes: 1 addition & 1 deletion 4ti2Interface/gap/4ti2Interface.gi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##
#############################################################################

InstallValue( 4ti2Interface_BINARIES,
BindGlobal( "4ti2Interface_BINARIES",
rec(
required_binaries := [ "groebner", "hilbert", "zsolve", "graver" ],
) );
Expand Down
3 changes: 0 additions & 3 deletions ExamplesForHomalg/gap/ExamplesForHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
DeclareInfoClass( "InfoExamplesForHomalg" );
SetInfoLevel( InfoExamplesForHomalg, 1 );

# a central place for configurations:
DeclareGlobalVariable( "HOMALG_EXAMPLES" );

####################################
#
# global functions and operations:
Expand Down
2 changes: 1 addition & 1 deletion ExamplesForHomalg/gap/ExamplesForHomalg.gi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# a central place for configuration variables:

InstallValue( HOMALG_EXAMPLES,
BindGlobal( "HOMALG_EXAMPLES",
rec(
OwnRingOrReadFile := 1
)
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/GAPHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_GAP" );

DeclareGlobalVariable( "GAPHomalgMacros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/GAPHomalg.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( HOMALG_IO_GAP,
BindGlobal( "HOMALG_IO_GAP",
rec(
cas := "gap", ## normalized name on which the user should have no control
name := "GAP",
Expand Down Expand Up @@ -92,7 +92,7 @@ InstallGlobalFunction( _ExternalGAP_multiple_delete,
end );

##
InstallValue( GAPHomalgMacros,
BindGlobal( "GAPHomalgMacros",
rec(

)
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgBasic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the external rings provided by the GAP package homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgBasic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgBasic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgBasic,
BindGlobal( "CommonHomalgTableForGAPHomalgBasic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgBestBasis.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the GAP implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgBestBasis" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgBestBasis.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgBestBasis,
BindGlobal( "CommonHomalgTableForGAPHomalgBestBasis",

rec(
## Can optionally be provided by the RingPackage
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgTools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the Maple implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgTools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgTools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgTools,
BindGlobal( "CommonHomalgTableForGAPHomalgTools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ "Zero( ", R, " )" ], "Zero" ), "GAP", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/MAGMA.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_MAGMA" );

DeclareGlobalVariable( "MAGMAMacros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/MAGMA.gi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
####################################

InstallValue( HOMALG_IO_MAGMA,
BindGlobal( "HOMALG_IO_MAGMA",
rec(
cas := "magma", ## normalized name on which the user should have no control
name := "MAGMA",
Expand Down Expand Up @@ -147,7 +147,7 @@ InstallGlobalFunction( _MAGMA_multiple_delete,
end );

##
InstallValue( MAGMAMacros,
BindGlobal( "MAGMAMacros",
rec(

_order := [
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMABasic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMABasic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMABasic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMABasic,
BindGlobal( "CommonHomalgTableForMAGMABasic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMABestBasis.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings with BestBasis provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMABestBasis" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMABestBasis.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMABestBasis,
BindGlobal( "CommonHomalgTableForMAGMABestBasis",

rec(
## Can optionally be provided by the RingPackage
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMATools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMATools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMATools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMATools,
BindGlobal( "CommonHomalgTableForMAGMATools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ "Zero(", R, ")" ], "Zero" ), "MAGMA", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/Macaulay2.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_Macaulay2" );

DeclareGlobalVariable( "Macaulay2Macros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/Macaulay2.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( HOMALG_IO_Macaulay2,
BindGlobal( "HOMALG_IO_Macaulay2",
rec(
cas := "macaulay2", ## normalized name on which the user should have no control
name := "Macaulay2",
Expand Down Expand Up @@ -115,7 +115,7 @@ InstallGlobalFunction( _Macaulay2_SetInvolution,
end );

##
InstallValue( Macaulay2Macros,
BindGlobal( "Macaulay2Macros",
rec(

IsIdentityMatrix := "\n\
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/Macaulay2Basic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by Macaulay2.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMacaulay2Basic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/Macaulay2Basic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMacaulay2Basic,
BindGlobal( "CommonHomalgTableForMacaulay2Basic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/Macaulay2Tools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the Maple implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMacaulay2Tools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/Macaulay2Tools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForMacaulay2Tools,
BindGlobal( "CommonHomalgTableForMacaulay2Tools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ R, "#0" ], "Zero" ), "Macaulay2", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/MapleHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_Maple" );

DeclareGlobalVariable( "MapleMacros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/MapleHomalg.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( HOMALG_IO_Maple,
BindGlobal( "HOMALG_IO_Maple",
rec(
cas := "maple", ## normalized name on which the user should have no control
name := "Maple",
Expand Down Expand Up @@ -189,7 +189,7 @@ InstallGlobalFunction( _Maple_multiple_delete,
end );

##
InstallValue( MapleMacros,
BindGlobal( "MapleMacros",
rec(

Eliminate := "\n\
Expand Down
8 changes: 0 additions & 8 deletions RingsForHomalg/gap/MapleHomalgBasic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMapleHomalgBasic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MapleHomalgBasic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForMapleHomalgBasic,
BindGlobal( "CommonHomalgTableForMapleHomalgBasic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MapleHomalgBestBasis.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the Maple implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMapleHomalgBestBasis" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MapleHomalgBestBasis.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForMapleHomalgBestBasis,
BindGlobal( "CommonHomalgTableForMapleHomalgBestBasis",

rec(
## Can optionally be provided by the RingPackage
Expand Down
Loading

0 comments on commit 37c7808

Please sign in to comment.