From 05ce7984e90ba139a406b39d7ba6864d4c4f29e8 Mon Sep 17 00:00:00 2001 From: "Hassan @Ubuntu" Date: Sun, 20 Jun 2021 22:25:54 +0200 Subject: [PATCH] Use using c++11 keyword instead of typedef --- src/common/defs.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/common/defs.h b/src/common/defs.h index ff62d4d..8619bdf 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -32,28 +32,28 @@ #include #include -typedef bool BOOL; -typedef void VOID; -typedef void * ADDRESS; -typedef std::ofstream FILEPTR; -typedef long int INTEGER; -typedef long int VALUE; -typedef const char* STRING; -typedef std::vector INTVECTOR; -typedef std::set INTSET; -typedef std::unordered_set UNORD_INTSET; -typedef std::vector STRVECTOR; - -using uint = unsigned int; -using ulong = unsigned long; -using lint = long int; -using address = void *; -using Void = void; +using BOOL = bool; +using VOID = void; +using ADDRESS = void *; +using FILEPTR = std::ofstream; +using INTEGER = long int; +using VALUE = long int; +using STRING = const char*; +using INTVECTOR = std::vector; +using INTSET = std::set; +using UNORD_INTSET = std::unordered_set; +using STRVECTOR = std::vector; // for conflict task pairs -typedef std::pair IDPAIR; -typedef std::set> LINE_PAIRS; -typedef std::map CONFLICT_PAIRS; +using IDPAIR = std::pair; +using LINE_PAIRS = std::set>; +using CONFLICT_PAIRS = std::map; + +using uint = unsigned int; +using ulong = unsigned long; +using lint = long int; +using address = void *; +using Void = void; enum OPERATION { ALLOCA,