Changeset 52cc7a4 in git for kernel/structs.h


Ignore:
Timestamp:
Aug 18, 2008, 2:26:02 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6d898347af76d4482a05fd199bfbad769f001a03
Parents:
da2fc8d3786d00597bd91e3c2d5c1488846cb301
Message:
*hannes: code cleanup


git-svn-id: file:///usr/local/Singular/svn/trunk@11006 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/structs.h

    rda2fc8 r52cc7a4  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: structs.h,v 1.54 2008-08-18 10:39:57 Singular Exp $ */
     6/* $Id: structs.h,v 1.55 2008-08-18 12:25:35 Singular Exp $ */
    77/*
    88* ABSTRACT
     
    697697  int ncols;
    698698  #define IDELEMS(i) ((i)->ncols)
    699   inline int& idelems(void) { return ncols; }
    700699};
    701700
     
    771770
    772771#if defined(__cplusplus)
    773 inline int si_max(const int a, const int b)  { return (a>b) ? a : b; }
    774 inline int si_min(const int a, const int b)  { return (a<b) ? a : b; }
    775 inline long si_max(const long a, const long b)  { return (a>b) ? a : b; }
    776 inline long si_min(const long a, const long b)  { return (a<b) ? a : b; }
     772static inline int si_max(const int a, const int b)  { return (a>b) ? a : b; }
     773static inline int si_min(const int a, const int b)  { return (a<b) ? a : b; }
     774static inline long si_max(const long a, const long b)  { return (a>b) ? a : b; }
     775static inline long si_min(const long a, const long b)  { return (a<b) ? a : b; }
    777776#else
    778777#define si_max(A,B) ((A) > (B) ? (A) : (B))
Note: See TracChangeset for help on using the changeset viewer.