Changeset 8284

Show
Ignore:
Timestamp:
08/12/11 18:04:11 (6 months ago)
Author:
westram
Message:
  • problem:
    • order of files in generated headers depended on the order reported by makes '$(wildcard ...)'
    • make in suse12.1 changed that order slightly
  • aisc_mkpts now sorts filenames of input-files
  • moved a few header promotions
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/AISC_MKPTPS/mkptypes.cxx

    r8246 r8284  
    14801480} 
    14811481 
     1482static int string_comparator(const void *v0, const void *v1) { 
     1483    return strcmp(*(const char **)v0, *(const char **)v1); 
     1484} 
     1485 
    14821486int ARB_main(int argc, const char *argv[]) { 
    14831487    FILE *f; 
     
    16521656    } 
    16531657    else { 
     1658        const char *filename[1000]; 
     1659        int         fcount = 0; 
    16541660 
    16551661        while (argc > 0 && *argv) { 
     1662            filename[fcount++] = *argv; 
     1663            argc--; argv++; 
     1664        } 
     1665 
     1666        qsort(&filename, fcount, sizeof(filename[0]), string_comparator); 
     1667 
     1668        for (int i = 0; i<fcount; ++i) { 
    16561669            DEBUG_PRINT("trying new file '"); 
    1657             DEBUG_PRINT(*argv); 
     1670            DEBUG_PRINT(filename[i]); 
    16581671            DEBUG_PRINT("'\n"); 
    16591672 
    1660             if (!(f = fopen(*argv, "r"))) { 
    1661                 perror(*argv); 
     1673            if (!(f = fopen(filename[i], "r"))) { 
     1674                perror(filename[i]); 
    16621675                exit(EXIT_FAILURE); 
    16631676            } 
     
    16671680            newline_seen = 1; 
    16681681            glastc       = ' '; 
    1669             getdecl(f, *argv); 
    1670             argc--; argv++; 
     1682            getdecl(f, filename[i]); 
    16711683            fclose(f); 
    16721684 
  • trunk/NTREE/AP_consensus.cxx

    r7811 r8284  
    5555#include <arbdbt.h> 
    5656#include <arb_strbuf.h> 
     57 
     58// AISC_MKPT_PROMOTE:#ifndef AW_BASE_HXX 
     59// AISC_MKPT_PROMOTE:#include <aw_base.hxx> 
     60// AISC_MKPT_PROMOTE:#endif 
    5761 
    5862#define AWAR_MAX_FREQ   "tmp/CON_MAX_FREQ/" 
  • trunk/NTREE/NT_cb.cxx

    r8100 r8284  
    2727// AISC_MKPT_PROMOTE:#include <aw_base.hxx> 
    2828// AISC_MKPT_PROMOTE:#endif 
    29 // AISC_MKPT_PROMOTE: 
    30 // AISC_MKPT_PROMOTE:class AW_window; 
    3129// AISC_MKPT_PROMOTE:class AWT_canvas; 
    3230