Changeset 508610a in git


Ignore:
Timestamp:
May 5, 2010, 2:22:46 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b21a664aa22dc6e196223af8a74ad4885e83547c')
Children:
59ac5a4d63b49b2fbdb1547a4c4892cf9890f235
Parents:
30e9c5fe8b6de1896b6bd3fd27b0cad11d6549a5
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-05-05 14:22:46+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:50:26+01:00
Message:
dError etc defined in output.h
Location:
output
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • output/dError.c

    r30e9c5f r508610a  
    1414#include <stdio.h>
    1515#include "config.h"
    16 //#include "distrib.h": for MAKE_DISTRIBUTION
    17 #ifdef p_Procs_Static
    18 #include "kversion.h"
    19 #endif
     16#include "output.h"
    2017#ifdef HAVE_CONFIG_H
    2118#include <omalloc/omalloc.h>
    22 #endif
    23 
    24 #ifdef __cplusplus
    25 extern "C"
    26 {
    2719#endif
    2820
     
    5143#else
    5244  fprintf(stderr, "\n// !!! YOU HAVE FOUND A BUG IN SINGULAR.");
    53   fprintf(stderr, "// !!! Please, email the following output to singular@mathematik.uni-kl.de");
    54   fprintf(stderr, "// !!! Singular Version: " S_UNAME S_VERSION1 "\n");
     45  fprintf(stderr, "// !!! Please, email the input\n// and the following error message to singular@mathematik.uni-kl.de");
    5546  vfprintf(stderr, fmt, ap);
    5647#endif
     
    5849}
    5950
    60 
    61 #ifdef __cplusplus
    62 }
    63 #endif
    6451
    6552#endif
  • output/output.h

    r30e9c5f r508610a  
    107107char* SPrintEnd();
    108108
     109/* error reporting */
     110#ifdef __cplusplus
     111extern "C"
     112{
     113#endif
     114extern int dReportError(const char* fmt, ...);
     115#define dReportBug(s) \
     116  dReportError("Bug reported: %s\n occured at %s,%d\n", s, __FILE__, __LINE__)
     117#endif
     118
     119// this is just a dummy procedure which is called after the error
     120// has been reported. Within the debugger, set a breakpoint on this
     121// proc.
     122extern void dErrorBreak();
     123#ifdef __cplusplus
     124}
     125#endif
     126
    109127#ifndef HAVE_ASSUME
    110128#define assume(x) ((void) 0)
Note: See TracChangeset for help on using the changeset viewer.