recipes

packages recipes for the <noname> package manager
Log | Files | Refs

remove-beg-end-decl.diff (2425B)


      1 diff --git a/chars.h b/chars.h
      2 index c3627b5..284280e 100644
      3 --- a/chars.h
      4 +++ b/chars.h
      5 @@ -17,8 +17,6 @@
      6  #ifndef CHARS_H
      7  #define CHARS_H
      8  
      9 -__BEGIN_DECLS
     10 -
     11  enum	chars {
     12  	CHARS_ASCII,
     13  	CHARS_HTML
     14 @@ -29,6 +27,4 @@ const char	 *chars_a2ascii(void *, const char *, size_t, size_t *);
     15  const char	 *chars_a2res(void *, const char *, size_t, size_t *);
     16  void		  chars_free(void *);
     17  
     18 -__END_DECLS
     19 -
     20  #endif /*!CHARS_H*/
     21 diff --git a/main.h b/main.h
     22 index a8d995a..bd8add6 100644
     23 --- a/main.h
     24 +++ b/main.h
     25 @@ -17,8 +17,6 @@
     26  #ifndef	MAIN_H
     27  #define	MAIN_H
     28  
     29 -__BEGIN_DECLS
     30 -
     31  struct	mdoc;
     32  struct	man;
     33  
     34 @@ -42,6 +40,4 @@ void		  terminal_mdoc(void *, const struct mdoc *);
     35  void		  terminal_man(void *, const struct man *);
     36  void		  terminal_free(void *);
     37  
     38 -__END_DECLS
     39 -
     40  #endif /*!MAIN_H*/
     41 diff --git a/man.h b/man.h
     42 index 89858e8..5c79fc6 100644
     43 --- a/man.h
     44 +++ b/man.h
     45 @@ -98,8 +98,6 @@ struct	man_cb {
     46  	int	(*man_err)(void *, int, int, const char *);
     47  };
     48  
     49 -__BEGIN_DECLS
     50 -
     51  struct	man;
     52  
     53  void	 	  man_free(struct man *);
     54 @@ -111,6 +109,4 @@ int		  man_endparse(struct man *);
     55  const struct man_node *man_node(const struct man *);
     56  const struct man_meta *man_meta(const struct man *);
     57  
     58 -__END_DECLS
     59 -
     60  #endif /*!MAN_H*/
     61 diff --git a/mdoc.h b/mdoc.h
     62 index eabffcb..873ccca 100644
     63 --- a/mdoc.h
     64 +++ b/mdoc.h
     65 @@ -285,8 +285,6 @@ struct	mdoc_cb {
     66  extern	const char *const *mdoc_macronames;
     67  extern	const char *const *mdoc_argnames;
     68  
     69 -__BEGIN_DECLS
     70 -
     71  struct	mdoc;
     72  
     73  /* See mdoc.3 for documentation. */
     74 @@ -299,6 +297,4 @@ const struct mdoc_node *mdoc_node(const struct mdoc *);
     75  const struct mdoc_meta *mdoc_meta(const struct mdoc *);
     76  int		  mdoc_endparse(struct mdoc *);
     77  
     78 -__END_DECLS
     79 -
     80  #endif /*!MDOC_H*/
     81 diff --git a/out.h b/out.h
     82 index 5f47fb7..56129cf 100644
     83 --- a/out.h
     84 +++ b/out.h
     85 @@ -17,8 +17,6 @@
     86  #ifndef OUT_H
     87  #define OUT_H
     88  
     89 -__BEGIN_DECLS
     90 -
     91  enum	roffscale {
     92  	SCALE_CM,
     93  	SCALE_IN,
     94 @@ -53,6 +51,4 @@ struct	roffsu {
     95  int		  a2roffsu(const char *, 
     96  			struct roffsu *, enum roffscale);
     97  
     98 -__END_DECLS
     99 -
    100  #endif /*!HTML_H*/
    101 diff --git a/term.h b/term.h
    102 index f0d8201..c1bb7cd 100644
    103 --- a/term.h
    104 +++ b/term.h
    105 @@ -17,8 +17,6 @@
    106  #ifndef TERM_H
    107  #define TERM_H
    108  
    109 -__BEGIN_DECLS
    110 -
    111  enum	termenc {
    112  	TERMENC_ASCII
    113  };
    114 @@ -56,6 +54,4 @@ void		  term_flushln(struct termp *);
    115  size_t		  term_hspan(const struct roffsu *);
    116  size_t		  term_vspan(const struct roffsu *);
    117  
    118 -__END_DECLS
    119 -
    120  #endif /*!TERM_H*/