#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "logging.h"
#include "parse.h"
#include "utility.h"
#include "startup.h"
#include "version.h"
#include "config.glsl"
Go to the source code of this file.
Macros | |
#define | O(flag) (0 == strcmp((flag), argv[i]) && strlen((flag)) == strlen(argv[i])) |
#define | NEXT do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", argv[i-1]); return false; } }while(0) |
#define | NEXT2(s) do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", s); return false; } }while(0) |
Functions | |
void | print_version (void) |
void | print_banner (void) |
void | print_usage (const char *progname) |
bool | parse_command_line (struct options *options, int argc, char **argv) |
#define NEXT do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", argv[i-1]); return false; } }while(0) |
Referenced by parse_command_line().
#define NEXT2 | ( | s | ) | do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", s); return false; } }while(0) |
Referenced by parse_command_line().
#define O | ( | flag | ) | (0 == strcmp((flag), argv[i]) && strlen((flag)) == strlen(argv[i])) |
Referenced by parse_command_line().
bool parse_command_line | ( | struct options * | options, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 77 of file startup.c.
References options::centerx, options::centery, options::file_to_load, options::geometry, options::height, options::help, options::interactive, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, options::log_level, log_message, LOG_NOTICE, LOG_WARN, max(), options::max_blob, options::max_glitch, min(), NEXT, NEXT2, O, options::oneshot, options::overhead, precision_for_radius(), options::radius, options::render_de, options::series_approx, options::sharpness, options::show_glitches, options::size, options::slice, SLICE_MAX, options::tile, options::tile_height, options::tile_width, options::timeout, options::version, options::view_supplied, options::weight, options::width, options::win_height, options::win_width, options::zoom, and options::zoom_frames.
Referenced by main().
void print_banner | ( | void | ) |
Definition at line 22 of file startup.c.
References LOG_INFO, log_message, and mightymandel_version.
Referenced by main().
void print_usage | ( | const char * | progname | ) |
void print_version | ( | void | ) |
Definition at line 18 of file startup.c.
References mightymandel_version.
Referenced by main().