This file is indexed.

/usr/share/gretl/functions/gretlfunc.dtd is in gretl-common 1.9.14-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!--
  Document Type Definition (DTD) for gretl function packages: a package
  needs a name, author, version, date, description and help text.  It 
  also needs at least one gretl-function.  The latter must have a name 
  and must include function code; it may have zero or more 
  parameters, and zero or one return values. And the package must
  contain a sample script which illustrates a correct call.
 -->

<!ELEMENT gretl-functions (gretl-function-package?)>

<!ELEMENT gretl-function-package (author, version, date, description, 
                                  label?, menu-attachment?, help, gui-help?, 
                                  gretl-function+, sample-script)>
<!ATTLIST gretl-function-package
   name CDATA #REQUIRED
   ID CDATA #IMPLIED
   needs-time-series-data (true|false) 'false'
   needs-qm-data (true|false) 'false'
   needs-panel-data (true|false) 'false'
   no-data-ok (true|false) 'false'
   has-pdf-doc (true|false) 'false'
   lives-in-subdir (true|false) 'false'
   model-requirement CDATA #IMPLIED
   minver CDATA #IMPLIED
>

<!ELEMENT author      (#PCDATA)>
<!ELEMENT version     (#PCDATA)>
<!ELEMENT date        (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT label       (#PCDATA)>
<!ELEMENT menu-attachment (#PCDATA)>
<!ATTLIST description
   lang CDATA #IMPLIED
>

<!ELEMENT gretl-function (params?, return?, code)>
<!ATTLIST gretl-function
   name CDATA #REQUIRED
   type (void | scalar | series | matrix | list | string | bundle) 'void'
   private (0|1) '0'
   plugin-wrapper (0|1) '0'
   no-print (0|1) '0'
   pkg-role (bundle-print | bundle-plot | bundle-test | bundle-fcast |
             bundle-extra | gui-main | gui-precheck | none) 'none'
>

<!ELEMENT help (#PCDATA)>
<!ELEMENT gui-help (#PCDATA)>

<!ELEMENT params (param+)>
<!ATTLIST params 
   count CDATA #REQUIRED
>

<!ELEMENT labels (#PCDATA)>
<!ATTLIST labels
   count CDATA #REQUIRED
>

<!ELEMENT param (description?, labels?)>
<!ATTLIST param
   name    CDATA #REQUIRED
   default CDATA #IMPLIED
   min     CDATA #IMPLIED
   max     CDATA #IMPLIED
   step    CDATA #IMPLIED
   optional (true|false) 'false'
   const    (true|false) 'false'
   type (bool | boolean | int | obs | scalar | series | list |
         matrix | bundle | scalarref | seriesref | matrixref |
         bundleref | string) 'series'
>

<!ELEMENT return EMPTY>
<!ATTLIST return
   name CDATA #REQUIRED
   type (scalar | series | matrix | list | string | bundle) 'series'
>

<!ELEMENT sample-script (#PCDATA)>

<!ELEMENT code (#PCDATA)>