blob: e405cdd0dce3b292609ee14cfb6c7650a545865d (
plain)
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
|
/* ============================================================================
* Copyright (C) 2015, Martial Bornet
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
* (C) Copyright Martial Bornet, 2015.
*
* Author : Martial BORNET (MB) - 3rd of January, 2015
*
* Description : Private externals
*
* File : cr_epri.h
*
* @(#) [MB] cr_epri.h Version 1.19 du 15/11/11 -
*
* Sources from the original hl command are available on :
* https://github.com/mbornet-hl/hl
*
* ============================================================================
*/
#if ! defined(CR_EPRI_H)
# define CR_EPRI_H
#include "cr_cpri.h"
extern struct cr_global G;
extern FILE *yyin;
/* Error messages
~~~~~~~~~~~~~~ */
extern char *cr_err_malloc;
extern int cr_col_codes[8][3];
extern char *cr_best_fg[8][3];
/* Functions
* ~~~~~~~~~ */
void cr_usage(bool);
void cr_display_args(struct cr_config *);
void cr_display_config(void);
void cr_init_list(void);
void cr_init_col_names(void);
CR_DECL_NEW(config);
CR_DECL_NEW(arg);
void cr_add_config(struct cr_config *);
void cr_add_arg(struct cr_arg *);
void cr_set_color(int, char *);
void cr_free_RE(void);
void cr_read_input(void);
void cr_disp_color(int, char *);
void cr_start_color(struct cr_color *);
void cr_end_color(struct cr_color *);
void cr_init_desc(void);
void cr_disp_line(void);
int yylex(void);
#endif /* CR_EPRI_H */
|