-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lisp: add kinds for def{type,class,method,generic,struct,parameter}
versionCurrent and versionAge are not updated in this commit. They may be updated in following commits. Signed-off-by: Masatake YAMATO <[email protected]>
- Loading branch information
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,9 @@ f functions | |
v variables | ||
m macros | ||
c constants | ||
t types | ||
C classes | ||
s structs | ||
M methods | ||
G generics | ||
p parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--sort=no | ||
--fields=+KkZz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
url input.lisp /^(defmethod url ((url quri:uri))$/;" kind:method | ||
url-designator input.lisp /^(deftype url-designator ()$/;" kind:type | ||
renderer-scheme input.lisp /^(defclass renderer-scheme ()$/;" kind:class | ||
scheme input.lisp /^(define-class scheme (renderer-scheme)$/;" kind:unknown | ||
browser-schemes input.lisp /^(defgeneric browser-schemes (browser)$/;" kind:generic | ||
%buffer input.lisp /^(defparameter %buffer nil)$/;" kind:parameter | ||
:nyxt/renderer/gtk input.lisp /^(nyxt:define-package :nyxt\/renderer\/gtk$/;" kind:unknown | ||
renderer-history-entry input.lisp /^(defstruct renderer-history-entry$/;" kind:struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
;; Taken from https://github.com/atlas-engineer/nyxt.git | ||
|
||
(defmethod url ((url quri:uri)) | ||
url) | ||
|
||
(deftype url-designator () | ||
"Type for anything URL-like. | ||
Means that `url' can be applied to it to get `quri:uri'." | ||
`(satisfies has-url-method-p)) | ||
|
||
(defclass renderer-scheme () | ||
() | ||
(:metaclass interface-class) | ||
(:documentation "Renderer-specific representation of the custom scheme. | ||
Should be redefined by the renderer.")) | ||
|
||
(define-class scheme (renderer-scheme) | ||
((name | ||
(alex:required-argument 'name) | ||
:documentation "The custom scheme name to handle. | ||
HTTPS or FILE are examples of schemes.") | ||
(callback | ||
nil | ||
:type (or null function) | ||
:documentation "A function called on URL load that returns the page contents. | ||
It takes the URL as an argument and returns up to 5 values: | ||
- The data for page contents (either as string or as a unsigned byte array) | ||
- The MIME type for the contents | ||
- The status code for the request | ||
- An alist of headers for the request | ||
- A status reason phrase") | ||
(error-callback | ||
nil | ||
:type (or null function) | ||
:documentation "Callback to use when a condition is signaled. | ||
Accepts only one argument: the signaled condition.")) | ||
(:export-class-name-p t) | ||
(:export-accessor-names-p t) | ||
(:documentation "Representation of Nyxt-specific internal schemes. | ||
Has `name' it can be accessed with. When accessed, runs `callback' to return | ||
content. In case something goes wrong, runs `error-callback'.") | ||
(:metaclass user-class)) | ||
|
||
(defgeneric browser-schemes (browser) | ||
(:method-combination append) | ||
(:documentation "Return a list of schemes supported by BROWSER.")) | ||
|
||
(defparameter %buffer nil) | ||
|
||
(nyxt:define-package :nyxt/renderer/gtk | ||
(:documentation "GTK renderer using direct CFFI bindings.")) | ||
|
||
(defstruct renderer-history-entry | ||
title | ||
url | ||
original-url | ||
gtk-object) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters