From: alegrand Date: Wed, 29 Jun 2005 19:50:59 +0000 (+0000) Subject: Useless file I had forgotten to remove. X-Git-Tag: v3.3~3880 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3554543106ed1c78085a72f7c05b1abb030f7057?hp=6c68cb2fa6012d3067edcad0b6164dc95c4ed9be;ds=sidebyside Useless file I had forgotten to remove. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1475 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/Makefile.am b/examples/msg/Makefile.am index 8673091cb4..98f6ff352b 100644 --- a/examples/msg/Makefile.am +++ b/examples/msg/Makefile.am @@ -7,7 +7,7 @@ CLEANFILES=msg_test.trace TESTS=run_msg_test check_PROGRAMS=msg_test -msg_test_SOURCES= messages.h msg_test.c +msg_test_SOURCES= msg_test.c msg_test_LDADD= $(top_builddir)/src/libsimgrid.la include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/msg/messages.h b/examples/msg/messages.h deleted file mode 100644 index 0508c142d8..0000000000 --- a/examples/msg/messages.h +++ /dev/null @@ -1,104 +0,0 @@ -/* $Id$ */ - -/* Copyright (c) 2002,2003,2004 Arnaud Legrand. 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. */ - -/** \file messages.h - * \ingroup MSG_examples - * \brief Convenient debuging functions that should be used in combination with - * the perl-script tools/MSG_visualization/colorize.pl. -*/ - -#ifndef MESSAGES_H -#define MESSAGES_H - -#include -#include -#include "msg/datatypes.h" -#include "xbt/error.h" - -/** just like an assert. - * This function is used to ensure that a condition is true. - * If not, it prints an error message (with the virtual date and the - * PID of the #m_process_t that called it). - */ -static void ASSERT(int value, const char *fmt, ...) -{ - m_process_t self = MSG_process_self(); - va_list ap; - - if(!value) { - va_start(ap, fmt); - if (self) - fprintf(stderr, "[%g] P%d | ", MSG_getClock(), - MSG_process_get_PID(self)); - vfprintf(stderr, fmt, ap); - va_end(ap); - - xbt_abort(); - } - return; -} - -/** Die - * Just like #ASSERT() except you already know that the condition does not hold - * true. - */ -static void DIE(const char *fmt, ...) -{ - m_process_t self = MSG_process_self(); - va_list ap; - - va_start(ap, fmt); - if (self) - fprintf(stderr, "[%g] P%d | ", MSG_getClock(), - MSG_process_get_PID(self)); - vfprintf(stderr, fmt, ap); - va_end(ap); - - xbt_abort(); - return; -} - -/** - * Print a one-line message with the virtual date and the PID of the #m_process_t - * that called it - */ -static void PRINT_MESSAGE(const char *fmt, ...) -{ -#ifdef VERBOSE - m_process_t self = MSG_process_self(); - va_list ap; - - va_start(ap, fmt); - if (self) - fprintf(stderr, "[%g] P%d | (%s:%s) ", MSG_getClock(), - MSG_process_get_PID(self), MSG_host_self()->name, self->name); - vfprintf(stderr, fmt, ap); - va_end(ap); -#endif - return; -} - -/** - * Just like #PRINT_MESSAGE() except that it prints DEBUG in front of the line. - */ -static void PRINT_DEBUG_MESSAGE(const char *fmt, ...) -{ -#ifdef VERBOSE - m_process_t self = MSG_process_self(); - va_list ap; - - va_start(ap, fmt); - if (self) - fprintf(stderr, "DEBUG [%g] P%d | (%s) ", MSG_getClock(), - MSG_process_get_PID(self), MSG_host_self()->name); - vfprintf(stderr, fmt, ap); - va_end(ap); -#endif - return; -} - -#endif