Changeset 52c31f in git


Ignore:
Timestamp:
Nov 9, 2010, 12:59:33 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
3fcc6f74e75547ea1e4e5f7b402159aa86e84590
Parents:
c48726524b56e7c3adf69f25d82e664ace8c9211
Message:
factoryError as proc var

git-svn-id: file:///usr/local/Singular/svn/trunk@13618 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_util.cc

    rc48726 r52c31f  
    4949
    5050#include<stdio.h>
     51#include<stdlib.h>
    5152
    52 void (*factoryError_callback)(const char *s) = 0;
     53void factoryError_intern(const char *s)
     54{
     55  fprintf(stderr,s);
     56  abort();
     57}
     58void (*factoryError_callback)(const char *s) = factoryError_intern;
    5359
    54 void factoryError(const char *s)
    55 {
    56   if (factoryError_callback!=0) factoryError_callback(s);
    57   else fprintf(stderr,s);
    58 }
    5960
  • factory/cf_util.h

    rc48726 r52c31f  
    1717
    1818/*BEGINPUBLIC*/
    19 extern void (*factoryError_callback)(const char *s);
    20 void factoryError(const char *s);
     19void factoryError_intern(const char *s);
     20extern void (*factoryError)(const char *s);
    2121/*ENDPUBLIC*/
    2222
Note: See TracChangeset for help on using the changeset viewer.