das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
form_priv.h
1/* Copyright (C) 2026 Chris Piker <chris-piker@uiowa.edu>
2 *
3 * This file is part of das2C, the Core Das2 C Library.
4 *
5 * Das2C is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License version 2.1 as published
7 * by the Free Software Foundation.
8 *
9 * Das2C is distributed in the hope that it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * version 2.1 along with das2C; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18/* Helpers shared by the formalism modules, form.c defines them. Not
19 * installed.
20 */
21
22#ifndef _das_form_priv_h_
23#define _das_form_priv_h_
24
25#include "defs.h"
26
27struct das_buffer;
28
29/* Shared by the formalisms that carry a component order. Emits sysorder=
30 when it says something the default does not: a non-ascending order,
31 printed to the component count recorded when validate() was run.
32
33 Use sysorder= in XML headers when the order is not ascending. pOrder is
34 uComps entries long slot to canonical component, so this works for a nine
35 element rotation as readily as a three element vector. */
36DasErrCode _das_form_prnOrder(
37 struct das_buffer* pBuf, const ubyte* pOrder, ubyte uComps
38);
39
40#endif /* _das_form_priv_h_ */
Minimal definitions for das2 utilities that can safely be run without calling das_init().
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition defs.h:189