Changeset 9b453d in git for MP/MP/MP_Put.c


Ignore:
Timestamp:
Jun 28, 1997, 3:30:27 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.