~ubuntu-branches/ubuntu/wily/freefem++/wily

« back to all changes in this revision

Viewing changes to src/fflib/InitFunct.hpp

  • Committer: Package Import Robot
  • Author(s): Dimitrios Eftaxiopoulos, Dimitrios Eftaxiopoulos, Christophe Trophime
  • Date: 2013-09-12 00:02:58 UTC
  • mfrom: (1.2.1) (11.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130912000258-aclq2zfa1svt0p3x
Tags: 3.25-1
[ Dimitrios Eftaxiopoulos ]
* Imported Upstream version 3.25 (Closes: #701161 #706714)
* Change installation directory of header-like *.idp files
  from /usr/lib/freefem++ to /usr/include/freefem++, in order
  to fix a lintian warning
* Update patch to examples++-load/Makefile.am in order to enable
  functioning of load *.so and include *.idp commands in *.edp
  scripts
* Delete patches to src/Graphics/sansgraph.cpp and
  src/Graphics/xglrgraph.cpp because they are not needed any more
* Fix lintian warning about missing LDFLAGS
* Override dh_auto_test in debian/rules, such that in case it is 
  used, it completes executing all *.edp example files, regardless
  of aborting on some of them
* Add libmetis-dev to build-deps in d/control
* Remove libparmetis-dev from build deps
* Add --parallel option to dh $@ in debian/rules
* Add hardening compilation flags to mpic++
* Allow testing of compiling and running the example files after build

[ Christophe Trophime ]
* update C. Trophime email
* add support for nlopt, ipopt - simplify debian/rules
* upload CT changes to 3.20
* add patch for configure
* add patch for examples++-mpi
* fix bamg install
* add corrected scripts to build plugins
* add patch for properly build examples++-load
* add lintian overrides for libfreefem++
* add some missing files
* update patches
* update rules
* reorder BuildDepends - comment out unsupported libs

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
} ;
38
38
 
39
39
//
 
40
#if WIN32
 
41
#define LOADINITIO {                                    \
 
42
    streambuf * so =ffapi::cout()->rdbuf() ;            \
 
43
    streambuf * si =ffapi::cin()->rdbuf() ;             \
 
44
    streambuf * se =ffapi::cerr()->rdbuf() ;            \
 
45
    if( so &&  cout.rdbuf() != so ) cout.rdbuf(so);     \
 
46
    if( si &&  cin.rdbuf() != si ) cin.rdbuf(si);       \
 
47
    if( se &&  cerr.rdbuf() != se ) cerr.rdbuf(se);     \
 
48
 
49
#else
 
50
#define LOADINITIO {                                    \
 
51
    streambuf * so =ffapi::cout()->rdbuf() ;            \
 
52
    streambuf * si =ffapi::cin()->rdbuf() ;             \
 
53
    streambuf * se =ffapi::cerr()->rdbuf() ;            \
 
54
    if( so &&  cout.rdbuf() != so ) cout.rdbuf(so);     \
 
55
    if( si &&  cin.rdbuf() != si ) cin.rdbuf(si);       \
 
56
    if( se &&  cerr.rdbuf() != se ) cerr.rdbuf(se);     \
 
57
    stdout = ffapi::ffstdout();\
 
58
    stderr = ffapi::ffstderr();\
 
59
    stdin = ffapi::ffstdin();\
 
60
 
61
#endif
40
62
 
41
 
#define LOADINITIO {                                    \
42
 
    streambuf * so =ffapi::cout()->rdbuf() ;            \
43
 
    streambuf * si =ffapi::cin()->rdbuf() ;             \
44
 
    streambuf * se =ffapi::cerr()->rdbuf() ;            \
45
 
    if( so &&  cout.rdbuf() != so ) cout.rdbuf(so);     \
46
 
    if( si &&  cin.rdbuf() != si ) cin.rdbuf(si);       \
47
 
    if( se &&  cerr.rdbuf() != se ) cerr.rdbuf(se);     \
48
 
49
63
  
50
64
#define LOADINITNM(EXEC,NM)                                             \
51
65
  static  void  AutoLoadInit() { LOADINITIO ;                           \