"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "settings.cc" between
asymptote-2.57.src.tgz and asymptote-2.58.src.tgz

About: Asymptote is a script-based vector graphics language for technical drawings.

settings.cc  (asymptote-2.57.src.tgz):settings.cc  (asymptote-2.58.src.tgz)
skipping to change at line 928 skipping to change at line 928
// Unreachable code. // Unreachable code.
return true; return true;
} }
}; };
struct versionOption : public option { struct versionOption : public option {
versionOption(string name, char code, string desc) versionOption(string name, char code, string desc)
: option(name, code, noarg, desc, true) {} : option(name, code, noarg, desc, true) {}
const void feature(const char *s) {cerr << s << endl;} bool disabled;
bool getOption() { const void feature(const char *s, bool enabled) {
version(); if(enabled ^ disabled)
cerr << s << endl;
}
cerr << endl << "ENABLED OPTIONS:" << endl; void features(bool enabled) {
#ifdef HAVE_LIBGLM disabled=!enabled;
feature("WebGL 3D HTML rendering"); cerr << endl << (disabled ? "DIS" : "EN") << "ABLED OPTIONS:" << endl;
bool glm=false;
bool gl=false;
bool gsl=false;
bool fftw3=false;
bool xdr=false;
bool readline=false;
bool sigsegv=false;
bool usegc=false;
#if HAVE_LIBGLM
glm=true;
#endif #endif
#ifdef HAVE_GL #ifdef HAVE_GL
feature("OpenGL 3D OpenGL rendering"); gl=true;
#endif #endif
#ifdef HAVE_LIBGSL #ifdef HAVE_LIBGSL
feature("GSL GNU Scientific Library (special functions)"); gsl=true;
#endif #endif
#ifdef HAVE_LIBFFTW3 #ifdef HAVE_LIBFFTW3
feature("FFTW3 Fast Fourier transforms"); fftw3=true;
#endif #endif
#ifdef HAVE_RPC_RPC_H #ifdef HAVE_RPC_RPC_H
feature("XDR external data representation (portable binary file format) "); xdr=true;
#endif #endif
#ifdef HAVE_LIBREADLINE #ifdef HAVE_LIBREADLINE
feature("Readline interactive history and editing"); readline=true;
#endif #endif
#ifdef HAVE_LIBSIGSEGV #ifdef HAVE_LIBSIGSEGV
feature("Sigsegv distinguish stack overflows from segmentation faults"); sigsegv=true;
#endif #endif
#ifdef USEGC #ifdef USEGC
feature("GC Boehm garbage collector"); usegc=true;
#endif #endif
feature("WebGL 3D HTML rendering",glm);
feature("OpenGL 3D OpenGL rendering",gl);
feature("GSL GNU Scientific Library (special functions)",gsl);
feature("FFTW3 Fast Fourier transforms",fftw3);
feature("XDR external data representation (portable binary file format)
",xdr);
feature("Readline interactive history and editing",readline);
feature("Sigsegv distinguish stack overflows from segmentation faults",
sigsegv);
feature("GC Boehm garbage collector",usegc);
}
bool getOption() {
version();
features(1);
features(0);
exit(0); exit(0);
// Unreachable code. // Unreachable code.
return true; return true;
} }
}; };
struct divisorOption : public option { struct divisorOption : public option {
divisorOption(string name, char code, string argname, string desc) divisorOption(string name, char code, string argname, string desc)
: option(name, code, argname, desc) {} : option(name, code, argname, desc) {}
 End of changes. 11 change blocks. 
13 lines changed or deleted 44 lines changed or added

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