1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00
qmckl/src/qmckl.org

48 lines
845 B
Org Mode
Raw Normal View History

2020-10-16 13:58:05 +02:00
# -*- mode: org -*-
# vim: syntax=c
#+TITLE: QMCkl C header
This file is included in all other C header files, and produces the
=qmckl.h= header file.
#+BEGIN_SRC C :tangle qmckl.h
#ifndef QMCKL_H
#define QMCKL_H
#+END_SRC
* Constants
** Success/failure
These are the codes returned by the functions to indicate success
or failure. All such functions should have as a return type =qmckl_exit_code=.
#+BEGIN_SRC C :tangle qmckl.h
#define QMCKL_SUCCESS 0
#define QMCKL_FAILURE 1
typedef int qmckl_exit_code;
#+END_SRC
** Precision-related constants
#+BEGIN_SRC C :tangle qmckl.h
#define QMCKL_DEFAULT_PRECISION 53
#define QMCKL_DEFAULT_RANGE 2
#+END_SRC
* Header files
#+BEGIN_SRC C :tangle qmckl.h
#include "qmckl_context.h"
#+END_SRC
* End of header
#+BEGIN_SRC C :tangle qmckl.h
#endif
#+END_SRC