File: parse_1st_pass_funcs.h

package info (click to toggle)
quickplot 0.10.3-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,464 kB
  • sloc: ansic: 16,640; sh: 11,163; makefile: 395
file content (132 lines) | stat: -rw-r--r-- 2,204 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* A template of this file was generated with `./mk_options -1' */
/* Clearly this will edited too. */

static inline
void parse_1st_File(const char *file)
{
  if(!strcmp("-", file))
  {
    if(app->op_pipe != 0)
      app->op_pipe = 1;
  }
}

static inline
void parse_1st_about(void)
{
  cb_about(NULL, (void *)1);
}

static inline
void parse_1st_gtk_version(void)
{
  printf("%d.%d.%d\n",
      GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  exit(0);
}

static inline
void parse_1st_help(void)
{
  cb_help(NULL, (void *) 1);
}

static inline
void parse_1st_libsndfile_version(void)
{
  char *str;
  str = (char *) sf_version_string();
  while(*str && (*str < '0' || *str > '9'))
    ++str;
  printf("%s\n", str);
  exit(1);
}

static inline
void parse_1st_no_pipe(void)
{
  app->op_pipe = 0;
}

static inline
void parse_1st_no_readline(void)
{
  app->op_no_readline = 1;
}

static inline
void parse_1st_pipe(void)
{
  if(app->op_pipe != 0)
    app->op_pipe = 1;
}

static inline
void parse_1st_print_about(void)
{
  print_text("about.txt");
}

static inline
void parse_1st_print_help(void)
{
  print_text("help.txt");
}

static inline
void parse_1st_read_pipe_here(void)
{
  /* We will read the pipe when this options comes up in
   * parse_2nd_read_pipe_here(). We will not read the pipe
   * before of after that. */
  app->op_read_pipe_here = 1;
}

static inline
void parse_1st_silent(void)
{
  qp_spew_init(5);
  parser->p1.silent = 1;
}

static inline
void parse_1st_verbose(void)
{
  if(!parser->p1.silent)
    qp_spew_init(1);
}

static inline
void parse_1st_version(void)
{
  printf("%s\n", VERSION);
  exit(0);
}


static inline
void parse_1st_background_color(char *arg, int argc, char **argv, int *i)
{
  check_color_opt("--background-color", arg);
}

static inline
void parse_1st_grid_line_color(char *arg, int argc, char **argv, int *i)
{
  check_color_opt("--grid-line-color", arg);
}

static inline
void parse_1st_grid_text_color(char *arg, int argc, char **argv, int *i)
{
  check_color_opt("--grid-text-color", arg);
}


static inline
void parse_1st_linear_channel(char *arg, int argc, char **argv, int *i)
{
  parse_linear_channel(0, arg, argc, argv, i, NULL, NULL);
}