Changeset 72f476b in git
- Timestamp:
- Jun 9, 2010, 12:28:01 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- c08834bf50b47d2b3cb0fead54ea4d7bdd59b433
- Parents:
- 56abc3642a555178d4967c093c099b3244d33e84
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2010-06-09 12:28:01+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:05+01:00
- Files:
-
- 1 edited
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
misc/aux.h
r56abc3 r72f476b 2 2 3 3 /******************************************************************* 4 * File: aux .h4 * File: auxiliary.h 5 5 * Purpose: 6 6 * Author: … … 10 10 11 11 // BOOLEAN 12 // max, min?13 14 12 15 13 #ifndef _MISC_AUX_H 16 14 #define _MISC_AUX_H 17 15 18 #define TRUE 1 19 #define FALSE 0 16 #if (SIZEOF_LONG == 8) 17 typedef int BOOLEAN; 18 /* testet on x86_64, gcc 3.4.6: 2 % */ 19 /* testet on IA64, gcc 3.4.6: 1 % */ 20 #else 21 /* testet on athlon, gcc 2.95.4: 1 % */ 22 typedef short BOOLEAN; 23 #endif 24 25 #ifndef FALSE 26 #define FALSE 0 27 #endif 28 29 #ifndef TRUE 30 #define TRUE 1 31 #endif 20 32 21 33 #ifndef NULL 22 #define NULL ( 0)34 #define NULL ((void *)(0)) 23 35 #endif 24 36 … … 32 44 typedef void* ADDRESS; 33 45 34 #if (SIZEOF_LONG == 8)35 typedef int BOOLEAN;36 /* testet on x86_64, gcc 3.4.6: 2 % */37 /* testet on IA64, gcc 3.4.6: 1 % */38 #else39 /* testet on athlon, gcc 2.95.4: 1 % */40 typedef short BOOLEAN;41 #endif42 46 #define loop for(;;) 43 47 -
reporter/Makefile.in
r56abc3 r72f476b 46 46 47 47 # normal C++ source files 48 CXXSOURCES= output.cc48 CXXSOURCES=reporter.cc 49 49 50 50 # normal C source files … … 53 53 SOURCES=${CSOURCES} ${CXXSOURCES} 54 54 55 HEADERS= output.h55 HEADERS=reporter.h 56 56 57 57 DISTFILES=${SOURCES} ${HEADERS} … … 64 64 ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< 65 65 66 output.a: ${OBJS}67 -rm -f output.a66 reporter.a: ${OBJS} 67 -rm -f reporter.a 68 68 ar cr $@ $^ 69 69 70 all: output.a70 all: reporter.a 71 71 72 72 install: all 73 73 ${MKINSTALLDIRS} ${includedir} 74 74 ${MKINSTALLDIRS} ${libdir} 75 ${INSTALL_DATA} output.a ${libdir}/liboutput.a76 ${INSTALL_DATA} output.h ${includedir}/output.h75 ${INSTALL_DATA} reporter.a ${libdir}/libreporter.a 76 ${INSTALL_DATA} reporter.h ${includedir}/reporter.h 77 77 78 78 ## -
reporter/configure.ac
r56abc3 r72f476b 4 4 AC_PREREQ(2.61) 5 5 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) 6 AC_CONFIG_SRCDIR([ output.h])6 AC_CONFIG_SRCDIR([reporter.h]) 7 7 AC_CONFIG_HEADER([config.h]) 8 8 -
reporter/dError.c
r56abc3 r72f476b 14 14 #include <stdio.h> 15 15 #include "config.h" 16 #include " output.h"16 #include "reporter.h" 17 17 #ifdef HAVE_CONFIG_H 18 18 #include <omalloc/omalloc.h> -
reporter/reporter.cc
r56abc3 r72f476b 21 21 #endif 22 22 23 #include " output.h"23 #include "reporter.h" 24 24 #include "omalloc.h" 25 25 //#include "options.h" -
reporter/reporter.h
r56abc3 r72f476b 10 10 #include <stdio.h> 11 11 #include <string.h> 12 13 #if (SIZEOF_LONG == 8) 14 typedef int BOOLEAN; 15 /* testet on x86_64, gcc 3.4.6: 2 % */ 16 /* testet on IA64, gcc 3.4.6: 1 % */ 17 #else 18 /* testet on athlon, gcc 2.95.4: 1 % */ 19 typedef short BOOLEAN; 20 #endif 21 22 #ifndef FALSE 23 #define FALSE 0 24 #endif 25 26 #ifndef TRUE 27 #define TRUE 1 28 #endif 29 30 12 #include <auxiliary.h> 31 13 32 14 extern char* feErrors; … … 70 52 void PrintNSpaces(const int n); 71 53 void PrintLn(); 72 #ifdef HAVE_TCL73 void PrintTCLS(const char c, const char * s);74 #else75 #define PrintTCLS(A,B) Print("TCL-ErrS:%s",B)76 #endif77 54 void PrintS(const char* s); 78 55 … … 80 57 } 81 58 /* the C++-part: */ 82 83 #ifdef HAVE_TCL84 85 inline void PrintTCL(const char c, int l,const char *s)86 {87 if (s!=NULL) printf("%c:%d:%s",c,l,s);88 else if(l==0) printf("%c:0:",c);89 else printf("%c:1:%c",c,'0'+l);90 fflush(stdout);91 }92 #else93 #define PrintTCL(A,B,C) Print("TCL-Err:%s",C)94 #endif /* HAVE_TCL */95 59 96 60 char * StringAppend(const char *fmt, ...);
Note: See TracChangeset
for help on using the changeset viewer.