"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "have_offscl.c" between
calc-2.12.7.2.tar.bz2 and calc-2.12.7.6.tar.bz2

About: Calc is a C-style arbitrary precision calculator.

have_offscl.c  (calc-2.12.7.2.tar.bz2):have_offscl.c  (calc-2.12.7.6.tar.bz2)
/* /*
* have_offscl - determine if we have a scalar off_t element * have_offscl - determine if we have a scalar off_t element
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation. * as published by the Free Software Foundation.
* *
* Calc is distributed in the hope that it will be useful, but WITHOUT * Calc is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
* Public License for more details. * Public License for more details.
* *
skipping to change at line 48 skipping to change at line 48
* This prog outputs several defines: * This prog outputs several defines:
* *
* HAVE_OFF_T_SCALAR * HAVE_OFF_T_SCALAR
* defined ==> ok to perform arithmetic ops, = and comparisons * defined ==> ok to perform arithmetic ops, = and comparisons
* undefined ==> convert to ZVALUE first * undefined ==> convert to ZVALUE first
*/ */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
int int
main(void) main(void)
{ {
#if !defined(OFF_T_NON_SCALAR) #if !defined(OFF_T_NON_SCALAR)
off_t value; /* an off_t to perform arithmatic on */ off_t value; /* an off_t to perform arithmatic on */
off_t value2; /* an off_t to perform arithmatic on */ off_t value2; /* an off_t to perform arithmatic on */
/* /*
* do some math opts on an off_t * do some math opts on an off_t
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)