Changeset 48ce9a in git


Ignore:
Timestamp:
Jul 27, 2005, 11:59:27 AM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
58ac0853e446e66c1775b4ecbc279060079c866a
Parents:
dcb1b7234585e33f2aa5d87adfdbc154c0cd591e
Message:
*hannes: removed MWERKS and macintosh (Mac 9) code


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

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    rdcb1b7 r48ce9a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.48 2005-05-06 14:21:19 Singular Exp $ */
     4/* $Id: cntrlc.cc,v 1.49 2005-07-27 09:59:26 Singular Exp $ */
    55/*
    66* ABSTRACT - interupt handling
     
    495495#endif /* !MSDOS */
    496496
    497 //#ifdef macintosh
    498 //#include <Types.h>
    499 //#include <Events.h>
    500 //#include <OSEvents.h>
    501 //#include <CursorCtl.h>
    502 //
    503 ///*3
    504 //* macintosh only:
    505 //* side effect of ^C is to insert EOF at the end of the current
    506 //* input selection. We must drain input, reach this EOF, then clear it
    507 //*/
    508 //static void flush_intr(void)
    509 //{
    510 //  int c;
    511 //
    512 //  while ((c=getchar())!=EOF);
    513 //  clearerr(stdin);
    514 //}
    515 //
    516 ///*3
    517 //* macintosh only:
    518 //* spin beach ball in MPW, allows MPW-tool to go to the background
    519 //* so you can use the finder and interrupts
    520 //*/
    521 //static void beachball(void)
    522 //{
    523 //  Show_Cursor(HIDDEN_CURSOR);
    524 //  SpinCursor(10);
    525 //}
    526 //#endif
    527 
    528497#ifndef MSDOS
    529498//void test_int()
    530499//{
    531 //#ifndef macintosh
    532500//  if (siCntrlc!=0)
    533501//  {
     
    535503//    siCntrlc = FALSE;
    536504//    si_set_signal(SIGINT ,sigint_handler);
    537 ////#ifdef macintosh
    538 ////    flush_intr();
    539 ////#endif
    540505//    iiDebug();
    541506//    si_echo = saveecho;
    542507//  }
    543 //#endif
    544508//}
    545509#endif /* !MSDOS */
  • Singular/iplib.cc

    rdcb1b7 r48ce9a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.115 2005-05-23 15:28:15 Singular Exp $ */
     4/* $Id: iplib.cc,v 1.116 2005-07-27 09:59:26 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    11501150//#if defined(WINNT)
    11511151//#  define  FS_SEP '\\'
    1152 //#elif defined(macintosh)
    1153 //#  define FS_SEP ','
    11541152//#else
    11551153//#  define FS_SEP '/'
  • Singular/misc.cc

    rdcb1b7 r48ce9a  
    9595*
    9696*#ifndef MSDOS
    97 *#ifndef macintosh
    9897*#include <sys/times.h>
    9998*#include <sys/resource.h>
     
    106105*  sleep(10);
    107106*}
    108 *#else
    109 *void very_nice(){}
    110 *#endif
    111107*#else
    112108*void very_nice(){}
  • Singular/mod2.h.in

    rdcb1b7 r48ce9a  
    66 *          DO NOT EDIT!
    77 *
    8  *  Version: $Id: mod2.h.in,v 1.111 2005-07-26 17:06:58 Singular Exp $
     8 *  Version: $Id: mod2.h.in,v 1.112 2005-07-27 09:59:27 Singular Exp $
    99 *******************************************************************/
    1010#ifndef MOD2_H
     
    216216/* Undefine to disable real time measurments  */
    217217#ifdef HAVE_GETTIMEOFDAY
    218 #if ! defined(__MWERKS__) && ! defined(MSDOS)
     218#if ! defined(MSDOS)
    219219#define HAVE_RTIMER
    220220#else
  • Singular/mpsr_Tok.cc

    rdcb1b7 r48ce9a  
    33****************************************/
    44
    5 /* $Id: mpsr_Tok.cc,v 1.30 2001-08-27 14:47:17 Singular Exp $ */
     5/* $Id: mpsr_Tok.cc,v 1.31 2005-07-27 09:59:27 Singular Exp $ */
    66
    77/***************************************************************
     
    580580
    581581// simply touch mpsr_Tok.inc so that Make does not get confused
    582 #if !defined(macintosh) && !defined(HPUX_9)
     582#if !defined(HPUX_9)
    583583extern "C" int system(char *);
    584584#else
     
    588588void mpsr_ttGen()
    589589{
    590 #ifndef macintosh
    591590  system("touch mpsr_Tok.inc");
    592 #else
    593   // simulate touch on a macintosh
    594   FILE *fd = fopen("mpsr_Tok.inc", "w");
    595   close(fd);
     591}
    596592#endif
    597 }
    598 #endif
    599593
    600594#endif // HAVE_MPSR
  • Singular/ndbm.cc

    rdcb1b7 r48ce9a  
    55//**************************************************************************/
    66//
    7 // $Id: ndbm.cc,v 1.15 2005-07-26 17:06:58 Singular Exp $
     7// $Id: ndbm.cc,v 1.16 2005-07-27 09:59:27 Singular Exp $
    88//
    99//**************************************************************************/
     
    3333
    3434#include <stdio.h>
    35 #ifdef __MWERKS__
    36 #   define bcopy(a,b,c) memmove(b,a,c)
    37 #   define EPERM 1
    38 #   define ENOMEM 23
    39 #   define ENOSPC 28
    40 #   define L_SET SEEK_SET
    41 #else
    42 #   include <sys/types.h>
    43 #   include <sys/stat.h>
    44 #   include <sys/file.h>
    45 #   include <errno.h>
    46 #   include <stdlib.h>
    47 #   include <string.h>
    48 #   include <unistd.h>
    49 #   include <fcntl.h>
    50 #endif
     35/* alternative:
     36* #   define EPERM 1
     37* #   define ENOMEM 23
     38* #   define ENOSPC 28
     39* #   define L_SET SEEK_SET
     40*/
     41#include <sys/types.h>
     42#include <sys/stat.h>
     43#include <sys/file.h>
     44#include <errno.h>
     45#include <stdlib.h>
     46#include <string.h>
     47#include <unistd.h>
     48#include <fcntl.h>
    5149#ifndef HAVE_BCOPY
    5250#   define bcopy(a,b,c) memmove(b,a,c)
     
    7876    return ((DBM *)0);
    7977  }
    80 #ifdef macintosh
    81   // It seems that the compile has some problems to commit the flags properly
    82   // O_RDWR | O_CREAT = 0x102 change to 0x200. We don't know why.
    83   // setting flags to O_RDWR | O_CREAT solved our problem. :-(
    84   flags = O_RDWR | O_CREAT;
    85 #endif /* macintosh */
    8678#ifdef MSDOS
    8779  // default mode of open is ascii, we need binary mode.
  • Singular/tesths.cc

    rdcb1b7 r48ce9a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.99 2005-07-26 17:06:58 Singular Exp $ */
     4/* $Id: tesths.cc,v 1.100 2005-07-27 09:59:27 Singular Exp $ */
    55
    66/*
     
    150150    sdb_flags = 0;
    151151#endif
    152 #ifdef __MWERKS__
    153     memcpy(stderr,stdout,sizeof(FILE));
    154 #else
    155152    dup2(1,2);
    156 #endif
     153    /* alternative:
     154    *    memcpy(stderr,stdout,sizeof(FILE));
     155    */
    157156  }
    158157  slStandardInit();
Note: See TracChangeset for help on using the changeset viewer.