-
vendor/onig_sys-69.8.1/oniguruma/src/regparse.c
diff --color -Naur rustc-1.86.0-src.orig/vendor/onig_sys-69.8.1/oniguruma/src/regparse.c rustc-1.86.0-src/vendor/onig_sys-69.8.1/oniguruma/src/regparse.c
old new 547 547 } st_str_end_key; 548 548 549 549 static int 550 str_end_cmp(st_ str_end_key* x, st_str_end_key*y)550 str_end_cmp(st_data_t ax, st_data_t ay) 551 551 { 552 st_str_end_key* x = (st_str_end_key* )ax; 553 st_str_end_key* y = (st_str_end_key* )ay; 552 554 UChar *p, *q; 553 555 int c; 554 556 … … 568 570 } 569 571 570 572 static int 571 str_end_hash(st_ str_end_key*x)573 str_end_hash(st_data_t ax) 572 574 { 575 st_str_end_key* x = (st_str_end_key* )ax; 573 576 UChar *p; 574 577 unsigned val = 0; 575 578 … … 634 637 } st_callout_name_key; 635 638 636 639 static int 637 callout_name_table_cmp(st_ callout_name_key* x, st_callout_name_key*y)640 callout_name_table_cmp(st_data_t ax, st_data_t ay) 638 641 { 642 st_callout_name_key* x = (st_callout_name_key* )ax; 643 st_callout_name_key* y = (st_callout_name_key* )ay; 639 644 UChar *p, *q; 640 645 int c; 641 646 … … 657 662 } 658 663 659 664 static int 660 callout_name_table_hash(st_ callout_name_key*x)665 callout_name_table_hash(st_data_t ax) 661 666 { 667 st_callout_name_key* x = (st_callout_name_key* )ax; 662 668 UChar *p; 663 669 unsigned int val = 0; 664 670 … … 786 792 #endif /* ONIG_DEBUG */ 787 793 788 794 static int 789 i_free_name_entry( UChar* key, NameEntry* e, void*arg ARG_UNUSED)795 i_free_name_entry(st_data_t akey, st_data_t ae, st_data_t arg ARG_UNUSED) 790 796 { 797 UChar* key; 798 NameEntry* e; 799 800 key = (UChar* )akey; 801 e = (NameEntry* )ae; 791 802 xfree(e->name); 792 803 if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs); 793 804 xfree(key); … … 843 854 } INamesArg; 844 855 845 856 static int 846 i_names( UChar* key ARG_UNUSED, NameEntry* e, INamesArg*arg)857 i_names(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t aarg) 847 858 { 859 NameEntry* e; 860 INamesArg* arg; 861 862 e = (NameEntry* )ae; 863 arg = (INamesArg* )aarg; 864 848 865 int r = (*(arg->func))(e->name, 849 866 e->name + e->name_len, 850 867 e->back_num, … … 876 893 } 877 894 878 895 static int 879 i_renumber_name( UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap*map)896 i_renumber_name(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t amap) 880 897 { 881 898 int i; 899 NameEntry* e; 900 GroupNumMap* map; 901 902 e = (NameEntry* )ae; 903 map = (GroupNumMap* )amap; 882 904 883 905 if (e->back_num > 1) { 884 906 for (i = 0; i < e->back_num; i++) { … … 1367 1389 #ifdef USE_ST_LIBRARY 1368 1390 1369 1391 static int 1370 i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e, 1371 void* arg ARG_UNUSED) 1392 i_free_callout_name_entry(st_data_t akey, st_data_t ae, st_data_t arg ARG_UNUSED) 1372 1393 { 1394 st_callout_name_key* key; 1395 CalloutNameEntry* e; 1396 1397 key = (st_callout_name_key* )akey; 1398 e = (CalloutNameEntry* )ae; 1399 1373 1400 if (IS_NOT_NULL(e)) { 1374 1401 xfree(e->name); 1375 1402 } … … 1863 1890 #define CALLOUT_TAG_LIST_FLAG_TAG_EXIST (1<<0) 1864 1891 1865 1892 static int 1866 i_callout_callout_list_set( UChar* key, CalloutTagVal e, void*arg)1893 i_callout_callout_list_set(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t arg) 1867 1894 { 1868 1895 int num; 1869 RegexExt* ext = (RegexExt* )arg; 1896 CalloutTagVal e; 1897 RegexExt* ext; 1898 1899 e = (CalloutTagVal )ae; 1900 ext = (RegexExt* )arg; 1870 1901 1871 1902 num = (int )e - 1; 1872 1903 ext->callout_list[num].flag |= CALLOUT_TAG_LIST_FLAG_TAG_EXIST; … … 1919 1950 } 1920 1951 1921 1952 static int 1922 i_free_callout_tag_entry( UChar* key, CalloutTagVal e, void*arg ARG_UNUSED)1953 i_free_callout_tag_entry(st_data_t akey, st_data_t e ARG_UNUSED, st_data_t arg ARG_UNUSED) 1923 1954 { 1955 UChar* key; 1956 1957 key = (UChar* )akey; 1924 1958 xfree(key); 1925 1959 return ST_DELETE; 1926 1960 } -
vendor/onig_sys-69.8.1/oniguruma/src/st.c
diff --color -Naur rustc-1.86.0-src.orig/vendor/onig_sys-69.8.1/oniguruma/src/st.c rustc-1.86.0-src/vendor/onig_sys-69.8.1/oniguruma/src/st.c
old new 32 32 * 33 33 */ 34 34 35 static int numcmp( long, long);36 static int numhash( long);35 static int numcmp(st_data_t, st_data_t); 36 static int numhash(st_data_t); 37 37 static struct st_hash_type type_numhash = { 38 38 numcmp, 39 39 numhash, 40 40 }; 41 41 42 /* extern int strcmp(const char *, const char *); */ 43 static int str hash(const char *);42 static int str_cmp(st_data_t, st_data_t); 43 static int str_hash(st_data_t); 44 44 static struct st_hash_type type_strhash = { 45 str cmp,46 str hash,45 str_cmp, 46 str_hash, 47 47 }; 48 48 49 49 static void rehash(st_table *); … … 487 487 int 488 488 st_foreach(table, func, arg) 489 489 st_table *table; 490 int (*func)( );490 int (*func)(st_data_t, st_data_t, st_data_t); 491 491 st_data_t arg; 492 492 { 493 493 st_table_entry *ptr, *last, *tmp; … … 535 535 } 536 536 537 537 static int 538 strhash(string) 539 register const char *string; 538 str_cmp(st_data_t a1, st_data_t a2) 540 539 { 540 const char* s1 = (const char* )a1; 541 const char* s2 = (const char* )a2; 542 return strcmp(s1, s2); 543 } 544 545 static int 546 strhash(st_data_t astring) 547 { 548 const char *string = (const char* )astring; 541 549 register int c; 542 550 543 551 #ifdef HASH_ELFHASH … … 574 582 } 575 583 576 584 static int 577 numcmp(x, y) 578 long x, y; 585 numcmp(st_data_t x, st_data_t y) 579 586 { 580 587 return x != y; 581 588 } 582 589 583 590 static int 584 numhash(n) 585 long n; 591 numhash(st_data_t n) 586 592 { 587 593 return n; 588 594 } -
vendor/onig_sys-69.8.1/oniguruma/src/st.h
diff --color -Naur rustc-1.86.0-src.orig/vendor/onig_sys-69.8.1/oniguruma/src/st.h rustc-1.86.0-src/vendor/onig_sys-69.8.1/oniguruma/src/st.h
old new 16 16 typedef struct st_table st_table; 17 17 18 18 struct st_hash_type { 19 int (*compare)( );20 int (*hash)( );19 int (*compare)(st_data_t, st_data_t); 20 int (*hash)(st_data_t); 21 21 }; 22 22 23 23 struct st_table { … … 34 34 #ifndef _ 35 35 # define _(args) args 36 36 #endif 37 #ifndef ANYARGS38 # ifdef __cplusplus39 # define ANYARGS ...40 # else41 # define ANYARGS42 # endif43 #endif44 37 45 38 st_table *st_init_table _((struct st_hash_type *)); 46 39 st_table *st_init_table_with_size _((struct st_hash_type *, int)); … … 52 45 int st_delete_safe _((st_table *, st_data_t *, st_data_t *, st_data_t)); 53 46 int st_insert _((st_table *, st_data_t, st_data_t)); 54 47 int st_lookup _((st_table *, st_data_t, st_data_t *)); 55 int st_foreach _((st_table *, int (*)( ANYARGS), st_data_t));48 int st_foreach _((st_table *, int (*)(st_data_t, st_data_t, st_data_t), st_data_t)); 56 49 void st_add_direct _((st_table *, st_data_t, st_data_t)); 57 50 void st_free_table _((st_table *)); 58 51 void st_cleanup_safe _((st_table *, st_data_t)); -
src/tools/rustbook/Cargo.lock
diff --color -Naur rustc-1.86.0-src.orig/src/tools/rustbook/Cargo.lock rustc-1.86.0-src/src/tools/rustbook/Cargo.lock
old new 1019 1019 [[package]] 1020 1020 name = "onig_sys" 1021 1021 version = "69.8.1" 1022 source = "registry+https://github.com/rust-lang/crates.io-index"1023 checksum = "7b829e3d7e9cc74c7e315ee8edb185bf4190da5acde74afd7fc59c35b1f086e7"1024 1022 dependencies = [ 1025 1023 "cc", 1026 1024 "pkg-config", -
src/tools/rustbook/Cargo.toml
diff --color -Naur rustc-1.86.0-src.orig/src/tools/rustbook/Cargo.toml rustc-1.86.0-src/src/tools/rustbook/Cargo.toml
old new 17 17 version = "0.4.44" 18 18 default-features = false 19 19 features = ["search"] 20 21 [patch.crates-io] 22 onig_sys = { path = "../../../vendor/onig_sys-69.8.1" }
Last modified
18 months ago
Last modified on 04/24/2025 08:33:32 AM
Note:
See TracWiki
for help on using the wiki.
