From: Arnaud Giersch Date: Tue, 21 Feb 2012 15:50:00 +0000 (+0100) Subject: Remove trailing commas in enum declarations. X-Git-Tag: exp_20120308~34^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fd7e52924d8d7d01e13459ad8a490672c8ceeacb Remove trailing commas in enum declarations. --- diff --git a/include/msg/datatypes.h b/include/msg/datatypes.h index edb9b7366f..70d1d302db 100644 --- a/include/msg/datatypes.h +++ b/include/msg/datatypes.h @@ -145,7 +145,7 @@ typedef enum { MSG_HOST_FAILURE = 4, /**< @brief System shutdown. The host on which you are running has just been rebooted. Free your datastructures and return now !*/ - MSG_TASK_CANCELED = 8, /**< @brief Canceled task. This task has been canceled by somebody!*/ + MSG_TASK_CANCELED = 8 /**< @brief Canceled task. This task has been canceled by somebody!*/ } MSG_error_t; /** @} */ diff --git a/include/simdag/datatypes.h b/include/simdag/datatypes.h index 961e1fed6d..6b77dfaa80 100644 --- a/include/simdag/datatypes.h +++ b/include/simdag/datatypes.h @@ -82,7 +82,7 @@ typedef enum { typedef enum { SD_TASK_NOT_TYPED = 0, /**< @brief no specified type */ SD_TASK_COMM_E2E = 1, /**< @brief end to end communication */ - SD_TASK_COMP_SEQ = 2, /**< @brief sequential computation */ + SD_TASK_COMP_SEQ = 2 /**< @brief sequential computation */ } e_SD_task_kind_t; diff --git a/include/simix/datatypes.h b/include/simix/datatypes.h index b05bdf311c..f306ccc88d 100644 --- a/include/simix/datatypes.h +++ b/include/simix/datatypes.h @@ -44,7 +44,7 @@ typedef enum { SIMIX_DST_HOST_FAILURE, SIMIX_SRC_TIMEOUT, SIMIX_DST_TIMEOUT, - SIMIX_LINK_FAILURE, + SIMIX_LINK_FAILURE } e_smx_state_t; /** @} */ diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index aff8a88f87..24eaf2b0d7 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -25,7 +25,7 @@ typedef enum { SURF_NETWORK_ELEMENT_NULL = 0, /* NULL */ SURF_NETWORK_ELEMENT_HOST, /* host type */ SURF_NETWORK_ELEMENT_ROUTER, /* router type */ - SURF_NETWORK_ELEMENT_AS, /* AS type */ + SURF_NETWORK_ELEMENT_AS /* AS type */ } e_surf_network_element_type_t; XBT_PUBLIC(e_surf_network_element_type_t) diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index ce67b0923a..2125632fd0 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -29,7 +29,7 @@ typedef enum { TYPE_LINK, TYPE_CONTAINER, TYPE_STATE, - TYPE_EVENT, + TYPE_EVENT } e_entity_types; typedef struct s_type *type_t; @@ -58,7 +58,7 @@ typedef enum { INSTR_AS, INSTR_SMPI, INSTR_MSG_PROCESS, - INSTR_MSG_TASK, + INSTR_MSG_TASK } e_container_types; typedef struct s_container *container_t; diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index 25731a2e43..bb7ee785a1 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -20,7 +20,7 @@ typedef enum { UM_FULL, UM_LAZY, - UM_UNDEFINED, + UM_UNDEFINED } e_UM_t; /* user-visible parameters */ diff --git a/src/surf/workstation_ptask_L07.c b/src/surf/workstation_ptask_L07.c index 861e4047f9..c948bd967f 100644 --- a/src/surf/workstation_ptask_L07.c +++ b/src/surf/workstation_ptask_L07.c @@ -13,7 +13,7 @@ typedef enum { SURF_WORKSTATION_RESOURCE_CPU, - SURF_WORKSTATION_RESOURCE_LINK, + SURF_WORKSTATION_RESOURCE_LINK } e_surf_workstation_model_type_t; /**************************************/ diff --git a/testsuite/surf/lmm_usage.c b/testsuite/surf/lmm_usage.c index 61b3ad7fb3..37bb41e52b 100644 --- a/testsuite/surf/lmm_usage.c +++ b/testsuite/surf/lmm_usage.c @@ -31,7 +31,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, typedef enum { MAXMIN, LAGRANGE_RENO, - LAGRANGE_VEGAS, + LAGRANGE_VEGAS } method_t; static double dichotomy(double func(double), double min, double max,