1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729
|
//=========================================================================//
// //
// PonyProg - Serial Device Programmer //
// //
// Copyright (C) 1997-2021 Claudio Lanconelli //
// //
// http://ponyprog.sourceforge.net //
// //
//-------------------------------------------------------------------------//
// //
// This program is free software; you can redistribute it and/or //
// modify it under the terms of the GNU General Public License //
// as published by the Free Software Foundation; either version2 of //
// the License, or (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
// General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program (see LICENSE); if not, write to the //
// Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
// //
//=========================================================================//
#include <QString>
#include <QVector>
#include <QDebug>
#include "types.h"
#include "globals.h"
#include "eeptypes.h"
//AutoTag
//Device type description vectors
static QVector<chipInfo> const eep24xx_map =
{
{"24XX Auto", E2400, AUTOSIZE_ID / 256, -1, -1, -1 },
{"2402", E2402, 1, -1, -1, -1},
{"2404", E2404, 2, -1, -1, -1},
{"2408", E2408, 4, -1, -1, -1},
{"2416", E2416, 8, -1, -1, -1}
};
static QVector<chipInfo> const eep24xx1A_map =
{
// "Auto",
{"2401-A", E2401_A, 1, -1, -1, -1}
};
static QVector<chipInfo> const eep24xx1B_map =
{
// "Auto",
{"2401-B", E2401_B, 1, -1, -1, -1}
};
static QVector<chipInfo> const eep24xx2_map =
{
// "Auto",
{"24E16", E24E16, 8, -1, -1, -1},
{"2432", E2432, 16, -1, -1, -1},
{"2464/2465", E2464, 32, -1, -1, -1},
{"24128", E24128, 64, -1, -1, -1},
{"24256", E24256, 128, -1, -1, -1},
{"24512", E24512, 256, -1, -1, -1}
};
static QVector<chipInfo> const eep24xx5_map =
{
// "Auto",
{"24325", E24325, 16, -1, -1, -1},
{"24645", E24645, 32, -1, -1, -1}
};
static QVector<chipInfo> const eepAT90_map =
{
{"ATmega8515", ATmega8515, (KB(8) + 512), KB(8), 64, -1 },
{"ATmega8535", ATmega8535, (KB(8) + 512), KB(8), 64, -1 },
{"ATmega48", ATmega48, (KB(4) + 256), KB(4), 64, -1},
{"ATmega8", ATmega8, (KB(8) + 512), KB(8), 64, -1},
{"ATmega88", ATmega88, (KB(8) + 512), KB(8), 64, -1},
{"ATmega16", ATmega16, (KB(16) + 512), KB(16), 128, -1},
{"ATmega161", ATmega161, (KB(16) + 512), KB(16), 128, -1},
{"ATmega162", ATmega162, (KB(16) + 512), KB(16), 128, -1},
{"ATmega163", ATmega163, (KB(16) + 512), KB(16), 128, -1},
{"ATmega164", ATmega164, (KB(16) + 512), KB(16), 128, -1},
{"ATmega168", ATmega168, (KB(16) + 512), KB(16), 128, -1},
{"ATmega169", ATmega169, (KB(16) + 512), KB(16), 128, -1},
{"ATmega32", ATmega32, (KB(32) + KB(1)), KB(32), 128, -1},
{"ATmega323", ATmega323, (KB(32) + KB(1)), KB(32), 128, -1},
{"ATmega324", ATmega324, (KB(32) + KB(1)), KB(32), 128, -1},
{"ATmega328", ATmega328, (KB(32) + KB(1)), KB(32), 128, -1}, // new (RG 22.06.2012)
{"ATmega603", ATmega603, (KB(64) + KB(2)), KB(64), 256, -1},
{"ATmega103", ATmega103, (KB(128) + KB(4)), KB(128), 256, -1},
{"ATmega64", ATmega64, (KB(64) + KB(2)), KB(64), 256, -1},
{"ATmega640", ATmega640, (KB(64) + KB(4)), KB(64), 256, -1},
{"ATmega644", ATmega644, (KB(64) + KB(2)), KB(64), 256, -1},
{"ATmega128", ATmega128, (KB(128) + KB(4)), KB(128), 256, -1},
{"ATmega1280", ATmega1280, (KB(128) + KB(4)), KB(128), 256, -1},
{"ATmega1281", ATmega1281, (KB(128) + KB(4)), KB(128), 256, -1},
{"ATmega1284", ATmega1284, (KB(128) + KB(4)), KB(128), 256, -1}, // new (RG 10.06.2017)
{"ATmega2560", ATmega2560, (KB(256) + KB(4)), KB(256), 256, -1},
{"ATmega2561", ATmega2561, (KB(256) + KB(4)), KB(256), 256, -1},
{"ATtiny12", ATtiny12, (KB(1) + 64), KB(1), 0, -1},
{"ATtiny13", ATtiny13, (KB(1) + 64), KB(1), 32, -1},
{"ATtiny15", ATtiny15, (KB(1) + 64), KB(1), 0, -1},
{"ATtiny22", ATtiny22, (KB(2) + 128), KB(2), 0, -1},
{"ATtiny24", ATtiny24, (KB(2) + 128), KB(2), 32, -1}, // new 08.01.2015 @RG
{"ATtiny25", ATtiny25, (KB(2) + 128), KB(2), 32, -1},
{"ATtiny26", ATtiny26, (KB(2) + 128), KB(2), 32, -1},
{"ATtiny261", ATtiny261, (KB(2) + 128), KB(2), 32, -1},
// {"ATtiny28", ATtiny28, },
{"ATtiny2313", ATtiny2313, (KB(2) + 128), KB(2), 32, -1},
{"ATtiny4313", ATtiny4313, (KB(4) + 256), KB(4), 64, -1}, // new 16.09.2015 @RG
{"ATtiny44", ATtiny44, (KB(4) + 256), KB(4), 64, -1}, // new 08.01.2015 @RG
{"ATtiny45", ATtiny45, (KB(4) + 256), KB(4), 64, -1},
{"ATtiny461", ATtiny461, (KB(4) + 256), KB(4), 64, -1},
{"ATtiny84", ATtiny84, (KB(8) + 512), KB(8), 64, -1}, // new 08.01.2015 @RG
{"ATtiny85", ATtiny85, (KB(8) + 512), KB(8), 64, -1},
{"ATtiny861", ATtiny861, (KB(8) + 512), KB(8), 64, -1},
// "AVR Auto", AT90S0000
{"AT90S1200", AT90S1200, (KB(1) + 64), KB(1), 0, -1},
{"AT90S2313", AT90S2313, (KB(2) + 128), KB(2), 0, -1},
{"AT90S2323", AT90S2323, (KB(2) + 128), KB(2), 0, -1},
{"AT90S2333", AT90S2333, (KB(2) + 128), KB(2), 0, -1},
{"AT90S2343", AT90S2343, (KB(2) + 128), KB(2), 0, -1},
{"AT90S4414", AT90S4414, (KB(4) + 256), KB(4), 0, -1},
{"AT90S4433", AT90S4433, (KB(4) + 256), KB(4), 0, -1},
{"AT90S4434", AT90S4434, (KB(4) + 256), KB(4), 0, -1},
{"AT90S8515", AT90S8515, (KB(8) + 512), KB(8), 0, -1},
{"AT90C8534", AT90S8534, (KB(8) + 512), KB(8), 0, -1},
{"AT90S8535", AT90S8535, (KB(8) + 512), KB(8), 0, -1},
{"AT90CAN32", AT90CAN32, (KB(32) + KB(1)), KB(32), 128, -1},
{"AT90CAN64", AT90CAN64, (KB(64) + KB(2)), KB(64), 256, -1},
{"AT90CAN128", AT90CAN128, (KB(128) + KB(4)), KB(128), 256, -1}
};
static QVector<chipInfo> const eepAt89s_map =
{
// "AT89SXX Auto", AT89S0000
{"AT89S8252", AT89S8252, KB(8) + KB(2), KB(8), 0, -1 },
{"AT89S8253", AT89S8253, KB(12) + KB(2), KB(12), 64, 1 },
{"AT89S51", AT89S51, KB(4), KB(4), 256, -1 },
{"AT89S52", AT89S52, KB(8), KB(8), 256, -1 },
{"AT89S53", AT89S53, KB(12), KB(12), 0, -1 }
};
static QVector<chipInfo> const eep93x6_map =
{
// "93XX Auto", E9300
{"9306", E9306, 16, -1, -1, 64},
{"9346", E9346, 64, -1, -1, 64},
{"9356", E9356, 128, -1, -1, 256},
{"9357", E9357, 128, -1, -1, 128},
{"9366", E9366, 256, -1, -1, 256},
{"9376", E9376, 512, -1, -1, 1024},
{"9386", E9386, 1024, -1, -1, 1024}
};
static QVector<chipInfo> const eep93xx8_map =
{
// "93XX Auto",
{"9306", E9306_8, 32, -1, -1, 128},
{"9346", E9346_8, 128, -1, -1, 128},
{"9356", E9356_8, 256, -1, -1, 512},
{"9357", E9357_8, 256, -1, -1, 256},
{"9366", E9366_8, 512, -1, -1, 512},
{"9376", E9376_8, 1024, -1, -1, 2048},
{"9386", E9386_8, 2048, -1, -1, 2048},
};
static QVector<chipInfo> const eepPic16_map =
{
// "PIC16XX Auto",
{"PIC16X83", PIC1683, KB(1) + 64, KB(1), -1, -1},
{"PIC16X84", PIC1684, KB(2) + 64, KB(2), -1, -1}
};
static QVector<chipInfo> const eepPic168xx_map =
{
{"PIC168XX Auto", PIC16800, AUTOSIZE_ID, 0, -1, -1},
{"PIC16F84A", PIC1684A, KB(2) + 64, KB(2), -1, -1},
{"PIC16F870", PIC16870, KB(4) + 64, KB(4), -1, -1},
{"PIC16F871", PIC16871, KB(4) + 64, KB(4), -1, -1},
{"PIC16F872", PIC16872, KB(4) + 64, KB(4), -1, -1},
{"PIC16F873", PIC16873, KB(8) + 128, KB(8), -1, -1},
{"PIC16F874", PIC16874, KB(8) + 128, KB(8), -1, -1},
{"PIC16F876", PIC16876, KB(16) + 256, KB(16), -1, -1},
{"PIC16F877", PIC16877, KB(16) + 256, KB(16), -1, -1},
{"PIC16F873A", PIC16873A, KB(8) + 128, KB(8), -1, -1},
{"PIC16F874A", PIC16874A, KB(8) + 128, KB(8), -1, -1},
{"PIC16F876A", PIC16876A, KB(16) + 256, KB(16), -1, -1},
{"PIC16F877A", PIC16877A, KB(16) + 256, KB(16), -1, -1},
{"PIC16F627", PIC16627, KB(1) + 128, KB(1), -1, -1},
{"PIC16F628", PIC16628, KB(2) + 128, KB(2), -1, -1}
};
static QVector<chipInfo> const eepPic125_map =
{
// "PIC125XX Auto",PIC12500
{"PIC12C508", PIC12508, KB(1), KB(1), -1, -1},
{"PIC12C509", PIC12509, KB(2), KB(2), -1, -1},
{"PIC12C508A", PIC12508A, KB(1), KB(1), -1, -1},
{"PIC12C509A", PIC12509A, KB(2), KB(2), -1, -1},
{"PIC12E518", PIC12E518, KB(1), KB(1), -1, -1},
{"PIC12E519", PIC12E519, KB(2), KB(2), -1, -1},
{"PIC12C671", PIC12671, KB(1), KB(1), -1, -1},
{"PIC12C672", PIC12672, KB(2), KB(2), -1, -1},
{"PIC12CE673", PIC12673, KB(1), KB(1), -1, -1},
{"PIC12CE674", PIC12674, KB(2), KB(2), -1, -1}
};
static QVector<chipInfo> const eep250xx_map =
{
// "250X0 Auto",
{"25010", E25010, 128, -1, -1, -1},
{"25020", E25020, 256, -1, -1, -1},
{"25040", E25040, 512, -1, -1, -1}
};
static QVector<chipInfo> const eep25xxx_map =
{
// "25XXX Auto",E25XX0
{"25080", E25080, KB(1), -1, -1, -1},
{"25160", E25160, KB(2), -1, -1, -1},
{"25320", E25320, KB(4), -1, -1, -1},
{"2564X/95640", E25640, KB(8), -1, -1, -1},
{"25128", E25128, KB(16), -1, -1, -1},
{"25256", E25256, KB(32), -1, -1, -1}
};
static QVector<chipInfo> const eep2506_map =
{
// "250X0 Auto",E25000
{"SDE2506", E2506, 128, -1, -1, -1}
};
static QVector<chipInfo> const eepnvm3060_map =
{
// "NVMXX Auto",ENVM3000
{"MDA2062", EMDA2062, 128, -1, -1, -1},
{"NVM3060", ENVM3060, 512, -1, -1, -1}
};
static QVector<chipInfo> const eep2444_map =
{
// "XX Auto",
{"S2430", S24H30, 8, -1, -1, 8},
{"X2444", X24C44, 16, -1, -1, 16},
{"X2445", X24C45, 16, -1, -1, 16}
};
static QVector<chipInfo> const eep17xxx_map =
{
// "Auto",AT1700
{"AT1765", AT1765, KB(8), -1, -1, -1},
{"AT17128", AT17128, KB(16), -1, -1, -1},
{"AT17256", AT17256, KB(32), -1, -1, -1},
{"AT17512", AT17512, KB(64), -1, -1, -1},
{"AT17010", AT17010, KB(128), -1, -1, -1},
};
long BuildE2PType(int pritype, int subtype)
{
return (((long)pritype & 0x7FFF) << 16) | (subtype & 0x7FFF);
}
int GetE2PSubType(unsigned long type)
{
if (type == EID_INVALID)
{
return -1;
}
else
{
return (int)(type & 0x7FFF);
}
}
int GetE2PPriType(unsigned long type)
{
// qDebug() << "GetE2PPriType" << type << ((type >> 16) & 0x7F);
if (type == EID_INVALID)
{
return -1;
}
else
{
return (int)((type >> 16) & 0x7F);
}
}
chipInfo GetChipInfo(QVector<chipInfo> &c, long subtype)
{
chipInfo info = {};
for (int i = 0; i < c.count(); i++)
{
// extract only subtype
if ((c.at(i).id & 0x7FFF) == (subtype & 0x7FFF))
{
info = c.at(i);
break;
}
}
return info;
}
// EK 2017
// don't worry, it's not a copy of vector
// it's smart pointer to vector
static QVector<chipInfo> const GetMap(int pritype)
{
switch (pritype)
{
//AutoTag
//Returns vector
case E24XX:
return eep24xx_map;
break;
case E24XX1_A:
return eep24xx1A_map;
break;
case E24XX1_B:
return eep24xx1B_map;
break;
case E24XX2:
return eep24xx2_map;
break;
case E24XX5:
return eep24xx5_map;
break;
case AT90SXX:
return eepAT90_map;
break;
case AT89SXX:
return eepAt89s_map;
break;
case E93X6:
return eep93x6_map;
break;
case E93XX_8:
return eep93xx8_map;
break;
case PIC16XX:
return eepPic16_map;
break;
case PIC168XX:
return eepPic168xx_map;
break;
case PIC125XX:
return eepPic125_map;
break;
case E250XX:
return eep250xx_map;
break;
case E25XXX:
return eep25xxx_map;
break;
case E2506XX:
return eep2506_map;
break;
case ENVMXXX:
return eepnvm3060_map;
break;
case AT17XXX:
return eep17xxx_map;
break;
case X24C44XX:
return eep2444_map;
break;
default:
return QVector<chipInfo>();
break;
}
}
#if 0
long GetEEPTypeFromSize(int pritype, int size)
{
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
for (int j = 0; j < mp.count(); j++)
{
if (mp.at(j).sz == size)
{
return mp.at(j).id;
}
}
return -1;
}
#endif
long GetEEPTypeFromSize(unsigned long type, int size)
{
int pritype = GetE2PPriType(type);
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
for (int j = 0; j < mp.count(); j++)
{
if (mp.at(j).sz == size)
{
return mp.at(j).id;
}
}
return -1;
}
#if 0
int GetEEPTypeSize(int pritype, int subtype)
{
if (pritype == 0)
{
return 0;
}
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return 0;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.sz;
}
#endif
int GetEEPTypeSize(unsigned long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
if (pritype == 0)
{
return 0;
}
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return 0;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.sz;
}
//Serve solamente nei bus che utilizzano la dimensione
// di word degli indirizzi dinamica (per es. Microwire)
#if 0
int GetEEPAddrSize(int pritype, int subtype)
{
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.adrsz;
}
#endif
int GetEEPAddrSize(unsigned long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.adrsz;
}
#if 0
int GetEEPTypeSplit(int pritype, int subtype)
{
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.splt;
}
#endif
int GetEEPTypeSplit(unsigned long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.splt;
}
#if 0
int GetEEPTypeWPageSize(int pritype, int subtype)
{
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.wpgsz;
}
#endif
int GetEEPTypeWPageSize(unsigned long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, subtype);
return i.wpgsz;
}
QVector<chipInfo> GetEEPSubTypeVector(int type)
{
QVector<chipInfo> mp = GetMap(type);
return mp;
}
int GetEEPSubTypeIndex(long type)
{
QVector<chipInfo> mp = GetEEPSubTypeVector(GetE2PPriType(type));
if (mp.count() == 0)
{
return -1;
}
chipInfo i = GetChipInfo(mp, type);
return i.id;
}
#if 0
QString GetEEPTypeString(int pritype, int subtype)
{
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count())
{
qDebug() << "mp" << mp.count();
foreach (chipInfo i, mp)
{
if ((i.id & 0x07fff) == subtype)
{
return i.name;
}
}
}
return "";
}
#endif
QString GetEEPTypeString(unsigned long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
QVector<chipInfo> mp = GetMap(pritype);
if (mp.count())
{
foreach (chipInfo i, mp)
{
if ((i.id & 0x07fff) == subtype)
{
return i.name;
}
}
}
return "";
}
//18/10/98
#if 0
QString GetEEPTypeString(long type)
{
int pritype = GetE2PPriType(type);
int subtype = GetE2PSubType(type);
qDebug() << "GetEEPTypeString" << pritype << subtype << GetEEPTypeString(pritype, subtype);
return GetEEPTypeString(pritype, subtype);
}
#endif
/**
long GetEEPTypeFromString(char const *name)
{
char const **rp;
long *vp;
long ret_type = 0;
int k;
for (k = 0; k < NO_OF_EEPTYPE; k++)
{
long new_type = CbxIdToType(k, 0);
if (new_type > 0)
{
vp = GetEEPSubTypeVector( GetE2PPriType(new_type) );
rp = GetEEPSubTypeList( GetE2PPriType(new_type) );
if (rp && vp)
{
int j;
for (j = 0; rp[j] != 0; j++)
if (strcasecmp(rp[j], name) == 0)
break;
if (rp[j])
{
ret_type = vp[j];
break;
}
}
}
}
return ret_type;
}
**/
|