Skip to content

Commit 1340799

Browse files
enable LAGraph v1.0.2 to work with draft SS:GrB v8.1.0
1 parent 9290ed4 commit 1340799

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

src/test/test_Type.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,8 @@ void test_TypeName (void)
7979
name [0] = '\0' ;
8080
OK (GrB_Type_new (&type, sizeof (myint))) ;
8181
int result = LAGraph_NameOfType (name, type, msg) ;
82-
#if LAGRAPH_SUITESPARSE
83-
printf ("\nSuiteSparse knows the type name: [%s]\n", name) ;
84-
TEST_CHECK (result == GrB_SUCCESS) ;
85-
OK (strcmp (name, "myint")) ;
86-
#else
8782
TEST_CHECK (result == GrB_NOT_IMPLEMENTED) ;
8883
printf ("\nmsg: %s\n", msg) ;
89-
#endif
9084

9185
TEST_CHECK (LAGraph_NameOfType (NULL, NULL, msg) == GrB_NULL_POINTER) ;
9286
printf ("\nmsg: %s\n", msg) ;

src/utility/LAGraph_NameOfType.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ int LAGraph_NameOfType
4040
// determine the name of the type
4141
//--------------------------------------------------------------------------
4242

43-
#if LAGRAPH_SUITESPARSE
44-
45-
// always succeeds, even for user-defined types, unless the
46-
// type is an invalid object
47-
return (GxB_Type_name (name, type)) ;
48-
49-
#else
50-
5143
if (type == GrB_BOOL ) strcpy (name, "bool") ;
5244
else if (type == GrB_INT8 ) strcpy (name, "int8_t") ;
5345
else if (type == GrB_INT16 ) strcpy (name, "int16_t") ;
@@ -71,5 +63,4 @@ int LAGraph_NameOfType
7163
}
7264
return (GrB_SUCCESS) ;
7365

74-
#endif
7566
}

0 commit comments

Comments
 (0)