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 730 731 732 733 734 735 736 737 738 739 740 741 742
|
/* file generated by oo2c -- do not edit */
#include "__oo2c.h"
#include "__libc.h"
#include "LongStrings.d"
static _ModId _mid;
short int LongStrings__Length(const unsigned short int* stringVal, int stringVal_0d) {
register int i0, i1;
i0 = *(unsigned short int*)(int)stringVal;
i0 = i0 != 0;
if (i0) goto l0;
i1 = 0;
goto l2;
l0:
i1 = 0;
l1:
i1++;
i0 = (int)_ashl(i1, 1, (unsigned int));
i0 = (int)stringVal + i0;
i0 = *(unsigned short int*)i0;
i0 = i0 != 0;
if (i0) goto l1;
l2:
return (short int)i1;
}
void LongStrings__Assign(const unsigned short int* source__ref, int source_0d, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3;
unsigned short int* source;
char* _old_top_vs = _top_vs;
_push_value(int, source, source__ref, source_0d*2);
i1 = destination_0d - 1;
i2 = -1;
l0:
i2++;
i3 = (int)_ashl(i2, 1, (unsigned int));
i3 = (int)source + i3;
i0 = (int)_ashl(i2, 1, (unsigned int));
i3 = *(unsigned short int*)i3;
i0 = (int)destination + i0;
*(unsigned short int*)i0 = i3;
i3 = *(unsigned short int*)i0;
i3 = i3 == 0;
if (i3) goto l1;
i3 = i2 != i1;
if (i3) goto l0;
l1:
i0 = (int)_ashl(i2, 1, (unsigned int));
i0 = (int)destination + i0;
*(unsigned short int*)i0 = 0;
_top_vs = _old_top_vs;
}
void LongStrings__Extract(const unsigned short int* source__ref, int source_0d, short int startPos, short int numberToExtract, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3, i4, i5, i6;
unsigned short int* source;
char* _old_top_vs = _top_vs;
_push_value(int, source, source__ref, source_0d*2);
i1 = LongStrings__Length((const unsigned short int*)(int)source, source_0d);
i0 = destination_0d <= numberToExtract;
i2 = startPos > i1;
if (i0) goto l0;
i0 = numberToExtract;
goto l1;
l0:
i0 = destination_0d - 1;
l1:
if (i2) goto l2;
i1 = startPos;
l2:
i2 = i0 > 0;
if (!(i2)) goto l4;
i5 = (int)_ashl(i1, 1, (unsigned int));
i5 = (int)source + i5;
i5 = *(unsigned short int*)i5;
i2 = i5 == 0;
if (i2) goto l4;
i5 = 0;
l3:
i4 = i1 + i5;
i6 = i5 + 1;
i3 = (int)_ashl(i4, 1, (unsigned int));
i3 = (int)source + i3;
i4 = *(unsigned short int*)i3;
i3 = (int)_ashl(i5, 1, (unsigned int));
i3 = (int)destination + i3;
*(unsigned short int*)i3 = i4;
i5 = i0 <= i6;
if (i5) goto l5;
i4 = i1 + i6;
i5 = (int)_ashl(i4, 1, (unsigned int));
i5 = (int)source + i5;
i4 = *(unsigned short int*)i5;
i4 = i4 == 0;
if (i4) goto l5;
i5 = i6;
goto l3;
l4:
i6 = 0;
l5:
i0 = (int)_ashl(i6, 1, (unsigned int));
i0 = (int)destination + i0;
*(unsigned short int*)i0 = 0;
_top_vs = _old_top_vs;
}
void LongStrings__Delete(unsigned short int* stringVar, int stringVar_0d, short int startPos, short int numberToDelete) {
register int i0, i1, i2, i3, i4, i5;
i4 = LongStrings__Length((const unsigned short int*)(int)stringVar, stringVar_0d);
i0 = startPos + numberToDelete;
i0 = i4 > i0;
if (i0) goto l0;
i0 = startPos >= i4;
if (i0) goto l2;
i0 = (int)_ashl(startPos, 1, (unsigned int));
i0 = (int)stringVar + i0;
*(unsigned short int*)i0 = 0;
goto l2;
l0:
i1 = i4 - numberToDelete;
i4 = startPos > i1;
if (i4) goto l2;
i4 = startPos;
l1:
i0 = numberToDelete + i4;
i3 = (int)_ashl(i0, 1, (unsigned int));
i3 = (int)stringVar + i3;
i0 = *(unsigned short int*)i3;
i2 = (int)_ashl(i4, 1, (unsigned int));
i3 = i4 + 1;
i2 = (int)stringVar + i2;
i5 = i3 > i1;
*(unsigned short int*)i2 = i0;
if (i5) goto l2;
i4 = i3;
goto l1;
l2:
;
}
void LongStrings__Insert(const unsigned short int* source__ref, int source_0d, short int startPos, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3, i4, i5;
unsigned short int* source;
char* _old_top_vs = _top_vs;
_push_value(int, source, source__ref, source_0d*2);
i5 = LongStrings__Length((const unsigned short int*)(int)source, source_0d);
i0 = destination_0d - 1;
i1 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i2 = startPos + i5;
i2 = i2 < i0;
if (i2) goto l1;
i5 = startPos <= i1;
if (i5) goto l0;
i5 = 0;
goto l4;
l0:
i5 = (int)_ashl(i0, 1, (unsigned int));
i5 = (int)destination + i5;
*(unsigned short int*)i5 = 0;
i5 = i0 - startPos;
goto l4;
l1:
i4 = i1 + i5;
i4 = i4 <= i0;
if (i4) goto l2;
i1 = i0 - i5;
i0 = (int)_ashl(i1, 1, (unsigned int));
i0 = (int)destination + i0;
*(unsigned short int*)i0 = 0;
l2:
i0 = startPos <= i1;
if (!(i0)) goto l4;
l3:
i0 = i5 + i1;
i4 = (int)_ashl(i1, 1, (unsigned int));
i2 = (int)_ashl(i0, 1, (unsigned int));
i4 = (int)destination + i4;
i3 = i1 + -1;
i2 = (int)destination + i2;
i1 = *(unsigned short int*)i4;
*(unsigned short int*)i2 = i1;
i1 = startPos > i3;
if (i1) goto l4;
i1 = i3;
goto l3;
l4:
i4 = i5 - 1;
i0 = i4 < 0;
if (i0) goto l6;
i5 = 0;
l5:
i0 = startPos + i5;
i1 = (int)_ashl(i5, 1, (unsigned int));
i1 = (int)source + i1;
i2 = (int)_ashl(i0, 1, (unsigned int));
i3 = i5 + 1;
i1 = *(unsigned short int*)i1;
i2 = (int)destination + i2;
*(unsigned short int*)i2 = i1;
i0 = i3 > i4;
if (i0) goto l6;
i5 = i3;
goto l5;
l6:
_top_vs = _old_top_vs;
}
void LongStrings__Replace(const unsigned short int* source__ref, int source_0d, short int startPos, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3, i4, i5, i6, i7;
unsigned short int* source;
char* _old_top_vs = _top_vs;
_push_value(int, source, source__ref, source_0d*2);
i6 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i0 = startPos >= i6;
if (i0) goto l1;
i5 = startPos == i6;
if (i5) goto l1;
i0 = *(unsigned short int*)(int)source;
i5 = i0 == 0;
if (i5) goto l1;
i0 = 0;
i7 = startPos;
l0:
i1 = (int)_ashl(i0, 1, (unsigned int));
i4 = (int)source + i1;
i3 = i0 + 1;
i1 = (int)_ashl(i7, 1, (unsigned int));
i2 = i7 + 1;
i0 = *(unsigned short int*)i4;
i1 = (int)destination + i1;
i4 = i6 == i2;
*(unsigned short int*)i1 = i0;
if (i4) goto l1;
i7 = (int)_ashl(i3, 1, (unsigned int));
i7 = (int)source + i7;
i7 = *(unsigned short int*)i7;
i7 = i7 == 0;
if (i7) goto l1;
i0 = i3;
i7 = i2;
goto l0;
l1:
_top_vs = _old_top_vs;
}
void LongStrings__Append(const unsigned short int* source__ref, int source_0d, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3, i4, i5, i6, i7, i8, i9;
unsigned short int* source;
char* _old_top_vs = _top_vs;
_push_value(int, source, source__ref, source_0d*2);
i8 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i7 = destination_0d - 1;
i0 = i8 >= i7;
if (i0) goto l1;
i6 = *(unsigned short int*)(int)source;
i1 = i6 == 0;
if (i1) goto l1;
i2 = 0;
i0 = i8;
l0:
i9 = i0 + 1;
i6 = (int)_ashl(i2, 1, (unsigned int));
i6 = (int)source + i6;
i4 = i2 + 1;
i5 = (int)_ashl(i0, 1, (unsigned int));
i3 = i9 >= i7;
i6 = *(unsigned short int*)i6;
i5 = (int)destination + i5;
*(unsigned short int*)i5 = i6;
if (i3) goto l2;
i0 = (int)_ashl(i4, 1, (unsigned int));
i0 = (int)source + i0;
i0 = *(unsigned short int*)i0;
i0 = i0 == 0;
if (i0) goto l2;
i2 = i4;
i0 = i9;
goto l0;
l1:
i9 = i8;
l2:
i0 = (int)_ashl(i9, 1, (unsigned int));
i0 = (int)destination + i0;
*(unsigned short int*)i0 = 0;
_top_vs = _old_top_vs;
}
void LongStrings__Concat(const unsigned short int* source1__ref, int source1_0d, const unsigned short int* source2__ref, int source2_0d, unsigned short int* destination, int destination_0d) {
register int i0, i1, i2, i3, i4, i5, i6, i7, i8, i9;
unsigned short int* source1;
unsigned short int* source2;
char* _old_top_vs = _top_vs;
_push_value(int, source1, source1__ref, source1_0d*2);
_push_value(int, source2, source2__ref, source2_0d*2);
i0 = *(unsigned short int*)(int)source1;
i0 = i0 == 0;
if (i0) goto l1;
i0 = destination_0d - 1;
i1 = i0 <= 0;
if (i1) goto l1;
i4 = 0;
l0:
i8 = i4 + 1;
i3 = (int)_ashl(i8, 1, (unsigned int));
i3 = (int)source1 + i3;
i5 = (int)_ashl(i4, 1, (unsigned int));
i2 = (int)source1 + i5;
i3 = *(unsigned short int*)i3;
i5 = (int)_ashl(i4, 1, (unsigned int));
i2 = *(unsigned short int*)i2;
i5 = (int)destination + i5;
*(unsigned short int*)i5 = i2;
i4 = i3 == 0;
if (i4) goto l2;
i4 = i8 >= i0;
if (i4) goto l2;
i4 = i8;
goto l0;
l1:
i8 = 0;
l2:
i0 = *(unsigned short int*)(int)source2;
i0 = i0 == 0;
if (i0) goto l4;
i0 = destination_0d - 1;
i1 = i8 >= i0;
if (i1) goto l4;
i6 = i8;
i7 = 0;
l3:
i5 = i7 + 1;
i4 = (int)_ashl(i5, 1, (unsigned int));
i4 = (int)source2 + i4;
i3 = (int)_ashl(i7, 1, (unsigned int));
i2 = (int)source2 + i3;
i9 = i6 + 1;
i4 = *(unsigned short int*)i4;
i3 = (int)_ashl(i6, 1, (unsigned int));
i7 = *(unsigned short int*)i2;
i3 = (int)destination + i3;
*(unsigned short int*)i3 = i7;
i7 = i4 == 0;
if (i7) goto l5;
i7 = i9 >= i0;
if (i7) goto l5;
i6 = i9;
i7 = i5;
goto l3;
l4:
i9 = i8;
l5:
i0 = (int)_ashl(i9, 1, (unsigned int));
i0 = (int)destination + i0;
*(unsigned short int*)i0 = 0;
_top_vs = _old_top_vs;
}
unsigned char LongStrings__CanAssignAll(short int sourceLength, unsigned short int* destination, int destination_0d) {
register int i0;
i0 = destination_0d > sourceLength;
return (unsigned char)i0;
}
unsigned char LongStrings__CanExtractAll(short int sourceLength, short int startPos, short int numberToExtract, unsigned short int* destination, int destination_0d) {
register int i0;
i0 = startPos + numberToExtract;
i0 = sourceLength < i0;
if (i0) goto l0;
i0 = destination_0d > numberToExtract;
if (i0) goto l1;
l0:
i0 = 0;
goto l2;
l1:
i0 = 1;
l2:
return (unsigned char)i0;
}
unsigned char LongStrings__CanDeleteAll(short int stringLength, short int startPos, short int numberToDelete) {
register int i0;
i0 = startPos + numberToDelete;
i0 = stringLength >= i0;
return (unsigned char)i0;
}
unsigned char LongStrings__CanInsertAll(short int sourceLength, short int startPos, unsigned short int* destination, int destination_0d) {
register int i0, i1;
i0 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i1 = startPos > i0;
if (i1) goto l0;
i0 = sourceLength + i0;
i0 = destination_0d > i0;
if (i0) goto l1;
l0:
i0 = 0;
goto l2;
l1:
i0 = 1;
l2:
return (unsigned char)i0;
}
unsigned char LongStrings__CanReplaceAll(short int sourceLength, short int startPos, unsigned short int* destination, int destination_0d) {
register int i0, i1;
i1 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i0 = sourceLength + startPos;
i0 = i1 >= i0;
return (unsigned char)i0;
}
unsigned char LongStrings__CanAppendAll(short int sourceLength, unsigned short int* destination, int destination_0d) {
register int i0;
i0 = LongStrings__Length((const unsigned short int*)(int)destination, destination_0d);
i0 = sourceLength + i0;
i0 = destination_0d > i0;
return (unsigned char)i0;
}
unsigned char LongStrings__CanConcatAll(short int source1Length, short int source2Length, unsigned short int* destination, int destination_0d) {
register int i0;
i0 = source1Length + source2Length;
i0 = destination_0d > i0;
return (unsigned char)i0;
}
signed char LongStrings__Compare(const unsigned short int* stringVal1, int stringVal1_0d, const unsigned short int* stringVal2, int stringVal2_0d) {
register int i0, i1, i2, i3;
i2 = *(unsigned short int*)(int)stringVal1;
i0 = i2 == 0;
if (i0) goto l1;
i1 = *(unsigned short int*)(int)stringVal2;
i1 = i2 != i1;
if (i1) goto l1;
i3 = 0;
l0:
i3++;
i2 = (int)_ashl(i3, 1, (unsigned int));
i2 = (int)stringVal1 + i2;
i2 = *(unsigned short int*)i2;
i0 = i2 == 0;
if (i0) goto l2;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i0 = *(unsigned short int*)i0;
i2 = i2 == i0;
if (i2) goto l0;
goto l2;
l1:
i3 = 0;
l2:
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i1 = (int)_ashl(i3, 1, (unsigned int));
i1 = (int)stringVal1 + i1;
i0 = *(unsigned short int*)i0;
i1 = *(unsigned short int*)i1;
i2 = i1 < i0;
if (i2) goto l4;
i0 = i1 > i0;
if (i0) goto l3;
i2 = 0;
goto l5;
l3:
i2 = 1;
goto l5;
l4:
i2 = -1;
l5:
return (signed char)i2;
}
unsigned char LongStrings__Equal(const unsigned short int* stringVal1, int stringVal1_0d, const unsigned short int* stringVal2, int stringVal2_0d) {
register int i0, i1, i2, i3;
i2 = *(unsigned short int*)(int)stringVal1;
i0 = i2 == 0;
if (i0) goto l1;
i1 = *(unsigned short int*)(int)stringVal2;
i1 = i2 != i1;
if (i1) goto l1;
i3 = 0;
l0:
i3++;
i2 = (int)_ashl(i3, 1, (unsigned int));
i2 = (int)stringVal1 + i2;
i2 = *(unsigned short int*)i2;
i0 = i2 == 0;
if (i0) goto l2;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i0 = *(unsigned short int*)i0;
i2 = i2 == i0;
if (i2) goto l0;
goto l2;
l1:
i3 = 0;
l2:
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal1 + i0;
i0 = *(unsigned short int*)i0;
i0 = i0 != 0;
if (i0) goto l3;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i3 = *(unsigned short int*)i0;
i3 = i3 == 0;
if (i3) goto l4;
l3:
i0 = 0;
goto l5;
l4:
i0 = 1;
l5:
return (unsigned char)i0;
}
void LongStrings__FindNext(const unsigned short int* pattern, int pattern_0d, const unsigned short int* stringToSearch, int stringToSearch_0d, short int startPos, unsigned char *patternFound, short int *posOfPattern) {
register int i0, i1, i2, i3, i4, i5, i6;
i0 = LongStrings__Length((const unsigned short int*)(int)stringToSearch, stringToSearch_0d);
i0 = startPos < i0;
if (i0) goto l0;
*patternFound = 0;
goto l7;
l0:
i3 = startPos;
i4 = 0;
l1:
i0 = (int)_ashl(i4, 1, (unsigned int));
i0 = (int)pattern + i0;
i6 = *(unsigned short int*)i0;
i0 = i6 == 0;
if (i0) goto l5;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringToSearch + i0;
i0 = *(unsigned short int*)i0;
i5 = i0 == 0;
if (i5) goto l3;
i1 = i0 == i6;
if (i1) goto l2;
i1 = i3 - i4;
i1++;
i2 = 0;
goto l4;
l2:
i1 = i3 + 1;
i2 = i4 + 1;
goto l4;
l3:
*patternFound = 0;
i1 = i3;
i2 = i4;
l4:
i4 = i2;
i3 = i1;
goto l6;
l5:
*patternFound = 1;
i0 = i3 - i4;
*posOfPattern = i0;
i5 = 1;
l6:
if (!(i5)) goto l1;
l7:
;
}
void LongStrings__FindPrev(const unsigned short int* pattern, int pattern_0d, const unsigned short int* stringToSearch, int stringToSearch_0d, short int startPos, unsigned char *patternFound, short int *posOfPattern) {
register int i0, i1, i2, i3, i4, i5;
i0 = LongStrings__Length((const unsigned short int*)(int)pattern, pattern_0d);
i1 = LongStrings__Length((const unsigned short int*)(int)stringToSearch, stringToSearch_0d);
i4 = i1 - i0;
i0 = startPos > i4;
if (i0) goto l0;
i4 = startPos;
l0:
i0 = i4 >= 0;
if (i0) goto l1;
*patternFound = 0;
goto l9;
l1:
i5 = 0;
l2:
i0 = (int)_ashl(i5, 1, (unsigned int));
i0 = (int)pattern + i0;
i0 = *(unsigned short int*)i0;
i1 = i0 == 0;
if (i1) goto l7;
i2 = (int)_ashl(i4, 1, (unsigned int));
i2 = (int)stringToSearch + i2;
i2 = *(unsigned short int*)i2;
i2 = i2 != i0;
if (i2) goto l3;
i1 = i4 + 1;
i2 = i5 + 1;
i3 = 0;
goto l6;
l3:
i3 = i4 > i5;
if (i3) goto l4;
*patternFound = 0;
i2 = i5;
i1 = i4;
goto l5;
l4:
i1 = i4 - i5;
i1--;
i2 = 0;
l5:
i3 = ! i3;
l6:
i5 = i2;
i4 = i1;
goto l8;
l7:
*patternFound = 1;
i0 = i4 - i5;
*posOfPattern = i0;
i3 = 1;
l8:
if (!(i3)) goto l2;
l9:
;
}
void LongStrings__FindDiff(const unsigned short int* stringVal1, int stringVal1_0d, const unsigned short int* stringVal2, int stringVal2_0d, unsigned char *differenceFound, short int *posOfDifference) {
register int i0, i1, i2, i3;
i2 = *(unsigned short int*)(int)stringVal1;
i0 = i2 == 0;
if (i0) goto l1;
i1 = *(unsigned short int*)(int)stringVal2;
i1 = i2 != i1;
if (i1) goto l1;
i3 = 0;
l0:
i3++;
i2 = (int)_ashl(i3, 1, (unsigned int));
i2 = (int)stringVal1 + i2;
i2 = *(unsigned short int*)i2;
i0 = i2 == 0;
if (i0) goto l2;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i0 = *(unsigned short int*)i0;
i2 = i2 == i0;
if (i2) goto l0;
goto l2;
l1:
i3 = 0;
l2:
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal1 + i0;
i0 = *(unsigned short int*)i0;
i0 = i0 != 0;
if (i0) goto l3;
i0 = (int)_ashl(i3, 1, (unsigned int));
i0 = (int)stringVal2 + i0;
i0 = *(unsigned short int*)i0;
i0 = i0 != 0;
if (i0) goto l3;
i0 = 0;
goto l4;
l3:
i0 = 1;
l4:
*differenceFound = i0;
i0 = *differenceFound;
if (!(i0)) goto l5;
*posOfDifference = i3;
l5:
;
}
void LongStrings__Capitalize(unsigned short int* stringVar, int stringVar_0d) {
register int i0, i1, i2, i3, i4;
i0 = *(unsigned short int*)(int)stringVar;
i0 = i0 == 0;
if (i0) goto l1;
i0 = 0;
l0:
i4 = i0 + 1;
i1 = (int)_ashl(i0, 1, (unsigned int));
i1 = (int)stringVar + i1;
i3 = *(unsigned short int*)i1;
i2 = (int)_ashl(i4, 1, (unsigned int));
i3 = _capl(i3);
*(unsigned short int*)i1 = i3;
i0 = (int)stringVar + i2;
i0 = *(unsigned short int*)i0;
i0 = i0 == 0;
if (i0) goto l1;
i0 = i4;
goto l0;
l1:
;
}
void LongStrings__Long(const unsigned char* source, int source_0d, unsigned short int* destination, int destination_0d) {
_string_copy2l((int)destination, (int)source, destination_0d);
}
void LongStrings__Short(const unsigned short int* source, int source_0d, unsigned char repl, unsigned char* destination, int destination_0d) {
register int i0, i1, i2, i3, i4;
i0 = *(unsigned short int*)(int)source;
i3 = destination_0d - 1;
i0 = i0 == 0;
if (i0) goto l3;
i0 = i3 == 0;
if (i0) goto l3;
i4 = 0;
l0:
i2 = (int)_ashl(i4, 1, (unsigned int));
i2 = (int)source + i2;
i1 = *(unsigned short int*)i2;
i2 = i1 <= 255;
if (i2) goto l1;
i2 = (int)destination + i4;
*(unsigned char*)i2 = (int)repl;
goto l2;
l1:
i2 = (int)destination + i4;
*(unsigned char*)i2 = i1;
l2:
i4++;
i2 = (int)_ashl(i4, 1, (unsigned int));
i2 = (int)source + i2;
i2 = *(unsigned short int*)i2;
i2 = i2 == 0;
if (i2) goto l4;
i2 = i3 != i4;
if (i2) goto l0;
goto l4;
l3:
i4 = 0;
l4:
i0 = (int)destination + i4;
*(unsigned char*)i0 = 0;
}
void LongStrings_init(void) {
_mid = _register_module(&LongStrings_md.md, NULL);
}
|