Changeset 112
- Timestamp:
- 03/03/08 16:17:03 (10 months ago)
- Files:
-
- trunk/core/src/astar.c (modified) (1 diff)
- trunk/core/src/dijkstra.c (modified) (1 diff)
- trunk/core/src/shooting_star.c (modified) (1 diff)
- trunk/core/src/shooting_star_search.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/astar.c
r105 r112 534 534 DBG("Before allocation\n"); 535 535 536 values = palloc( 3* sizeof(Datum));537 nulls = palloc( 3* sizeof(char));536 values = palloc(4 * sizeof(Datum)); 537 nulls = palloc(4 * sizeof(char)); 538 538 539 539 DBG("After allocation\n"); 540 540 541 values[0] = Int32GetDatum(path[call_cntr].vertex_id);541 values[0] = call_cntr; 542 542 nulls[0] = ' '; 543 values[1] = Int32GetDatum(path[call_cntr]. edge_id);543 values[1] = Int32GetDatum(path[call_cntr].vertex_id); 544 544 nulls[1] = ' '; 545 values[2] = Float8GetDatum(path[call_cntr].cost);545 values[2] = Int32GetDatum(path[call_cntr].edge_id); 546 546 nulls[2] = ' '; 547 547 values[3] = Float8GetDatum(path[call_cntr].cost); 548 nulls[3] = ' '; 549 548 550 DBG("Heap making\n"); 549 551 trunk/core/src/dijkstra.c
r44 r112 419 419 char* nulls; 420 420 421 values = palloc( 3* sizeof(Datum));422 nulls = palloc( 3* sizeof(char));423 424 425 values[0] = Int32GetDatum(path[call_cntr].vertex_id);421 values = palloc(4 * sizeof(Datum)); 422 nulls = palloc(4 * sizeof(char)); 423 424 425 values[0] = call_cntr; 426 426 nulls[0] = ' '; 427 values[1] = Int32GetDatum(path[call_cntr]. edge_id);427 values[1] = Int32GetDatum(path[call_cntr].vertex_id); 428 428 nulls[1] = ' '; 429 values[2] = Float8GetDatum(path[call_cntr].cost);429 values[2] = Int32GetDatum(path[call_cntr].edge_id); 430 430 nulls[2] = ' '; 431 431 values[3] = Float8GetDatum(path[call_cntr].cost); 432 nulls[3] = ' '; 433 432 434 tuple = heap_formtuple(tuple_desc, values, nulls); 433 435 trunk/core/src/shooting_star.c
r43 r112 518 518 char* nulls; 519 519 520 values = palloc( 3* sizeof(Datum));521 nulls = palloc( 3* sizeof(char));520 values = palloc(4 * sizeof(Datum)); 521 nulls = palloc(4 * sizeof(char)); 522 522 523 values[0] = Int32GetDatum(path[call_cntr].vertex_id); 523 524 values[0] = call_cntr; 524 525 nulls[0] = ' '; 525 values[1] = Int32GetDatum(path[call_cntr]. edge_id);526 values[1] = Int32GetDatum(path[call_cntr].vertex_id); 526 527 nulls[1] = ' '; 527 values[2] = Float8GetDatum(path[call_cntr].cost);528 values[2] = Int32GetDatum(path[call_cntr].edge_id); 528 529 nulls[2] = ' '; 529 530 values[3] = Float8GetDatum(path[call_cntr].cost); 531 nulls[3] = ' '; 532 530 533 tuple = heap_formtuple(tuple_desc, values, nulls); 531 534 trunk/core/src/shooting_star_search.hpp
r106 r112 428 428 // Queue to store the list of edges to examine. 429 429 // I really hate this queue for what it does with the memory sometimes. 430 // 431 //And by the way... 432 // 433 //This place is for rent :) 434 // 430 435 typedef mutable_queue<Edge, std::vector<Edge>, IndirectCmp, IndexMap> 431 436 MutableQueue;

