about summary refs log tree commit diff stats
path: root/LICENSE
blob: c29eaade94027ed133b98f35d2b504dff4a64e80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Copyright (c) 2018-2019 Drew DeVault
Copyright (c) 2021 Robin Jarry

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
und-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# rltypedefs.h -- Type declarations for readline functions. 
# Copyright (C) 2000-2009 Free Software Foundation, Inc.
#
#   This file is part of the GNU Readline Library (Readline), a library
#   for reading lines of text with interactive input and history editing.      
#
#   Readline is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   Readline is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with Readline.  If not, see <http://www.gnu.org/licenses/>.
#

type 
  TFunction* = proc (): cint{.cdecl.}
  TVFunction* = proc (){.cdecl.}
  TCPFunction* = proc (): cstring{.cdecl.}
  TCPPFunction* = proc (): cstringArray{.cdecl.}

# Bindable functions 

type 
  Tcommand_func* = proc (a2: cint, a3: cint): cint{.cdecl.}

# Typedefs for the completion system 

type 
  Tcompentry_func* = proc (a2: cstring, a3: cint): cstring{.cdecl.}
  Tcompletion_func* = proc (a2: cstring, a3: cint, a4: cint): cstringArray{.
      cdecl.}
  Tquote_func* = proc (a2: cstring, a3: cint, a4: cstring): cstring{.cdecl.}
  Tdequote_func* = proc (a2: cstring, a3: cint): cstring{.cdecl.}
  Tcompignore_func* = proc (a2: cstringArray): cint{.cdecl.}
  Tcompdisp_func* = proc (a2: cstringArray, a3: cint, a4: cint){.cdecl.}

# Type for input and pre-read hook functions like rl_event_hook 

type 
  Thook_func* = proc (): cint{.cdecl.}

# Input function type 

type 
  Tgetc_func* = proc (a2: File): cint{.cdecl.}

# Generic function that takes a character buffer (which could be the readline
#   line buffer) and an index into it (which could be rl_point) and returns
#   an int. 

type 
  Tlinebuf_func* = proc (a2: cstring, a3: cint): cint{.cdecl.}

# `Generic' function pointer typedefs 

type 
  Tintfunc* = proc (a2: cint): cint{.cdecl.}
  Tivoidfunc* = proc (): cint{.cdecl.}
  Ticpfunc* = proc (a2: cstring): cint{.cdecl.}
  Ticppfunc* = proc (a2: cstringArray): cint{.cdecl.}
  Tvoidfunc* = proc (){.cdecl.}
  Tvintfunc* = proc (a2: cint){.cdecl.}
  Tvcpfunc* = proc (a2: cstring){.cdecl.}
  Tvcppfunc* = proc (a2: cstringArray){.cdecl.}
  Tcpvfunc* = proc (): cstring{.cdecl.}
  Tcpifunc* = proc (a2: cint): cstring{.cdecl.}
  Tcpcpfunc* = proc (a2: cstring): cstring{.cdecl.}
  Tcpcppfunc* = proc (a2: cstringArray): cstring{.cdecl.}