Changeset 1663 in Sophya for trunk/ArchTOIPipe/Kernel


Ignore:
Timestamp:
Oct 1, 2001, 4:01:35 PM (24 years ago)
Author:
aubourg
Message:

darwin

Location:
trunk/ArchTOIPipe/Kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/Makefile.in

    r1480 r1663  
    4040 ifeq ($(CXX), cxx)
    4141  CXXFLAGS := -O -g -D__USE_STD_IOSTREAM
     42  LIBS := $(LIBS) -pthread
    4243 endif
    4344endif
     
    7778libatkern.a: $(FILES)
    7879        $(AR) -cr libatkern.a $(FILES)
     80        ranlib libatkern.a
    7981        ln -f libatkern.a ../libatkern.a
    8082
     
    8486
    8587%: %.o $(FILES)
    86         $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread -o $@ -lm
     88        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
    8789
    8890%.o:$(srcdir)/%.cc
    89         $(COMPILE.cc) -pthread -o $@ $<
     91        $(COMPILE.cc) -o $@ $<
    9092
    9193%.o:$(srcdir)/%.c
    92         $(COMPILE.c) -pthread -o $@ $<
     94        $(COMPILE.c) -o $@ $<
    9395
    9496
  • trunk/ArchTOIPipe/Kernel/toiprocessor.cc

    r1629 r1663  
    22#include "toimanager.h"
    33#include <pthread.h>
     4
     5#ifdef HAVE_VALUES_H
    46#include <values.h>
     7#endif
     8
     9#ifndef MAXINT
     10#define MAXINT 2147483647
     11#endif
     12
     13#ifdef HAVE_STDINT_H
     14#include <stdint.h>
     15#endif
    516
    617#ifdef WITH_SOPHYA
     
    8899
    89100int TOIProcessor::getMaxIn() {
    90   int nIn = inIx.size();
    91   int maxIn = MAXINT;
     101  int_4 nIn = inIx.size();
     102  int_4 maxIn = MAXINT;
    92103  for (int i=0; i<nIn; i++) {
    93104    TOI* toi = inTOIs[i];
    94105    if (toi == NULL) continue;  // Protection - Reza  13/3/2001
    95     int x = toi->getMaxSn();
     106    int_4 x = toi->getMaxSn();
    96107    if (x < maxIn) maxIn = x;
    97108  }
Note: See TracChangeset for help on using the changeset viewer.