Skip to content
Snippets Groups Projects
Select Git revision
  • 1b08d852478572d16bcc3ed9105f6a1e3c372cfe
  • master default protected
  • release_7.2.1
  • release_7.2.0
  • unicaen_authentification
  • release_6.1.2
  • release_6.0.4
  • release_6.1.0
  • release_6.0.3
  • 6.1.0
  • smile
  • 5.x
  • release_5.2.2
  • utilisateur
  • release_5.2.1
  • laminas-bs5-UnicaenPrivilege
  • feature_import_one_row
  • laminas_migration
  • PHP_7-4
  • release_4.0.2
  • release_4.0.0
  • 7.2.1
  • 7.2.0
  • 7.1.0
  • 6.2.0
  • 7.0.0
  • 6.1.4
  • 6.1.3
  • 6.1.2
  • 6.1.1
  • 6.1.0
  • 6.0.3
  • 6.0.2
  • 5.2.3
  • 6.0.1
  • 6.0.0
  • 5.2.2
  • emc2_1.0.0
  • 5.2.1
  • 5.2.0
  • 5.1.2
41 results

CodeGenerator.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    hash_tbl.c 529 B
    #include <stddef.h>
    #include "list.h"
    
    #define ARRAY_CAPACITY 1 << 16
    
    struct hash_tbl {
      size_t (*h)(void*);
      int (*eq)(void*, void*);
      void (*free)(void*);
      unsigned long int size;
      size_t capacity; // array length
      list_t* array;
    };
    
    typedef struct hash_tbl* hash_tbl;
    
    hash_tbl htbl_empty(size_t (*h)(void*),
                        int (*eq)(void*, void*),
                        void (*free)(void*)){
    }
    
    int htbl_add(hash_tbl htbl, void* x){
    }
    
    int htbl_in(hash_tbl htbl, void* x){
    }
    
    void htbl_destroy(hash_tbl htbl){
    }