unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 6f00bf0c3546096c98e20e65000a5a919d678d34 2160 bytes (raw)
name: src/overlays.h 	 # note: path name is non-authoritative(*)

 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
 

#ifndef OVERLAYS_H
#define OVERLAYS_H

#include <config.h>
#include "lisp.h"

extern struct Lisp_Overlay OVERLAY_SENTINEL_NODE;

extern struct Lisp_Overlay * OVERLAY_SENTINEL;

struct overlay_entry
{
  Lisp_Object overlay;
  Lisp_Object string;
  EMACS_INT priority;
  bool after_string_p;
};

void
overlay_tree_insert (struct Lisp_Overlay **tree,
                     struct Lisp_Overlay *node);

void
overlay_tree_delete (struct Lisp_Overlay **tree,
                     struct Lisp_Overlay *node);

void
overlay_tree_drop_all (struct buffer *buf);

Lisp_Object
buffer_of_overlay (Lisp_Object overlay);

ptrdiff_t
overlay_tree_all (struct Lisp_Overlay *tree, ptrdiff_t *vec_size,
                  Lisp_Object **vec_ptr);

ptrdiff_t
overlay_tree_at (struct Lisp_Overlay *tree, ptrdiff_t pos,
                 ptrdiff_t *next_ptr, ptrdiff_t *prev_ptr,                 
                 ptrdiff_t *vec_size, Lisp_Object **vec_ptr,
                 bool chane_req);

void
overlay_tree_zero_size_at (struct Lisp_Overlay *tree, ptrdiff_t pos,
                           Lisp_Object hit_list);

ptrdiff_t
overlay_tree_adjust_for_insert (struct Lisp_Overlay *tree,
                                ptrdiff_t from_char,
                                ptrdiff_t to_char,
                                ptrdiff_t from_byte,
                                ptrdiff_t to_byte,
                                bool before);

ptrdiff_t
overlay_tree_adjust_for_delete (struct Lisp_Overlay *tree,
                                ptrdiff_t from_char, ptrdiff_t from_byte,
                                ptrdiff_t to_char, ptrdiff_t to_byte);

ptrdiff_t
overlay_tree_adjust_for_replace (struct Lisp_Overlay *tree,
                                 ptrdiff_t from_char,
                                 ptrdiff_t from_byte,
                                 ptrdiff_t old_chars,
                                 ptrdiff_t old_bytes,
                                 ptrdiff_t new_chars,
                                 ptrdiff_t new_bytes);

ptrdiff_t
overlay_tree_at (struct Lisp_Overlay *tree, Lisp_Object **vecp,
                 ptrdiff_t pos);


#endif /* OVERLAYS_H */

debug log:

solving 6f00bf0 ...
found 6f00bf0 in https://yhetil.org/emacs-devel/87d1jylv43.fsf@fastmail.com/

applying [1/1] https://yhetil.org/emacs-devel/87d1jylv43.fsf@fastmail.com/
diff --git a/src/overlays.h b/src/overlays.h
new file mode 100644
index 0000000..6f00bf0

1:46: trailing whitespace.
                 ptrdiff_t *next_ptr, ptrdiff_t *prev_ptr,                 
Checking patch src/overlays.h...
Applied patch src/overlays.h cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 6f00bf0c3546096c98e20e65000a5a919d678d34	src/overlays.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).