• 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/confdata.c
Arnout VandecappelleArnout Vandecappelle committed 4113b3c3bdb04 Feb 2014
Raw file
Source viewDiff to previous
tristate_print_symbol(FILE *fp, struct symbol *sym, const char *value, void *arg)
 
1
/*
2
 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3
 * Released under the terms of the GNU GPL v2.0.
4
 */
5
​
6
#include <sys/stat.h>
7
#include <ctype.h>
8
#include <errno.h>
9
#include <fcntl.h>
10
#include <stdarg.h>
11
#include <stdio.h>
12
#include <stdlib.h>
13
#include <string.h>
14
#include <time.h>
15
#include <unistd.h>
16
#include <libgen.h>
17
​
18
#include "lkc.h"
19
​
20
static void conf_warning(const char *fmt, ...)
21
    __attribute__ ((format (printf, 1, 2)));
22
​
23
static void conf_message(const char *fmt, ...)
24
    __attribute__ ((format (printf, 1, 2)));
25
​
26
static const char *conf_filename;
27
static int conf_lineno, conf_warnings, conf_unsaved;
28
​
29
const char conf_defname[] = ".defconfig";
30
​
31
static void conf_warning(const char *fmt, ...)
32
{
33
    va_list ap;
34
    va_start(ap, fmt);
35
    fprintf(stderr, "%s:%d:warning: ", conf_filename, conf_lineno);
36
    vfprintf(stderr, fmt, ap);
37
    fprintf(stderr, "\n");
38
    va_end(ap);
39
    conf_warnings++;
40
}
41
​
42
static void conf_default_message_callback(const char *fmt, va_list ap)
43
{
44
    printf("#\n# ");
45
    vprintf(fmt, ap);
46
    printf("\n#\n");
47
}
48
​
49
static void (*conf_message_callback) (const char *fmt, va_list ap) =
50
    conf_default_message_callback;
51
void conf_set_message_callback(void (*fn) (const char *fmt, va_list ap))
52
{
53
    conf_message_callback = fn;
54
}
55
​
56
static void conf_message(const char *fmt, ...)
57
{
58
    va_list ap;
59
​
60
    va_start(ap, fmt);
61
    if (conf_message_callback)
62
        conf_message_callback(fmt, ap);
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.