mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
Changed to _qmckl_context_destroy_ to be consistent ZMQ
Changed _qmckl_context_destroy_ to be consistent ZMQ and other similar libraries.
This commit is contained in:
parent
be5bea1f85
commit
a3d8b6f402
@ -90,18 +90,18 @@ qmckl_context qmckl_context_copy(qmckl_context context) {
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =qmckl_context_delete=
|
** =qmckl_context_destroy=
|
||||||
|
|
||||||
To delete a new context, use =qmckl_context_delete()=. If the deletion
|
To delete a new context, use =qmckl_context_destroy()=. If the deletion
|
||||||
failed, the function returns =0=. On success, the function returns =1=
|
failed, the function returns =0=. On success, the function returns =1=
|
||||||
implying that the context has been freed.
|
implying that the context has been freed.
|
||||||
|
|
||||||
#+BEGIN_SRC C :tangle qmckl_context.h
|
#+BEGIN_SRC C :tangle qmckl_context.h
|
||||||
qmckl_context qmckl_context_delete(qmckl_context context);
|
qmckl_context qmckl_context_destroy(qmckl_context context);
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC C :tangle qmckl_context.c
|
#+BEGIN_SRC C :tangle qmckl_context.c
|
||||||
qmckl_context qmckl_context_delete(qmckl_context context) {
|
qmckl_context qmckl_context_destroy(qmckl_context context) {
|
||||||
|
|
||||||
if (context == NULL) {
|
if (context == NULL) {
|
||||||
return (qmckl_context) 0;
|
return (qmckl_context) 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user