Changeset 8284
- Timestamp:
- 08/12/11 18:04:11 (6 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
AISC_MKPTPS/mkptypes.cxx (modified) (3 diffs)
-
NTREE/AP_consensus.cxx (modified) (1 diff)
-
NTREE/NT_cb.cxx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/AISC_MKPTPS/mkptypes.cxx
r8246 r8284 1480 1480 } 1481 1481 1482 static int string_comparator(const void *v0, const void *v1) { 1483 return strcmp(*(const char **)v0, *(const char **)v1); 1484 } 1485 1482 1486 int ARB_main(int argc, const char *argv[]) { 1483 1487 FILE *f; … … 1652 1656 } 1653 1657 else { 1658 const char *filename[1000]; 1659 int fcount = 0; 1654 1660 1655 1661 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) { 1656 1669 DEBUG_PRINT("trying new file '"); 1657 DEBUG_PRINT( *argv);1670 DEBUG_PRINT(filename[i]); 1658 1671 DEBUG_PRINT("'\n"); 1659 1672 1660 if (!(f = fopen( *argv, "r"))) {1661 perror( *argv);1673 if (!(f = fopen(filename[i], "r"))) { 1674 perror(filename[i]); 1662 1675 exit(EXIT_FAILURE); 1663 1676 } … … 1667 1680 newline_seen = 1; 1668 1681 glastc = ' '; 1669 getdecl(f, *argv); 1670 argc--; argv++; 1682 getdecl(f, filename[i]); 1671 1683 fclose(f); 1672 1684 -
trunk/NTREE/AP_consensus.cxx
r7811 r8284 55 55 #include <arbdbt.h> 56 56 #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 57 61 58 62 #define AWAR_MAX_FREQ "tmp/CON_MAX_FREQ/" -
trunk/NTREE/NT_cb.cxx
r8100 r8284 27 27 // AISC_MKPT_PROMOTE:#include <aw_base.hxx> 28 28 // AISC_MKPT_PROMOTE:#endif 29 // AISC_MKPT_PROMOTE:30 // AISC_MKPT_PROMOTE:class AW_window;31 29 // AISC_MKPT_PROMOTE:class AWT_canvas; 32 30
