This file is indexed.

/usr/share/gretl/functions/gretlfunc.dtd is in gretl-common 2017d-3build1.

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
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
<!--
  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, tags, 
                                  label?, menu-attachment?, help, gui-help?, 
                                  data-files?, 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'
   wants-data-access (true|false) 'false'
   model-requirement CDATA #IMPLIED
   minver CDATA #IMPLIED
>

<!ELEMENT author      (#PCDATA)>
<!ELEMENT version     (#PCDATA)>
<!ELEMENT date        (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT tags        (#PCDATA)>
<!ELEMENT label       (#PCDATA)>
<!ELEMENT menu-attachment (#PCDATA)>
<!ATTLIST author
   email CDATA #REQUIRED
>
<!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 | strings | matrices | bundles | lists) 'void'
   private (0|1) '0'
   plugin-wrapper (0|1) '0'
   no-print (0|1) '0'
   menu-only (0|1) '0'
   pkg-role (bundle-print | bundle-plot | bundle-test | bundle-fcast |
             bundle-extra | gui-main | gui-precheck | list-maker | none) 'none'
>

<!ATTLIST help
   filename CDATA #IMPLIED
>

<!ATTLIST gui-help
   filename CDATA #IMPLIED
>

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

<!ELEMENT data-files (#PCDATA)>
<!ATTLIST data-files 
   count CDATA #REQUIRED
>

<!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 | strings | matrices | bundles |
	 stringsref | matricesref | bundlesref) 'series'
>

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

<!ATTLIST sample-script
   filename CDATA #IMPLIED
>

<!ELEMENT sample-script (#PCDATA)>

<!ELEMENT code (#PCDATA)>