~ubuntu-branches/ubuntu/trusty/scotch/trusty

« back to all changes in this revision

Viewing changes to src/libscotch/dummysizes.c

  • Committer: Bazaar Package Importer
  • Author(s): "Adam C. Powell, IV", Christophe Trophime, Adam C. Powell, IV
  • Date: 2010-12-29 13:07:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101229130719-jwalolw5d6av6wqx
Tags: 5.1.11.dfsg-1
[Christophe Trophime]
* New upstream release
* Forward-ported patches to version 5.1.10b.
* Install scotch headers properly.
* Fix chrpath commands in debian/rules.
* Fix (pt)scotch library install paths.
* Fix lintian errors and warnings.

[Adam C. Powell, IV]
* Forward-ported patches to version 5.1.11.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
/**                # Version 5.0  : from : 26 apr 2006     **/
51
51
/**                                 to   : 03 apr 2008     **/
52
52
/**                # Version 5.1  : from : 16 jun 2008     **/
53
 
/**                                 to   : 15 apr 2010     **/
 
53
/**                                 to   : 15 aug 2010     **/
54
54
/**                                                        **/
55
55
/************************************************************/
56
56
 
62
62
 
63
63
#define CHARMAX                     2048          /* Maximum line size */
64
64
 
65
 
#define SUBSMAX                     32            /* Maximum number of substitutions */
 
65
#define SUBSMAX                     48            /* Maximum number of substitutions */
66
66
 
67
67
#define C_FILENBR                   2             /* Number of files in list                */
68
68
#define C_FILEARGNBR                2             /* Number of files which can be arguments */
73
73
#define C_filepntrhedinp            C_fileTab[0].pntr /* Source graph input file */
74
74
#define C_filepntrhedout            C_fileTab[1].pntr /* Statistics output file  */
75
75
 
76
 
#define EXPAND(s) EXPANDTWO(s)
77
 
#define EXPANDTWO(s) #s
 
76
#define EXPAND(s)                   EXPANDTWO(s)
 
77
#define EXPANDTWO(s)                #s
78
78
 
79
79
#include "module.h"
80
80
#include "common.h"
166
166
          printf ("Usage is:\ndummysizes [<input pattern header file> [<output header file>]]\n");
167
167
          exit       (0);
168
168
        case 'V' :
169
 
          fprintf (stderr, "dummysizes, version %s - F. Pellegrini\n", SCOTCH_VERSION);
170
 
          fprintf (stderr, "Copyright 2004,2007-2009 ENSEIRB, INRIA & CNRS, France\n");
 
169
          fprintf (stderr, "dummysizes, version " SCOTCH_VERSION_STRING "\n");
 
170
          fprintf (stderr, "Copyright 2004,2007-2010 ENSEIRB, INRIA & CNRS, France\n");
171
171
          fprintf (stderr, "This software is libre/free software under CeCILL-C -- see the user's manual for more information\n");
172
172
          return  (0);
173
173
        default :
200
200
  substab[1][1] = "ptscotchf.h";
201
201
#endif /* SCOTCH_PTSCOTCH */
202
202
  substab[2][0] = "DUMMYIDX";
203
 
  substab[2][1] = EXPAND(IDX);
 
203
  substab[2][1] = EXPAND (IDX);
204
204
  substab[3][0] = "DUMMYINT";
205
 
  substab[3][1] = EXPAND(INT);
 
205
  substab[3][1] = EXPAND (INT);
206
206
  substab[4][0] = "DUMMYMAXINT";
207
 
  substab[4][1] = EXPAND(INTVALMAX);
208
 
  substab[5][0] = "DUMMYPTFLAG";
 
207
  substab[4][1] = EXPAND (INTVALMAX);
 
208
  substab[5][0] = "DUMMYNUMSTRING";
 
209
  substab[5][1] = "\"" GNUMSTRING "\"";
 
210
  substab[6][0] = "DUMMYPTFLAG";
209
211
#ifdef SCOTCH_PTSCOTCH
210
 
  substab[5][1] = "PTSCOTCH";
 
212
  substab[6][1] = "PTSCOTCH";
211
213
#else /* SCOTCH_PTSCOTCH */
212
 
  substab[5][1] = "SEQSCOTCH";
 
214
  substab[6][1] = "SEQSCOTCH";
213
215
#endif /* SCOTCH_PTSCOTCH */
214
 
  subsnbr = 6;
 
216
  substab[7][0] = "DUMMYVERSION";
 
217
  substab[7][1] = EXPAND (SCOTCH_VERSION);
 
218
  substab[8][0] = "DUMMYRELEASE";
 
219
  substab[8][1] = EXPAND (SCOTCH_RELEASE);
 
220
  substab[9][0] = "DUMMYPATCHLEVEL";
 
221
  substab[9][1] = EXPAND (SCOTCH_PATCHLEVEL);
 
222
  subsnbr = 10;
215
223
  subsFill (substab[subsnbr ++], "DUMMYSIZEARCH",          sizeof (Arch));
216
224
  subsFill (substab[subsnbr ++], "DUMMYSIZEGEOM",          sizeof (Geom));
217
225
  subsFill (substab[subsnbr ++], "DUMMYSIZEGRAPH",         sizeof (Graph));