Changeset 1dc616 in git
- Timestamp:
- May 15, 2006, 10:17:57 AM (17 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 181148eb58afcf5d585ec06f89fbab21c1ab9c99
- Parents:
- e5102ce459d04b385f3c94f631b05329d7681e20
- Location:
- factory
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/bifac.h
re5102c r1dc616 22 22 #ifndef NOSTREAMIO 23 23 #include <stdio.h> 24 #ifdef HAVE_IOSTREAM 25 #include <fstream> 26 #include <iostream> 27 #elif defined(HAVE_IOSTREAM_H) 24 28 #include <fstream.h> 25 29 #include <iostream.h> 30 #endif 26 31 #include <iomanip.h> 27 32 #endif -
factory/canonicalform.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: canonicalform.h,v 1.3 0 2005-12-09 08:35:37Singular Exp $ */2 /* $Id: canonicalform.h,v 1.31 2006-05-15 08:17:49 Singular Exp $ */ 3 3 4 4 #ifndef INCL_CANONICALFORM_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/cf_eval.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_eval.h,v 1. 3 1997-06-19 12:27:20 schmidtExp $ */2 /* $Id: cf_eval.h,v 1.4 2006-05-15 08:17:50 Singular Exp $ */ 3 3 4 4 #ifndef INCL_CF_EVAL_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/cf_map.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_map.h,v 1.1 2 2000-05-29 15:05:21Singular Exp $ */2 /* $Id: cf_map.h,v 1.13 2006-05-15 08:17:50 Singular Exp $ */ 3 3 4 4 #ifndef INCL_CF_MAP_H … … 14 14 15 15 #ifndef NOSTREAMIO 16 #ifdef HAVE_IOSTREAM 17 #include <iostream> 18 #elif defined(HAVE_IOSTREAM_H) 16 19 #include <iostream.h> 20 #endif 17 21 #endif /* NOSTREAMIO */ 18 22 -
factory/config.h.in
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C -*- */ 2 /* $Id: config.h.in,v 1.1 2 2005-11-08 18:08:58Singular Exp $ */2 /* $Id: config.h.in,v 1.13 2006-05-15 08:17:50 Singular Exp $ */ 3 3 4 4 #ifndef INCL_CONFIG_H … … 50 50 #undef NOSTREAMIO 51 51 52 /* which C++ header variants to use */ 53 #undef HAVE_IOSTREAM_H 54 #undef HAVE_FSTREAM_H 55 #undef HAVE_STRSTREAM_H 56 57 #undef HAVE_IOSTREAM 58 #undef HAVE_FSTREAM 59 #undef HAVE_STRING 60 52 61 /* define if linked to Singular */ 53 62 #undef SINGULAR -
factory/configure
re5102c r1dc616 1883 1883 1884 1884 if test "x$enable_streamio" != xno; then 1885 for ac_hdr in iostream.h strstream.h fstream.h 1885 for ac_hdr in iostream.h strstream.h fstream.h iostream string fstream 1886 1886 do 1887 1887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` … … 1920 1920 else 1921 1921 echo "$ac_t""no" 1>&6 1922 echo "configure: warning: C++ header files not found" 1>&21923 1922 fi 1924 1923 done … … 1928 1927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1929 1928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1930 echo "configure:193 1: checking for $ac_hdr" >&51929 echo "configure:1930: checking for $ac_hdr" >&5 1931 1930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1932 1931 echo $ac_n "(cached) $ac_c" 1>&6 1933 1932 else 1934 1933 cat > conftest.$ac_ext <<EOF 1935 #line 193 6"configure"1934 #line 1935 "configure" 1936 1935 #include "confdefs.h" 1937 1936 #include <$ac_hdr> 1938 1937 EOF 1939 1938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1940 { (eval echo configure:194 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1941 1940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1942 1941 if test -z "$ac_err"; then … … 1972 1971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1973 1972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1974 echo "configure:197 5: checking for $ac_hdr" >&51973 echo "configure:1974: checking for $ac_hdr" >&5 1975 1974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1976 1975 echo $ac_n "(cached) $ac_c" 1>&6 1977 1976 else 1978 1977 cat > conftest.$ac_ext <<EOF 1979 #line 19 80"configure"1978 #line 1979 "configure" 1980 1979 #include "confdefs.h" 1981 1980 #include <$ac_hdr> 1982 1981 EOF 1983 1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1984 { (eval echo configure:198 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1985 1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1986 1985 if test -z "$ac_err"; then … … 2018 2017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2019 2018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2020 echo "configure:202 1: checking for $ac_hdr" >&52019 echo "configure:2020: checking for $ac_hdr" >&5 2021 2020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2022 2021 echo $ac_n "(cached) $ac_c" 1>&6 2023 2022 else 2024 2023 cat > conftest.$ac_ext <<EOF 2025 #line 202 6"configure"2024 #line 2025 "configure" 2026 2025 #include "confdefs.h" 2027 2026 #include <$ac_hdr> 2028 2027 EOF 2029 2028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2030 { (eval echo configure:203 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2029 { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2031 2030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2032 2031 if test -z "$ac_err"; then … … 2062 2061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2063 2062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2064 echo "configure:206 5: checking for $ac_hdr" >&52063 echo "configure:2064: checking for $ac_hdr" >&5 2065 2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2066 2065 echo $ac_n "(cached) $ac_c" 1>&6 2067 2066 else 2068 2067 cat > conftest.$ac_ext <<EOF 2069 #line 20 70"configure"2068 #line 2069 "configure" 2070 2069 #include "confdefs.h" 2071 2070 #include <$ac_hdr> 2072 2071 EOF 2073 2072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2074 { (eval echo configure:207 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2073 { (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2075 2074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2076 2075 if test -z "$ac_err"; then … … 2129 2128 # arithmetic shift 2130 2129 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6 2131 echo "configure:213 2: checking whether your compiler does arithmetic shifts" >&52130 echo "configure:2131: checking whether your compiler does arithmetic shifts" >&5 2132 2131 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 2133 2132 echo $ac_n "(cached) $ac_c" 1>&6 … … 2138 2137 else 2139 2138 cat > conftest.$ac_ext <<EOF 2140 #line 214 1"configure"2139 #line 2140 "configure" 2141 2140 #include "confdefs.h" 2142 2141 int main() { if (-2 >> 1 == -1) return(0); else return(1); } 2143 2142 EOF 2144 if { (eval echo configure:214 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2145 2144 then 2146 2145 ac_cv_shift=yes … … 2224 2223 # check whether CXX accepts -fno-rtti 2225 2224 echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6 2226 echo "configure:222 7: checking whether gcc accepts -fno-rtti" >&52225 echo "configure:2226: checking whether gcc accepts -fno-rtti" >&5 2227 2226 tmp_flags=${CXXFLAGS} 2228 2227 CXXFLAGS="${CXXFLAGS} -fno-rtti" … … 2231 2230 else 2232 2231 cat > conftest.$ac_ext <<EOF 2233 #line 223 4"configure"2232 #line 2233 "configure" 2234 2233 #include "confdefs.h" 2235 2234 … … 2238 2237 ; return 0; } 2239 2238 EOF 2240 if { (eval echo configure:224 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2241 2240 rm -rf conftest* 2242 2241 ac_cv_cxx_have_rtti=yes … … 2258 2257 2259 2258 echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6 2260 echo "configure:226 1: checking whether gcc accepts -fno-exceptions" >&52259 echo "configure:2260: checking whether gcc accepts -fno-exceptions" >&5 2261 2260 tmp_flags=${CXXFLAGS} 2262 2261 CXXFLAGS="${CXXFLAGS} -fno-exceptions" … … 2265 2264 else 2266 2265 cat > conftest.$ac_ext <<EOF 2267 #line 226 8"configure"2266 #line 2267 "configure" 2268 2267 #include "confdefs.h" 2269 2268 … … 2272 2271 ; return 0; } 2273 2272 EOF 2274 if { (eval echo configure:227 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2275 2274 rm -rf conftest* 2276 2275 ac_cv_cxx_have_exceptions=yes … … 2340 2339 2341 2340 echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6 2342 echo "configure:234 3: checking whether to use omalloc" >&52341 echo "configure:2342: checking whether to use omalloc" >&5 2343 2342 2344 2343 if test "$with_omalloc" = yes; then -
factory/configure.in
re5102c r1dc616 1 1 dnl # emacs edit mode for this file is -*- sh -*- 2 dnl # $Id: configure.in,v 1.4 4 2006-05-03 15:17:21Singular Exp $2 dnl # $Id: configure.in,v 1.45 2006-05-15 08:17:52 Singular Exp $ 3 3 4 4 dnl # … … 13 13 # - initialisation. 14 14 # 15 AC_REVISION($Id: configure.in,v 1.4 4 2006-05-03 15:17:21Singular Exp $)15 AC_REVISION($Id: configure.in,v 1.45 2006-05-15 08:17:52 Singular Exp $) 16 16 AC_INIT(canonicalform.cc) 17 17 AC_CONFIG_HEADER(config.h) … … 269 269 270 270 if test "x$enable_streamio" != xno; then 271 AC_CHECK_HEADERS(iostream.h strstream.h fstream.h, , 272 [ AC_MSG_WARN(C++ header files not found) ]) 271 AC_CHECK_HEADERS(iostream.h strstream.h fstream.h iostream string fstream) 273 272 AC_CHECK_HEADERS(ctype.h, , [ AC_MSG_ERROR(standard C header files not found) ]) 274 273 -
factory/debug.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: debug.h,v 1. 5 1997-06-19 12:23:48 schmidtExp $ */2 /* $Id: debug.h,v 1.6 2006-05-15 08:17:52 Singular Exp $ */ 3 3 4 4 /* It should be possible to include this file multiple times for different */ … … 13 13 14 14 #ifdef DEBUGOUTPUT 15 #ifdef HAVE_IOSTREAM 16 #include <iostream> 17 #elif defined(HAVE_IOSTREAM_H) 15 18 #include <iostream.h> 19 #endif 16 20 void deb_inc_level(); 17 21 void deb_dec_level(); -
factory/fac_iterfor.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: fac_iterfor.h,v 1. 4 1997-06-19 12:23:29 schmidtExp $ */2 /* $Id: fac_iterfor.h,v 1.5 2006-05-15 08:17:52 Singular Exp $ */ 3 3 4 4 #ifndef INCL_FAC_ITERFOR_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/ftmpl_matrix.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_matrix.h,v 1. 2 2005-06-13 09:46:35Singular Exp $ */2 /* $Id: ftmpl_matrix.h,v 1.3 2006-05-15 08:17:53 Singular Exp $ */ 3 3 4 4 #ifndef INCL_MATRIX_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/gengftables.cc
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: gengftables.cc,v 1. 2 1997-10-23 13:25:52 schmidtExp $ */2 /* $Id: gengftables.cc,v 1.3 2006-05-15 08:17:53 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 11 11 //}}} 12 12 13 #ifdef HAVE_IOSTREAM 14 #include <iostream> 15 #include <fstream> 16 #include <strstream> 17 #elif defined(HAVE_IOSTREAM_H) 13 18 #include <iostream.h> 14 19 #include <fstream.h> 15 20 #include <strstream.h> 21 #endif 16 22 17 23 #include <factory.h> -
factory/gfops.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: gfops.h,v 1. 6 1997-11-19 11:43:24 schmidtExp $ */2 /* $Id: gfops.h,v 1.7 2006-05-15 08:17:53 Singular Exp $ */ 3 3 4 4 #ifndef INCL_GFOPS_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/imm.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: imm.h,v 1.2 0 2005-11-08 18:08:58Singular Exp $ */2 /* $Id: imm.h,v 1.21 2006-05-15 08:17:53 Singular Exp $ */ 3 3 4 4 #ifndef INCL_IMM_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/int_cf.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_cf.h,v 1.1 0 1998-06-26 16:13:49 schmidtExp $ */2 /* $Id: int_cf.h,v 1.11 2006-05-15 08:17:54 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_CF_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/int_int.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_int.h,v 1.1 2 2006-05-02 12:21:07Singular Exp $ */2 /* $Id: int_int.h,v 1.13 2006-05-15 08:17:54 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_INT_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/int_poly.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_poly.h,v 1. 8 2006-05-02 12:21:07Singular Exp $ */2 /* $Id: int_poly.h,v 1.9 2006-05-15 08:17:54 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_POLY_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/int_pp.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_pp.h,v 1. 4 2003-10-15 17:19:41Singular Exp $ */2 /* $Id: int_pp.h,v 1.5 2006-05-15 08:17:54 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_PP_H … … 10 10 11 11 #ifndef NOSTREAMIO 12 #ifdef HAVE_IOSTREAM 13 #include <iostream> 14 #elif defined(HAVE_IOSTREAM_H) 12 15 #include <iostream.h> 16 #endif 13 17 #endif /* NOSTREAMIO */ 14 18 -
factory/int_rat.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_rat.h,v 1. 6 1998-06-26 16:16:08 schmidtExp $ */2 /* $Id: int_rat.h,v 1.7 2006-05-15 08:17:55 Singular Exp $ */ 3 3 4 4 #ifndef INCL_INT_RAT_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/readcf.cc
re5102c r1dc616 1 1 2 /* A Bison parser, made from ../factory-normal/readcf.y 3 by GNU Bison version 1.25 4 */ 2 /* A Bison parser, made from readcf.y 3 by GNU Bison version 1.28 */ 5 4 6 5 #define YYBISON 1 /* Identify Bison output. */ 7 6 8 #define NUM 25 89 #define NEG 25 910 11 #line 4 " ../factory-normal/readcf.y"7 #define NUM 257 8 #define NEG 258 9 10 #line 4 "readcf.y" 12 11 13 12 … … 21 20 22 21 #include <ctype.h> 22 #ifdef HAVE_IOSTREAM 23 #include <iostream> 24 #elif defined(HAVE_IOSTREAM_H) 23 25 #include <iostream.h> 26 #endif 27 24 28 25 29 #include "assert.h" … … 66 70 #define YYNTBASE 13 67 71 68 #define YYTRANSLATE(x) ((unsigned)(x) <= 25 9? yytranslate[x] : 16)72 #define YYTRANSLATE(x) ((unsigned)(x) <= 258 ? yytranslate[x] : 16) 69 73 70 74 static const char yytranslate[] = { 0, … … 94 98 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 95 99 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 96 2, 2, 2, 2, 2, 1, 2,3, 8100 2, 2, 2, 2, 2, 1, 3, 8 97 101 }; 98 102 … … 114 118 #if YYDEBUG != 0 115 119 static const short yyrline[] = { 0, 116 56, 57, 60, 61, 64, 65, 66, 67, 68, 69,117 7 0, 71, 72120 61, 62, 65, 66, 69, 70, 71, 72, 73, 74, 121 75, 76, 77 118 122 }; 119 123 #endif … … 178 182 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ 179 183 #line 3 "/usr/lib/bison.simple" 184 /* This file comes from bison-1.28. */ 180 185 181 186 /* Skeleton output parser for bison, … … 194 199 You should have received a copy of the GNU General Public License 195 200 along with this program; if not, write to the Free Software 196 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 201 Foundation, Inc., 59 Temple Place - Suite 330, 202 Boston, MA 02111-1307, USA. */ 197 203 198 204 /* As a special exception, when this file is copied by Bison into a … … 201 207 in version 1.24 of Bison. */ 202 208 203 #ifndef alloca204 #ifdef __GNUC__205 #define alloca __builtin_alloca206 #else /* not GNU C. */207 #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)208 #include <alloca.h>209 #else /* not sparc */210 #if defined (MSDOS) && !defined (__TURBOC__)211 #include <malloc.h>212 #else /* not MSDOS, or __TURBOC__ */213 #if defined(_AIX)214 #include <malloc.h>215 #pragma alloca216 #else /* not MSDOS, __TURBOC__, or _AIX */217 #ifdef __hpux218 #ifdef __cplusplus219 extern "C" {220 void *alloca (unsigned int);221 };222 #else /* not __cplusplus */223 void *alloca ();224 #endif /* not __cplusplus */225 #endif /* __hpux */226 #endif /* not _AIX */227 #endif /* not MSDOS, or __TURBOC__ */228 #endif /* not sparc. */229 #endif /* not GNU C. */230 #endif /* alloca not defined. */231 232 209 /* This is the parser code that is written into each bison parser 233 210 when the %semantic_parser declaration is not specified in the grammar. … … 235 212 used when %semantic_parser is specified. */ 236 213 214 #ifndef YYSTACK_USE_ALLOCA 215 #ifdef alloca 216 #define YYSTACK_USE_ALLOCA 217 #else /* alloca not defined */ 218 #ifdef __GNUC__ 219 #define YYSTACK_USE_ALLOCA 220 #define alloca __builtin_alloca 221 #else /* not GNU C. */ 222 #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) 223 #define YYSTACK_USE_ALLOCA 224 #include <alloca.h> 225 #else /* not sparc */ 226 /* We think this test detects Watcom and Microsoft C. */ 227 /* This used to test MSDOS, but that is a bad idea 228 since that symbol is in the user namespace. */ 229 #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) 230 #if 0 /* No need for malloc.h, which pollutes the namespace; 231 instead, just don't use alloca. */ 232 #include <malloc.h> 233 #endif 234 #else /* not MSDOS, or __TURBOC__ */ 235 #if defined(_AIX) 236 /* I don't know what this was needed for, but it pollutes the namespace. 237 So I turned it off. rms, 2 May 1997. */ 238 /* #include <malloc.h> */ 239 #pragma alloca 240 #define YYSTACK_USE_ALLOCA 241 #else /* not MSDOS, or __TURBOC__, or _AIX */ 242 #if 0 243 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, 244 and on HPUX 10. Eventually we can turn this on. */ 245 #define YYSTACK_USE_ALLOCA 246 #define alloca __builtin_alloca 247 #endif /* __hpux */ 248 #endif 249 #endif /* not _AIX */ 250 #endif /* not MSDOS, or __TURBOC__ */ 251 #endif /* not sparc */ 252 #endif /* not GNU C */ 253 #endif /* alloca not defined */ 254 #endif /* YYSTACK_USE_ALLOCA not defined */ 255 256 #ifdef YYSTACK_USE_ALLOCA 257 #define YYSTACK_ALLOC alloca 258 #else 259 #define YYSTACK_ALLOC malloc 260 #endif 261 237 262 /* Note: there must be only one dollar sign in this file. 238 263 It is replaced by the list of actions, each action … … 243 268 #define YYEMPTY -2 244 269 #define YYEOF 0 245 #define YYACCEPT return(0)246 #define YYABORT return(1)270 #define YYACCEPT goto yyacceptlab 271 #define YYABORT goto yyabortlab 247 272 #define YYERROR goto yyerrlab1 248 273 /* Like YYERROR except do call yyerror. … … 326 351 #endif 327 352 328 /* Prevent warning if -Wstrict-prototypes. */ 329 #ifdef __GNUC__ 330 int yyparse (void); 331 #endif 332 353 354 /* Define __yy_memcpy. Note that the size argument 355 should be passed with type unsigned int, because that is what the non-GCC 356 definitions require. With GCC, __builtin_memcpy takes an arg 357 of type size_t, but it can handle unsigned int. */ 333 358 334 359 #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ … … 343 368 char *to; 344 369 char *from; 345 int count;370 unsigned int count; 346 371 { 347 372 register char *f = from; … … 358 383 in available built-in functions on various systems. */ 359 384 static void 360 __yy_memcpy (char *to, char *from, int count)385 __yy_memcpy (char *to, char *from, unsigned int count) 361 386 { 387 register char *t = to; 362 388 register char *f = from; 363 register char *t = to;364 389 register int i = count; 365 390 … … 372 397 373 398 374 #line 196"/usr/lib/bison.simple"399 #line 217 "/usr/lib/bison.simple" 375 400 376 401 /* The user can define YYPARSE_PARAM as the name of an argument to be passed … … 393 418 #endif /* not YYPARSE_PARAM */ 394 419 420 /* Prevent warning if -Wstrict-prototypes. */ 421 #ifdef __GNUC__ 422 #ifdef YYPARSE_PARAM 423 int yyparse (void *); 424 #else 425 int yyparse (void); 426 #endif 427 #endif 428 395 429 int 396 430 yyparse(YYPARSE_PARAM_ARG) … … 421 455 422 456 int yystacksize = YYINITDEPTH; 457 int yyfree_stacks = 0; 423 458 424 459 #ifdef YYPURE … … 505 540 { 506 541 yyerror("parser stack overflow"); 542 if (yyfree_stacks) 543 { 544 free (yyss); 545 free (yyvs); 546 #ifdef YYLSP_NEEDED 547 free (yyls); 548 #endif 549 } 507 550 return 2; 508 551 } … … 510 553 if (yystacksize > YYMAXDEPTH) 511 554 yystacksize = YYMAXDEPTH; 512 yyss = (short *) alloca (yystacksize * sizeof (*yyssp)); 513 __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp)); 514 yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp)); 515 __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp)); 516 #ifdef YYLSP_NEEDED 517 yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp)); 518 __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp)); 555 #ifndef YYSTACK_USE_ALLOCA 556 yyfree_stacks = 1; 557 #endif 558 yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); 559 __yy_memcpy ((char *)yyss, (char *)yyss1, 560 size * (unsigned int) sizeof (*yyssp)); 561 yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); 562 __yy_memcpy ((char *)yyvs, (char *)yyvs1, 563 size * (unsigned int) sizeof (*yyvsp)); 564 #ifdef YYLSP_NEEDED 565 yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); 566 __yy_memcpy ((char *)yyls, (char *)yyls1, 567 size * (unsigned int) sizeof (*yylsp)); 519 568 #endif 520 569 #endif /* no yyoverflow */ … … 677 726 678 727 case 4: 679 #line 6 1 "../factory-normal/readcf.y"728 #line 66 "readcf.y" 680 729 { *retvalue = yyvsp[-1].getval(); return 0; ; 681 730 break;} 682 731 case 5: 683 #line 6 4 "../factory-normal/readcf.y"732 #line 69 "readcf.y" 684 733 { yyval = yyvsp[0]; ; 685 734 break;} 686 735 case 6: 687 #line 65 "../factory-normal/readcf.y"736 #line 70 "readcf.y" 688 737 { yyval = yyvsp[-2].getval() + yyvsp[0].getval(); ; 689 738 break;} 690 739 case 7: 691 #line 66 "../factory-normal/readcf.y"740 #line 71 "readcf.y" 692 741 { yyval = yyvsp[-2].getval() - yyvsp[0].getval(); ; 693 742 break;} 694 743 case 8: 695 #line 67 "../factory-normal/readcf.y"744 #line 72 "readcf.y" 696 745 { yyval = yyvsp[-2].getval() * yyvsp[0].getval(); ; 697 746 break;} 698 747 case 9: 699 #line 68 "../factory-normal/readcf.y"748 #line 73 "readcf.y" 700 749 { yyval = yyvsp[-2].getval() / yyvsp[0].getval(); ; 701 750 break;} 702 751 case 10: 703 #line 69 "../factory-normal/readcf.y"752 #line 74 "readcf.y" 704 753 { yyval = -yyvsp[0].getval(); ; 705 754 break;} 706 755 case 11: 707 #line 7 0 "../factory-normal/readcf.y"756 #line 75 "readcf.y" 708 757 { yyval = yyvsp[0].getval(); ; 709 758 break;} 710 759 case 12: 711 #line 7 1 "../factory-normal/readcf.y"760 #line 76 "readcf.y" 712 761 { yyval = power( yyvsp[-2].getval(), yyvsp[0].getintval() ); ; 713 762 break;} 714 763 case 13: 715 #line 7 2 "../factory-normal/readcf.y"764 #line 77 "readcf.y" 716 765 { yyval = yyvsp[-1].getval(); ; 717 766 break;} 718 767 } 719 768 /* the action file gets copied in in place of this dollarsign */ 720 #line 498"/usr/lib/bison.simple"769 #line 543 "/usr/lib/bison.simple" 721 770 722 771 … … 914 963 yystate = yyn; 915 964 goto yynewstate; 965 966 yyacceptlab: 967 /* YYACCEPT comes here. */ 968 if (yyfree_stacks) 969 { 970 free (yyss); 971 free (yyvs); 972 #ifdef YYLSP_NEEDED 973 free (yyls); 974 #endif 975 } 976 return 0; 977 978 yyabortlab: 979 /* YYABORT comes here. */ 980 if (yyfree_stacks) 981 { 982 free (yyss); 983 free (yyvs); 984 #ifdef YYLSP_NEEDED 985 free (yyls); 986 #endif 987 } 988 return 1; 916 989 } 917 #line 75 "../factory-normal/readcf.y"990 #line 80 "readcf.y" 918 991 919 992 -
factory/readcf.y
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: readcf.y,v 1. 8 1998-06-12 14:33:57 schmidtExp $ */2 /* $Id: readcf.y,v 1.9 2006-05-15 08:17:55 Singular Exp $ */ 3 3 4 4 %{ … … 13 13 14 14 #include <ctype.h> 15 #ifdef HAVE_IOSTREAM 16 #include <iostream> 17 #elif defined(HAVE_IOSTREAM_H) 15 18 #include <iostream.h> 19 #endif 20 16 21 17 22 #include "assert.h" -
factory/templates/ftmpl_array.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_array.h,v 1. 5 1997-06-19 13:11:13 schmidtExp $ */2 /* $Id: ftmpl_array.h,v 1.6 2006-05-15 08:17:56 Singular Exp $ */ 3 3 4 4 #ifndef INCL_ARRAY_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/templates/ftmpl_factor.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_factor.h,v 1. 5 1998-06-03 14:51:33 pohlExp $ */2 /* $Id: ftmpl_factor.h,v 1.6 2006-05-15 08:17:56 Singular Exp $ */ 3 3 4 4 #ifndef INCL_FACTOR_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/templates/ftmpl_list.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_list.h,v 1. 8 2005-01-13 15:10:23Singular Exp $ */2 /* $Id: ftmpl_list.h,v 1.9 2006-05-15 08:17:56 Singular Exp $ */ 3 3 4 4 #ifndef INCL_LIST_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/templates/ftmpl_matrix.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_matrix.h,v 1.1 1 2005-06-13 09:46:35Singular Exp $ */2 /* $Id: ftmpl_matrix.h,v 1.12 2006-05-15 08:17:57 Singular Exp $ */ 3 3 4 4 #ifndef INCL_MATRIX_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16 -
factory/variable.h
re5102c r1dc616 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: variable.h,v 1. 5 2006-04-21 15:37:10Singular Exp $ */2 /* $Id: variable.h,v 1.6 2006-05-15 08:17:55 Singular Exp $ */ 3 3 4 4 #ifndef INCL_VARIABLE_H … … 8 8 9 9 #ifndef NOSTREAMIO 10 #ifdef HAVE_IOSTREAM 11 #include <iostream> 12 #elif defined(HAVE_IOSTREAM_H) 10 13 #include <iostream.h> 14 #endif 11 15 #endif /* NOSTREAMIO */ 12 16
Note: See TracChangeset
for help on using the changeset viewer.