A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
an hexadecimal printer I sometime use for debugging
[simgrid.git]
/
src
/
gras
/
DataDesc
/
datadesc.c
diff --git
a/src/gras/DataDesc/datadesc.c
b/src/gras/DataDesc/datadesc.c
index
fb3e50f
..
c16f8e2
100644
(file)
--- a/
src/gras/DataDesc/datadesc.c
+++ b/
src/gras/DataDesc/datadesc.c
@@
-2,7
+2,9
@@
/* datadesc - data description in order to send/recv it in GRAS */
/* datadesc - data description in order to send/recv it in GRAS */
-/* Copyright (c) 2004 Olivier Aumage, Martin Quinson. All rights reserved. */
+/* Copyright (c) 2003 Olivier Aumage. */
+/* Copyright (c) 2003, 2004 Martin Quinson. */
+/* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-11,14
+13,14
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(datadesc,gras,"Data description");
/* FIXME: make this host-dependent using a trick such as UserData*/
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(datadesc,gras,"Data description");
/* FIXME: make this host-dependent using a trick such as UserData*/
-xbt_set_t gras_datadesc_set_local=NULL;
+
/*@null@*/
xbt_set_t gras_datadesc_set_local=NULL;
/* callback for array size when sending strings */
static int
/* callback for array size when sending strings */
static int
-_strlen_cb(gras_cbps_t vars, void *data) {
+_strlen_cb(
/*@unused@*/
gras_cbps_t vars, void *data) {
- return 1+(
long
int)strlen(data);
+ return 1+(int)strlen(data);
}
}
@@
-124,20
+126,12
@@
gras_datadesc_exit(void) {
DEBUG0("Exited DataDesc");
}
DEBUG0("Exited DataDesc");
}
-/**
- * gras_datadesc_get_name:
- *
- * Returns the name of a datadescription (to ease the debug)
- */
+/** This is mainly to debug */
char *
gras_datadesc_get_name(gras_datadesc_type_t ddt) {
return ddt->name;
}
char *
gras_datadesc_get_name(gras_datadesc_type_t ddt) {
return ddt->name;
}
-/**
- * gras_datadesc_get_id:
- *
- * Returns the name of a datadescription (to ease the debug)
- */
+/** This is mainly to debug */
int
gras_datadesc_get_id(gras_datadesc_type_t ddt) {
return ddt->code;
int
gras_datadesc_get_id(gras_datadesc_type_t ddt) {
return ddt->code;