diff options
author | cathook <cat.hook31894@gmail.com> | 2013-12-18 01:57:59 +0800 |
---|---|---|
committer | cathook <cat.hook31894@gmail.com> | 2013-12-18 01:57:59 +0800 |
commit | e83c651c29dc154a99798d228a21a6a0836cb774 (patch) | |
tree | 58a3b1476a213622b7a3f6212387561081dc1162 | |
parent | a1d003b12542b3cd87e22ba443072544aafd9c46 (diff) | |
download | ctl-e83c651c29dc154a99798d228a21a6a0836cb774.tar.gz ctl-e83c651c29dc154a99798d228a21a6a0836cb774.tar.zst ctl-e83c651c29dc154a99798d228a21a6a0836cb774.zip |
rename ErrorType to CtlErrorType
-rw-r--r-- | inc/utility.h | 4 | ||||
-rw-r--r-- | src/utility.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/inc/utility.h b/inc/utility.h index edc8f3b..638c989 100644 --- a/inc/utility.h +++ b/inc/utility.h @@ -46,7 +46,7 @@ typedef enum{ CTL_MEMORY = 0x01, CTL_USER = 0x02 -} ErrorType; +} CtlErrorType; // int typedef int* pint; @@ -110,7 +110,7 @@ typedef int (*cmp_func)(pcvoid,pcvoid); pvoid ctl_malloc (size_t size); pvoid ctl_realloc(pvoid ptr, size_t size); pvoid ctl_free (pvoid ptr); -void ctl_die (ErrorType e); +void ctl_die (CtlErrorType e); #define ctl_swap(X,Y,Z) do{X zzzztmp=(Y);(Y)=(Z);(Z)=zzzztmp;}while(0) #define ctl_max(X,Y) ((X) > (Y) ? (X) : (Y)) diff --git a/src/utility.c b/src/utility.c index 636d04c..b383834 100644 --- a/src/utility.c +++ b/src/utility.c @@ -29,7 +29,7 @@ pvoid ctl_free(pvoid ptr){ } /********* print some message on STDERR and exit() ********/ -void ctl_die(ErrorType e){ +void ctl_die(CtlErrorType e){ fprintf(stderr, "exit(%d): ", (int)e); switch(e){ case CTL_MEMORY: |