Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1091 from schveiguy/updatecheaddocs
Browse files Browse the repository at this point in the history
Try to add minimal documentation for all core.stdc bindings
  • Loading branch information
andralex committed Jan 9, 2015
2 parents 1b9ab11 + 077c458 commit 0803287
Show file tree
Hide file tree
Showing 20 changed files with 2,831 additions and 626 deletions.
70 changes: 69 additions & 1 deletion src/core/stdc/complex.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/complex.h.html, complex.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
Expand All @@ -17,93 +19,159 @@ extern (C):
nothrow:
@nogc:

///
alias creal complex;
///
alias ireal imaginary;

///
cdouble cacos(cdouble z);
///
cfloat cacosf(cfloat z);
///
creal cacosl(creal z);

///
cdouble casin(cdouble z);
///
cfloat casinf(cfloat z);
///
creal casinl(creal z);

///
cdouble catan(cdouble z);
///
cfloat catanf(cfloat z);
///
creal catanl(creal z);

///
cdouble ccos(cdouble z);
///
cfloat ccosf(cfloat z);
///
creal ccosl(creal z);

///
cdouble csin(cdouble z);
///
cfloat csinf(cfloat z);
///
creal csinl(creal z);

///
cdouble ctan(cdouble z);
///
cfloat ctanf(cfloat z);
///
creal ctanl(creal z);

///
cdouble cacosh(cdouble z);
///
cfloat cacoshf(cfloat z);
///
creal cacoshl(creal z);

///
cdouble casinh(cdouble z);
///
cfloat casinhf(cfloat z);
///
creal casinhl(creal z);

///
cdouble catanh(cdouble z);
///
cfloat catanhf(cfloat z);
///
creal catanhl(creal z);

///
cdouble ccosh(cdouble z);
///
cfloat ccoshf(cfloat z);
///
creal ccoshl(creal z);

///
cdouble csinh(cdouble z);
///
cfloat csinhf(cfloat z);
///
creal csinhl(creal z);

///
cdouble ctanh(cdouble z);
///
cfloat ctanhf(cfloat z);
///
creal ctanhl(creal z);

///
cdouble cexp(cdouble z);
///
cfloat cexpf(cfloat z);
///
creal cexpl(creal z);

///
cdouble clog(cdouble z);
///
cfloat clogf(cfloat z);
///
creal clogl(creal z);

///
double cabs(cdouble z);
///
float cabsf(cfloat z);
///
real cabsl(creal z);

///
cdouble cpow(cdouble x, cdouble y);
///
cfloat cpowf(cfloat x, cfloat y);
///
creal cpowl(creal x, creal y);

///
cdouble csqrt(cdouble z);
///
cfloat csqrtf(cfloat z);
///
creal csqrtl(creal z);

///
double carg(cdouble z);
///
float cargf(cfloat z);
///
real cargl(creal z);

///
double cimag(cdouble z);
///
float cimagf(cfloat z);
///
real cimagl(creal z);

///
cdouble conj(cdouble z);
///
cfloat conjf(cfloat z);
///
creal conjl(creal z);

///
cdouble cproj(cdouble z);
///
cfloat cprojf(cfloat z);
///
creal cprojl(creal z);

// double creal(cdouble z);
///
float crealf(cfloat z);
///
real creall(creal z);
16 changes: 16 additions & 0 deletions src/core/stdc/ctype.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/ctype.h.html, ctype.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
Expand All @@ -17,17 +19,31 @@ extern (C):
nothrow:
@nogc:

///
pure int isalnum(int c);
///
pure int isalpha(int c);
///
pure int isblank(int c);
///
pure int iscntrl(int c);
///
pure int isdigit(int c);
///
pure int isgraph(int c);
///
pure int islower(int c);
///
pure int isprint(int c);
///
pure int ispunct(int c);
///
pure int isspace(int c);
///
pure int isupper(int c);
///
pure int isxdigit(int c);
///
pure int tolower(int c);
///
pure int toupper(int c);

0 comments on commit 0803287

Please sign in to comment.