Changeset 9b453d in git for MP/MP


Ignore:
Timestamp:
Jun 28, 1997, 3:30:27 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
f63611502719d5a4e491556ece5af1ae15aaf027
Parents:
0485bd9dfb879adc7036a1c7434f494b5f49835d
Message:
Wed Jun 25 09:04:25 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* MP_Env.c: extern "C" wrapper for includes sys/stat.h

	* MP_Put.c: changed bool identifier to mbool to avaoid clashes
	  when compiling with g++

Fri Jun 20 11:24:18 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* MP_Link.c: MP_SetLinkOptions: case MP_LINK_LOG_MASK_OPT,
	  assigned oldval


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

Legend:

Unmodified
Added
Removed
  • MP/MP/ChangeLog

    r0485bd r9b453d  
     1Wed Jun 25 09:04:25 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     2
     3        * MP_Env.c: extern "C" wrapper for includes sys/stat.h
     4
     5        * MP_Put.c: changed bool identifier to mbool to avaoid clashes
     6          when compiling with g++
     7
     8Fri Jun 20 11:24:18 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     9
     10        * MP_Link.c: MP_SetLinkOptions: case MP_LINK_LOG_MASK_OPT,
     11          assigned oldval
     12
    113Tue May 27 13:57:13 1997  Olaf Bachmann  <obachman@ratchwu>
    214
  • MP/MP/MP_Env.c

    r0485bd r9b453d  
    5757
    5858#ifndef lint
    59 static char vcid[] = "@(#) $Id: MP_Env.c,v 1.2 1997-06-05 16:38:52 obachman Exp $";
     59static char vcid[] = "@(#) $Id: MP_Env.c,v 1.3 1997-06-28 13:30:25 obachman Exp $";
    6060#endif /*lint */
    6161
     
    7070#include <unistd.h>
    7171#include <stdlib.h>
     72#ifdef __cplusplus
     73extern "C"
     74{
     75#endif 
     76#include <sys/stat.h>
     77#ifdef __cplusplus
     78}
     79#endif
    7280#endif  /* __WIN32__ */
    7381
     
    156164      fclose(env->logfd);
    157165#else
    158 #include <sys/stat.h>     
    159166      struct stat buf;
    160167     
  • MP/MP/MP_Link.c

    r0485bd r9b453d  
    139139
    140140#ifndef lint
    141 static char vcid[] = "@(#) $Id: MP_Link.c,v 1.1.1.1 1997-05-25 20:31:46 obachman Exp $";
     141static char vcid[] = "@(#) $Id: MP_Link.c,v 1.2 1997-06-28 13:30:26 obachman Exp $";
    142142#endif /* lint */
    143143
     
    542542
    543543    case MP_LINK_LOG_MASK_OPT:
     544        oldval = link->logmask;
    544545        switch (value) {
    545546        case MP_LOG_READ_EVENTS:
  • MP/MP/MP_Put.c

    r0485bd r9b453d  
    7878
    7979#ifndef lint
    80 static char vcid[] = "@(#) $Id: MP_Put.c,v 1.1.1.1 1997-05-25 20:31:46 obachman Exp $";
     80static char vcid[] = "@(#) $Id: MP_Put.c,v 1.2 1997-06-28 13:30:27 obachman Exp $";
    8181#endif /* lint */
    8282
     
    982982#ifdef __STDC__
    983983MP_Status_t MP_PutBooleanPacket(MP_Link_pt    link,
    984                                 MP_Boolean_t  bool,
     984                                MP_Boolean_t  mbool,
    985985                                MP_NumAnnot_t num_annots)
    986986#else
    987 MP_Status_t MP_PutBooleanPacket(link, bool, num_annots)
     987MP_Status_t MP_PutBooleanPacket(link, mbool, num_annots)
    988988    MP_Link_pt    link;
    989     MP_Boolean_t  bool;
     989    MP_Boolean_t  mbool;
    990990    MP_NumAnnot_t num_annots;
    991991#endif
    992992{
    993     if (!imp_put_node_header(link, MP_BooleanType, 0, bool, num_annots, 0))
     993    if (!imp_put_node_header(link, MP_BooleanType, 0, mbool, num_annots, 0))
    994994        return MP_SetError(link, MP_CantPutNodePacket);
    995995
     
    997997    if (link->logmask & MP_LOG_WRITE_EVENTS)
    998998        log_fixnum(link, MP_WRITE_EVENT, "Boolean_NP", MP_BooleanType,
    999                    num_annots, &bool);
    1000 #endif
    1001 
    1002     return MP_ClearError(link);
    1003 }
    1004 
    1005 
    1006 #ifdef __STDC__
    1007 MP_Status_t IMP_PutBoolean(MP_Link_pt link, MP_Boolean_t bool)
    1008 #else
    1009 MP_Status_t IMP_PutBoolean(link, bool)
     999                   num_annots, &mbool);
     1000#endif
     1001
     1002    return MP_ClearError(link);
     1003}
     1004
     1005
     1006#ifdef __STDC__
     1007MP_Status_t IMP_PutBoolean(MP_Link_pt link, MP_Boolean_t mbool)
     1008#else
     1009MP_Status_t IMP_PutBoolean(link, mbool)
    10101010    MP_Link_pt   link;
    1011     MP_Boolean_t bool;
    1012 #endif
    1013 {
    1014     if (!imp_put_node_header(link, MP_BooleanType, 0, bool, 0, 0))
     1011    MP_Boolean_t mbool;
     1012#endif
     1013{
     1014    if (!imp_put_node_header(link, MP_BooleanType, 0, mbool, 0, 0))
    10151015        return MP_SetError(link, MP_CantPutDataPacket);
    10161016
     
    10181018    if (link->logmask & MP_LOG_WRITE_EVENTS)
    10191019        log_fixnum(link, MP_WRITE_EVENT, "Boolean_DP", MP_BooleanType, 0,
    1020                    &bool);
     1020                   &mbool);
    10211021#endif
    10221022
Note: See TracChangeset for help on using the changeset viewer.