wiki:gcc15-todo/rustc
  • 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  
    547547} st_str_end_key;
    548548
    549549static int
    550 str_end_cmp(st_str_end_key* x, st_str_end_key* y)
     550str_end_cmp(st_data_t ax, st_data_t ay)
    551551{
     552  st_str_end_key* x = (st_str_end_key* )ax;
     553  st_str_end_key* y = (st_str_end_key* )ay;
    552554  UChar *p, *q;
    553555  int c;
    554556
    … …  
    568570}
    569571
    570572static int
    571 str_end_hash(st_str_end_key* x)
     573str_end_hash(st_data_t ax)
    572574{
     575  st_str_end_key* x = (st_str_end_key* )ax;
    573576  UChar *p;
    574577  unsigned val = 0;
    575578
    … …  
    634637} st_callout_name_key;
    635638
    636639static int
    637 callout_name_table_cmp(st_callout_name_key* x, st_callout_name_key* y)
     640callout_name_table_cmp(st_data_t ax, st_data_t ay)
    638641{
     642  st_callout_name_key* x = (st_callout_name_key* )ax;
     643  st_callout_name_key* y = (st_callout_name_key* )ay;
    639644  UChar *p, *q;
    640645  int c;
    641646
    … …  
    657662}
    658663
    659664static int
    660 callout_name_table_hash(st_callout_name_key* x)
     665callout_name_table_hash(st_data_t ax)
    661666{
     667  st_callout_name_key* x = (st_callout_name_key* )ax;
    662668  UChar *p;
    663669  unsigned int val = 0;
    664670
    … …  
    786792#endif /* ONIG_DEBUG */
    787793
    788794static int
    789 i_free_name_entry(UChar* key, NameEntry* e, void* arg ARG_UNUSED)
     795i_free_name_entry(st_data_t akey, st_data_t ae, st_data_t arg ARG_UNUSED)
    790796{
     797  UChar* key;
     798  NameEntry* e;
     799
     800  key = (UChar* )akey;
     801  e = (NameEntry* )ae;
    791802  xfree(e->name);
    792803  if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
    793804  xfree(key);
    … …  
    843854} INamesArg;
    844855
    845856static int
    846 i_names(UChar* key ARG_UNUSED, NameEntry* e, INamesArg* arg)
     857i_names(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t aarg)
    847858{
     859  NameEntry* e;
     860  INamesArg* arg;
     861
     862  e = (NameEntry* )ae;
     863  arg = (INamesArg* )aarg;
     864
    848865  int r = (*(arg->func))(e->name,
    849866                         e->name + e->name_len,
    850867                         e->back_num,
    … …  
    876893}
    877894
    878895static int
    879 i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap* map)
     896i_renumber_name(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t amap)
    880897{
    881898  int i;
     899  NameEntry* e;
     900  GroupNumMap* map;
     901
     902  e = (NameEntry* )ae;
     903  map = (GroupNumMap* )amap;
    882904
    883905  if (e->back_num > 1) {
    884906    for (i = 0; i < e->back_num; i++) {
    … …  
    13671389#ifdef USE_ST_LIBRARY
    13681390
    13691391static int
    1370 i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e,
    1371                           void* arg ARG_UNUSED)
     1392i_free_callout_name_entry(st_data_t akey, st_data_t ae, st_data_t arg ARG_UNUSED)
    13721393{
     1394  st_callout_name_key* key;
     1395  CalloutNameEntry* e;
     1396
     1397  key = (st_callout_name_key* )akey;
     1398  e = (CalloutNameEntry* )ae;
     1399
    13731400  if (IS_NOT_NULL(e)) {
    13741401    xfree(e->name);
    13751402  }
    … …  
    18631890#define CALLOUT_TAG_LIST_FLAG_TAG_EXIST     (1<<0)
    18641891
    18651892static int
    1866 i_callout_callout_list_set(UChar* key, CalloutTagVal e, void* arg)
     1893i_callout_callout_list_set(st_data_t key ARG_UNUSED, st_data_t ae, st_data_t arg)
    18671894{
    18681895  int num;
    1869   RegexExt* ext = (RegexExt* )arg;
     1896  CalloutTagVal e;
     1897  RegexExt* ext;
     1898
     1899  e   = (CalloutTagVal )ae;
     1900  ext = (RegexExt* )arg;
    18701901
    18711902  num = (int )e - 1;
    18721903  ext->callout_list[num].flag |= CALLOUT_TAG_LIST_FLAG_TAG_EXIST;
    … …  
    19191950}
    19201951
    19211952static int
    1922 i_free_callout_tag_entry(UChar* key, CalloutTagVal e, void* arg ARG_UNUSED)
     1953i_free_callout_tag_entry(st_data_t akey, st_data_t e ARG_UNUSED, st_data_t arg ARG_UNUSED)
    19231954{
     1955  UChar* key;
     1956
     1957  key = (UChar* )akey;
    19241958  xfree(key);
    19251959  return ST_DELETE;
    19261960}
  • 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  
    3232     *
    3333     */
    3434
    35 static int numcmp(long, long);
    36 static int numhash(long);
     35static int numcmp(st_data_t, st_data_t);
     36static int numhash(st_data_t);
    3737static struct st_hash_type type_numhash = {
    3838    numcmp,
    3939    numhash,
    4040};
    4141
    42 /* extern int strcmp(const char *, const char *); */
    43 static int strhash(const char *);
     42static int str_cmp(st_data_t, st_data_t);
     43static int str_hash(st_data_t);
    4444static struct st_hash_type type_strhash = {
    45     strcmp,
    46     strhash,
     45    str_cmp,
     46    str_hash,
    4747};
    4848
    4949static void rehash(st_table *);
    … …  
    487487int
    488488st_foreach(table, func, arg)
    489489     st_table *table;
    490      int (*func)();
     490     int (*func)(st_data_t, st_data_t, st_data_t);
    491491     st_data_t arg;
    492492{
    493493  st_table_entry *ptr, *last, *tmp;
    … …  
    535535}
    536536
    537537static int
    538 strhash(string)
    539      register const char *string;
     538str_cmp(st_data_t a1, st_data_t a2)
    540539{
     540  const char* s1 = (const char* )a1;
     541  const char* s2 = (const char* )a2;
     542  return strcmp(s1, s2);
     543}
     544
     545static int
     546strhash(st_data_t astring)
     547{
     548  const char *string = (const char* )astring;
    541549  register int c;
    542550
    543551#ifdef HASH_ELFHASH
    … …  
    574582}
    575583
    576584static int
    577 numcmp(x, y)
    578      long x, y;
     585numcmp(st_data_t x, st_data_t y)
    579586{
    580587  return x != y;
    581588}
    582589
    583590static int
    584 numhash(n)
    585      long n;
     591numhash(st_data_t n)
    586592{
    587593  return n;
    588594}
  • 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  
    1616typedef struct st_table st_table;
    1717
    1818struct st_hash_type {
    19     int (*compare)();
    20     int (*hash)();
     19    int (*compare)(st_data_t, st_data_t);
     20    int (*hash)(st_data_t);
    2121};
    2222
    2323struct st_table {
    … …  
    3434#ifndef _
    3535# define _(args) args
    3636#endif
    37 #ifndef ANYARGS
    38 # ifdef __cplusplus
    39 #   define ANYARGS ...
    40 # else
    41 #   define ANYARGS
    42 # endif
    43 #endif
    4437
    4538st_table *st_init_table _((struct st_hash_type *));
    4639st_table *st_init_table_with_size _((struct st_hash_type *, int));
    … …  
    5245int st_delete_safe _((st_table *, st_data_t *, st_data_t *, st_data_t));
    5346int st_insert _((st_table *, st_data_t, st_data_t));
    5447int st_lookup _((st_table *, st_data_t, st_data_t *));
    55 int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
     48int st_foreach _((st_table *, int (*)(st_data_t, st_data_t, st_data_t), st_data_t));
    5649void st_add_direct _((st_table *, st_data_t, st_data_t));
    5750void st_free_table _((st_table *));
    5851void 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  
    10191019[[package]]
    10201020name = "onig_sys"
    10211021version = "69.8.1"
    1022 source = "registry+https://github.com/rust-lang/crates.io-index"
    1023 checksum = "7b829e3d7e9cc74c7e315ee8edb185bf4190da5acde74afd7fc59c35b1f086e7"
    10241022dependencies = [
    10251023 "cc",
    10261024 "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  
    1717version = "0.4.44"
    1818default-features = false
    1919features = ["search"]
     20
     21[patch.crates-io]
     22onig_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.