• 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/zconf.y
Yann E. MORINYann E. MORIN committed b48e35a28a614 Nov 2013
Raw file
Source viewDiff to previous
    T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_VISIBLE
 
1
%{
2
/*
3
 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
4
 * Released under the terms of the GNU GPL v2.0.
5
 */
6
​
7
#include <ctype.h>
8
#include <stdarg.h>
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <string.h>
12
#include <stdbool.h>
13
​
14
#include "lkc.h"
15
​
16
#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
17
​
18
#define PRINTD      0x0001
19
#define DEBUG_PARSE 0x0002
20
​
21
int cdebug = PRINTD;
22
​
23
extern int zconflex(void);
24
static void zconfprint(const char *err, ...);
25
static void zconf_error(const char *err, ...);
26
static void zconferror(const char *err);
27
static bool zconf_endtoken(const struct kconf_id *id, int starttoken, int endtoken);
28
​
29
struct symbol *symbol_hash[SYMBOL_HASHSIZE];
30
​
31
static struct menu *current_menu, *current_entry;
32
​
33
%}
34
%expect 30
35
​
36
%union
37
{
38
    char *string;
39
    struct file *file;
40
    struct symbol *symbol;
41
    struct expr *expr;
42
    struct menu *menu;
43
    const struct kconf_id *id;
44
}
45
​
46
%token <id>T_MAINMENU
47
%token <id>T_MENU
48
%token <id>T_ENDMENU
49
%token <id>T_SOURCE
50
%token <id>T_CHOICE
51
%token <id>T_ENDCHOICE
52
%token <id>T_COMMENT
53
%token <id>T_CONFIG
54
%token <id>T_MENUCONFIG
55
%token <id>T_HELP
56
%token <string> T_HELPTEXT
57
%token <id>T_IF
58
%token <id>T_ENDIF
59
%token <id>T_DEPENDS
60
%token <id>T_OPTIONAL
61
%token <id>T_PROMPT
62
%token <id>T_TYPE
63
%token <id>T_DEFAULT
  • 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.