Changeset 48ce9a in git
- Timestamp:
- Jul 27, 2005, 11:59:27 AM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 58ac0853e446e66c1775b4ecbc279060079c866a
- Parents:
- dcb1b7234585e33f2aa5d87adfdbc154c0cd591e
- Location:
- Singular
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
rdcb1b7 r48ce9a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.4 8 2005-05-06 14:21:19Singular Exp $ */4 /* $Id: cntrlc.cc,v 1.49 2005-07-27 09:59:26 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling … … 495 495 #endif /* !MSDOS */ 496 496 497 //#ifdef macintosh498 //#include <Types.h>499 //#include <Events.h>500 //#include <OSEvents.h>501 //#include <CursorCtl.h>502 //503 ///*3504 //* macintosh only:505 //* side effect of ^C is to insert EOF at the end of the current506 //* input selection. We must drain input, reach this EOF, then clear it507 //*/508 //static void flush_intr(void)509 //{510 // int c;511 //512 // while ((c=getchar())!=EOF);513 // clearerr(stdin);514 //}515 //516 ///*3517 //* macintosh only:518 //* spin beach ball in MPW, allows MPW-tool to go to the background519 //* so you can use the finder and interrupts520 //*/521 //static void beachball(void)522 //{523 // Show_Cursor(HIDDEN_CURSOR);524 // SpinCursor(10);525 //}526 //#endif527 528 497 #ifndef MSDOS 529 498 //void test_int() 530 499 //{ 531 //#ifndef macintosh532 500 // if (siCntrlc!=0) 533 501 // { … … 535 503 // siCntrlc = FALSE; 536 504 // si_set_signal(SIGINT ,sigint_handler); 537 ////#ifdef macintosh538 //// flush_intr();539 ////#endif540 505 // iiDebug(); 541 506 // si_echo = saveecho; 542 507 // } 543 //#endif544 508 //} 545 509 #endif /* !MSDOS */ -
Singular/iplib.cc
rdcb1b7 r48ce9a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.11 5 2005-05-23 15:28:15Singular Exp $ */4 /* $Id: iplib.cc,v 1.116 2005-07-27 09:59:26 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 1150 1150 //#if defined(WINNT) 1151 1151 //# define FS_SEP '\\' 1152 //#elif defined(macintosh)1153 //# define FS_SEP ','1154 1152 //#else 1155 1153 //# define FS_SEP '/' -
Singular/misc.cc
rdcb1b7 r48ce9a 95 95 * 96 96 *#ifndef MSDOS 97 *#ifndef macintosh98 97 *#include <sys/times.h> 99 98 *#include <sys/resource.h> … … 106 105 * sleep(10); 107 106 *} 108 *#else109 *void very_nice(){}110 *#endif111 107 *#else 112 108 *void very_nice(){} -
Singular/mod2.h.in
rdcb1b7 r48ce9a 6 6 * DO NOT EDIT! 7 7 * 8 * Version: $Id: mod2.h.in,v 1.11 1 2005-07-26 17:06:58Singular Exp $8 * Version: $Id: mod2.h.in,v 1.112 2005-07-27 09:59:27 Singular Exp $ 9 9 *******************************************************************/ 10 10 #ifndef MOD2_H … … 216 216 /* Undefine to disable real time measurments */ 217 217 #ifdef HAVE_GETTIMEOFDAY 218 #if ! defined( __MWERKS__) && ! defined(MSDOS)218 #if ! defined(MSDOS) 219 219 #define HAVE_RTIMER 220 220 #else -
Singular/mpsr_Tok.cc
rdcb1b7 r48ce9a 3 3 ****************************************/ 4 4 5 /* $Id: mpsr_Tok.cc,v 1.3 0 2001-08-27 14:47:17 Singular Exp $ */5 /* $Id: mpsr_Tok.cc,v 1.31 2005-07-27 09:59:27 Singular Exp $ */ 6 6 7 7 /*************************************************************** … … 580 580 581 581 // simply touch mpsr_Tok.inc so that Make does not get confused 582 #if !defined( macintosh) && !defined(HPUX_9)582 #if !defined(HPUX_9) 583 583 extern "C" int system(char *); 584 584 #else … … 588 588 void mpsr_ttGen() 589 589 { 590 #ifndef macintosh591 590 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 } 596 592 #endif 597 }598 #endif599 593 600 594 #endif // HAVE_MPSR -
Singular/ndbm.cc
rdcb1b7 r48ce9a 5 5 //**************************************************************************/ 6 6 // 7 // $Id: ndbm.cc,v 1.1 5 2005-07-26 17:06:58Singular Exp $7 // $Id: ndbm.cc,v 1.16 2005-07-27 09:59:27 Singular Exp $ 8 8 // 9 9 //**************************************************************************/ … … 33 33 34 34 #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> 51 49 #ifndef HAVE_BCOPY 52 50 # define bcopy(a,b,c) memmove(b,a,c) … … 78 76 return ((DBM *)0); 79 77 } 80 #ifdef macintosh81 // It seems that the compile has some problems to commit the flags properly82 // 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 */86 78 #ifdef MSDOS 87 79 // default mode of open is ascii, we need binary mode. -
Singular/tesths.cc
rdcb1b7 r48ce9a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1. 99 2005-07-26 17:06:58Singular Exp $ */4 /* $Id: tesths.cc,v 1.100 2005-07-27 09:59:27 Singular Exp $ */ 5 5 6 6 /* … … 150 150 sdb_flags = 0; 151 151 #endif 152 #ifdef __MWERKS__153 memcpy(stderr,stdout,sizeof(FILE));154 #else155 152 dup2(1,2); 156 #endif 153 /* alternative: 154 * memcpy(stderr,stdout,sizeof(FILE)); 155 */ 157 156 } 158 157 slStandardInit();
Note: See TracChangeset
for help on using the changeset viewer.