Ignore:
Timestamp:
Aug 3, 2011, 5:15:51 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: Changed hash table memory allocation. Previously we pre-allocated the memory, now we allocate the memory as we need.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/symtab/hash.h

    r1229 r1270  
    2424#ifdef __GNUC__
    2525#include <cstring>
     26#include <stdint.h>
    2627typedef unsigned int UINT;
    27 //typedef uint64_t UINT64;
    28 typedef unsigned int ULONG_PTR;
     28typedef unsigned long ULONG_PTR;
    2929typedef char CHAR;
    3030typedef unsigned int UINT32;
     
    3636typedef unsigned char BYTE;
    3737typedef unsigned char UCHAR;
    38 //#if defined(_WIN64)
    39 // typedef __int64 INT_PTR;
    40 typedef int INT_PTR; // If we are using 64 bit machine, then sizeof(int) = 64 bits
    41 typedef int INT64;
    42 //#else
    43 // typedef int INT_PTR;
    44 //#endif
     38typedef bool BOOL;
     39#define TRUE 1
     40#define FALSE 0
     41typedef int64_t INT64;
     42typedef intptr_t INT_PTR; // If we are using 64 bit machine, then sizeof(int) = 64 bits
    4543typedef size_t SIZE_T;
    4644#endif
Note: See TracChangeset for help on using the changeset viewer.