• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/kconfig/nconf.h
Thomas PetazzoniThomas Petazzoni committed 6997e461fdb04 Apr 2013
Raw file
Source viewDiff to previous
int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...);
 
1
/*
2
 * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com?
3
 * Released under the terms of the GNU GPL v2.0.
4
 *
5
 * Derived from menuconfig.
6
 *
7
 */
8
​
9
#include <ctype.h>
10
#include <errno.h>
11
#include <fcntl.h>
12
#include <limits.h>
13
#include <stdarg.h>
14
#include <stdlib.h>
15
#include <string.h>
16
#include <unistd.h>
17
#include <locale.h>
18
#include <curses.h>
19
#include <menu.h>
20
#include <panel.h>
21
#include <form.h>
22
​
23
#include <stdio.h>
24
#include <time.h>
25
#include <sys/time.h>
26
​
27
#include "ncurses.h"
28
​
29
#define max(a, b) ({\
30
        typeof(a) _a = a;\
31
        typeof(b) _b = b;\
32
        _a > _b ? _a : _b; })
33
​
34
#define min(a, b) ({\
35
        typeof(a) _a = a;\
36
        typeof(b) _b = b;\
37
        _a < _b ? _a : _b; })
38
​
39
typedef enum {
40
    NORMAL = 1,
41
    MAIN_HEADING,
42
    MAIN_MENU_BOX,
43
    MAIN_MENU_FORE,
44
    MAIN_MENU_BACK,
45
    MAIN_MENU_GREY,
46
    MAIN_MENU_HEADING,
47
    SCROLLWIN_TEXT,
48
    SCROLLWIN_HEADING,
49
    SCROLLWIN_BOX,
50
    DIALOG_TEXT,
51
    DIALOG_MENU_FORE,
52
    DIALOG_MENU_BACK,
53
    DIALOG_BOX,
54
    INPUT_BOX,
55
    INPUT_HEADING,
56
    INPUT_TEXT,
57
    INPUT_FIELD,
58
    FUNCTION_TEXT,
59
    FUNCTION_HIGHLIGHT,
60
    ATTR_MAX
61
} attributes_t;
62
extern attributes_t attributes[];
63
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.