Mercurial > octave
comparison libinterp/dldfcn/__delaunayn__.cc @ 29969:7a4f16bff8fd
use fewer OCTAVE_NAMESPACE_BEGIN/END blocks where possible
* __magick_read__.cc, __delaunayn__.cc, __ode15__.cc, __voronoi__.cc:
Place optional header files in separate #ifdef blocks from optional
code so that a single OCTAVE_NAMESPACE_BEGIN/END pair can surround the
entire code section of the file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Aug 2021 16:57:52 -0400 |
parents | bdf99bc91d94 |
children | 796f54d4ddbf |
comparison
equal
deleted
inserted
replaced
29968:7aa4d8c049e5 | 29969:7a4f16bff8fd |
---|---|
60 #include "error.h" | 60 #include "error.h" |
61 #include "errwarn.h" | 61 #include "errwarn.h" |
62 #include "ovl.h" | 62 #include "ovl.h" |
63 | 63 |
64 #if defined (HAVE_QHULL) | 64 #if defined (HAVE_QHULL) |
65 | |
66 # include "oct-qhull.h" | 65 # include "oct-qhull.h" |
67 | |
68 # if defined (NEED_QHULL_R_VERSION) | 66 # if defined (NEED_QHULL_R_VERSION) |
69 char qh_version[] = "__delaunayn__.oct 2007-08-21"; | 67 char qh_version[] = "__delaunayn__.oct 2007-08-21"; |
70 # endif | 68 # endif |
69 #endif | |
71 | 70 |
72 OCTAVE_NAMESPACE_BEGIN | 71 OCTAVE_NAMESPACE_BEGIN |
72 | |
73 #if defined (HAVE_QHULL) | |
73 | 74 |
74 static void | 75 static void |
75 free_qhull_memory (qhT *qh) | 76 free_qhull_memory (qhT *qh) |
76 { | 77 { |
77 qh_freeqhull (qh, ! qh_ALL); | 78 qh_freeqhull (qh, ! qh_ALL); |
96 } | 97 } |
97 | 98 |
98 return true; | 99 return true; |
99 } | 100 } |
100 | 101 |
101 OCTAVE_NAMESPACE_END | 102 #endif |
102 | |
103 #endif | |
104 | |
105 OCTAVE_NAMESPACE_BEGIN | |
106 | 103 |
107 DEFUN_DLD (__delaunayn__, args, , | 104 DEFUN_DLD (__delaunayn__, args, , |
108 doc: /* -*- texinfo -*- | 105 doc: /* -*- texinfo -*- |
109 @deftypefn {} {@var{T} =} __delaunayn__ (@var{pts}) | 106 @deftypefn {} {@var{T} =} __delaunayn__ (@var{pts}) |
110 @deftypefnx {} {@var{T} =} __delaunayn__ (@var{pts}, @var{options}) | 107 @deftypefnx {} {@var{T} =} __delaunayn__ (@var{pts}, @var{options}) |