summary refs log tree commit diff stats
path: root/lib/wrappers/tinyc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wrappers/tinyc.nim')
-rw-r--r--lib/wrappers/tinyc.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/wrappers/tinyc.nim b/lib/wrappers/tinyc.nim
index ac6cb70f1..05c65b12f 100644
--- a/lib/wrappers/tinyc.nim
+++ b/lib/wrappers/tinyc.nim
@@ -8,10 +8,11 @@
 #
 
 type
-  TccState {.pure, final.} = object
-  PccState* = ptr TccState
+  CcState {.pure, final.} = object
+  PccState* = ptr CcState
   
-  TErrorFunc* = proc (opaque: pointer, msg: cstring) {.cdecl.}
+  ErrorFunc* = proc (opaque: pointer, msg: cstring) {.cdecl.}
+{.deprecated: [TccState: CcState, TErrorFunc: ErrorFunc].}
 
 proc openCCState*(): PccState {.importc: "tcc_new", cdecl.}
   ## create a new TCC compilation context
@@ -22,7 +23,7 @@ proc closeCCState*(s: PccState) {.importc: "tcc_delete", cdecl.}
 proc enableDebug*(s: PccState) {.importc: "tcc_enable_debug", cdecl.}
   ## add debug information in the generated code
 
-proc setErrorFunc*(s: PccState, errorOpaque: pointer, errorFun: TErrorFunc) {.
+proc setErrorFunc*(s: PccState, errorOpaque: pointer, errorFun: ErrorFunc) {.
   cdecl, importc: "tcc_set_error_func".}
   ## set error/warning display callback