cache.h (28e62b90d95a4ed8ae2ba93879003665051581a6) cache.h (281ef544a8476f750b9f378593c42b3e8a0b8788)
1#ifndef __PERF_CACHE_H
2#define __PERF_CACHE_H
3
4#include <stdbool.h>
5#include "util.h"
6#include "strbuf.h"
7#include "../perf.h"
8

--- 19 unchanged lines hidden (view full) ---

28/* pager.c */
29extern void setup_pager(void);
30extern const char *pager_program;
31extern int pager_in_use(void);
32extern int pager_use_color;
33
34extern int use_browser;
35
1#ifndef __PERF_CACHE_H
2#define __PERF_CACHE_H
3
4#include <stdbool.h>
5#include "util.h"
6#include "strbuf.h"
7#include "../perf.h"
8

--- 19 unchanged lines hidden (view full) ---

28/* pager.c */
29extern void setup_pager(void);
30extern const char *pager_program;
31extern int pager_in_use(void);
32extern int pager_use_color;
33
34extern int use_browser;
35
36#ifdef NO_NEWT_SUPPORT
36#if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT)
37static inline void setup_browser(bool fallback_to_pager)
38{
39 if (fallback_to_pager)
40 setup_pager();
41}
42static inline void exit_browser(bool wait_for_ok __used) {}
43#else
44void setup_browser(bool fallback_to_pager);
45void exit_browser(bool wait_for_ok);
37static inline void setup_browser(bool fallback_to_pager)
38{
39 if (fallback_to_pager)
40 setup_pager();
41}
42static inline void exit_browser(bool wait_for_ok __used) {}
43#else
44void setup_browser(bool fallback_to_pager);
45void exit_browser(bool wait_for_ok);
46
47#ifdef NO_NEWT_SUPPORT
48static inline int ui__init(bool fallback_to_pager)
49{
50 if (fallback_to_pager)
51 setup_pager();
52 return 0;
53}
54static inline void ui__exit(bool wait_for_ok __used) {}
55#else
56int ui__init(bool fallback_to_pager);
57void ui__exit(bool wait_for_ok);
46#endif
47
48#ifdef NO_GTK2_SUPPORT
58#endif
59
60#ifdef NO_GTK2_SUPPORT
49static inline void perf_gtk__setup_browser(bool fallback_to_pager)
61static inline void perf_gtk__init(bool fallback_to_pager)
50{
51 if (fallback_to_pager)
52 setup_pager();
53}
62{
63 if (fallback_to_pager)
64 setup_pager();
65}
54static inline void perf_gtk__exit_browser(bool wait_for_ok __used) {}
66static inline void perf_gtk__exit(bool wait_for_ok __used) {}
55#else
67#else
56void perf_gtk__setup_browser(bool fallback_to_pager);
57void perf_gtk__exit_browser(bool wait_for_ok);
68void perf_gtk__init(bool fallback_to_pager);
69void perf_gtk__exit(bool wait_for_ok);
58#endif
70#endif
71#endif /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */
59
60char *alias_lookup(const char *alias);
61int split_cmdline(char *cmdline, const char ***argv);
62
63#define alloc_nr(x) (((x)+16)*3/2)
64
65/*
66 * Realloc the buffer pointed at by variable 'x' so that it can hold

--- 36 unchanged lines hidden ---
72
73char *alias_lookup(const char *alias);
74int split_cmdline(char *cmdline, const char ***argv);
75
76#define alloc_nr(x) (((x)+16)*3/2)
77
78/*
79 * Realloc the buffer pointed at by variable 'x' so that it can hold

--- 36 unchanged lines hidden ---