瀏覽代碼

src/datawizard/interfaces: do not use 'interface' as it is a keyword

Nathalie Furmento 11 年之前
父節點
當前提交
e3b9b2ca35

+ 7 - 7
src/datawizard/interfaces/block_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -172,13 +172,13 @@ void starpu_block_data_register(starpu_data_handle_t *handleptr, unsigned home_n
 void starpu_block_ptr_register(starpu_data_handle_t handle, unsigned node,
 			uintptr_t ptr, uintptr_t dev_handle, size_t offset, uint32_t ldy, uint32_t ldz)
 {
-	struct starpu_block_interface *interface = starpu_data_get_interface_on_node(handle, node);
+	struct starpu_block_interface *block_interface = starpu_data_get_interface_on_node(handle, node);
 	starpu_data_ptr_register(handle, node);
-	interface->ptr = ptr;
-	interface->dev_handle = dev_handle;
-	interface->offset = offset;
-	interface->ldy = ldy;
-	interface->ldz = ldz;
+	block_interface->ptr = ptr;
+	block_interface->dev_handle = dev_handle;
+	block_interface->offset = offset;
+	block_interface->ldy = ldy;
+	block_interface->ldz = ldz;
 }
 
 static uint32_t footprint_block_interface_crc32(starpu_data_handle_t handle)

+ 6 - 6
src/datawizard/interfaces/matrix_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -181,12 +181,12 @@ void starpu_matrix_data_register(starpu_data_handle_t *handleptr, unsigned home_
 void starpu_matrix_ptr_register(starpu_data_handle_t handle, unsigned node,
 			uintptr_t ptr, uintptr_t dev_handle, size_t offset, uint32_t ld)
 {
-	struct starpu_matrix_interface *interface = starpu_data_get_interface_on_node(handle, node);
+	struct starpu_matrix_interface *matrix_interface = starpu_data_get_interface_on_node(handle, node);
 	starpu_data_ptr_register(handle, node);
-	interface->ptr = ptr;
-	interface->dev_handle = dev_handle;
-	interface->offset = offset;
-	interface->ld = ld;
+	matrix_interface->ptr = ptr;
+	matrix_interface->dev_handle = dev_handle;
+	matrix_interface->offset = offset;
+	matrix_interface->ld = ld;
 }
 
 static uint32_t footprint_matrix_interface_crc32(starpu_data_handle_t handle)

+ 5 - 5
src/datawizard/interfaces/variable_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -122,11 +122,11 @@ void starpu_variable_data_register(starpu_data_handle_t *handleptr, unsigned hom
 void starpu_variable_ptr_register(starpu_data_handle_t handle, unsigned node,
 			uintptr_t ptr, uintptr_t dev_handle, size_t offset)
 {
-	struct starpu_variable_interface *interface = starpu_data_get_interface_on_node(handle, node);
+	struct starpu_variable_interface *variable_interface = starpu_data_get_interface_on_node(handle, node);
 	starpu_data_ptr_register(handle, node);
-	interface->ptr = ptr;
-	interface->dev_handle = dev_handle;
-	interface->offset = offset;
+	variable_interface->ptr = ptr;
+	variable_interface->dev_handle = dev_handle;
+	variable_interface->offset = offset;
 }
 
 

+ 5 - 5
src/datawizard/interfaces/vector_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -127,11 +127,11 @@ void starpu_vector_data_register(starpu_data_handle_t *handleptr, unsigned home_
 void starpu_vector_ptr_register(starpu_data_handle_t handle, unsigned node,
 			uintptr_t ptr, uintptr_t dev_handle, size_t offset)
 {
-	struct starpu_vector_interface *interface = starpu_data_get_interface_on_node(handle, node);
+	struct starpu_vector_interface *vector_interface = starpu_data_get_interface_on_node(handle, node);
 	starpu_data_ptr_register(handle, node);
-	interface->ptr = ptr;
-	interface->dev_handle = dev_handle;
-	interface->offset = offset;
+	vector_interface->ptr = ptr;
+	vector_interface->dev_handle = dev_handle;
+	vector_interface->offset = offset;
 }