Data Structures | Defines | Typedefs | Functions | Variables

ink_args.h File Reference

A brief file description. More...

#include "ink_defs.h"
#include "ink_apidefs.h"
Include dependency graph for ink_args.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ArgumentDescription

Defines

#define MAX_FILE_ARGUMENTS   100

Typedefs

typedef void ArgumentFunction (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, const char *arg)

Functions

void show_argument_configuration (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions)
void usage (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, const char *arg_unused) TS_NORETURN
void process_args (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, char **argv, const char *usage_string=0)

Variables

const char * file_arguments []
unsigned n_file_arguments
const char * program_name

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_args.h.


Define Documentation

#define MAX_FILE_ARGUMENTS   100

Definition at line 34 of file ink_args.h.


Typedef Documentation

typedef void ArgumentFunction(const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, const char *arg)

Definition at line 38 of file ink_args.h.


Function Documentation

void process_args ( const ArgumentDescription argument_descriptions,
unsigned  n_argument_descriptions,
char **  argv,
const char *  usage_string = 0 
)
void show_argument_configuration ( const ArgumentDescription argument_descriptions,
unsigned  n_argument_descriptions 
)

Definition at line 105 of file ink_args.cc.

References ink_fatal().

void usage ( const ArgumentDescription argument_descriptions,
unsigned  n_argument_descriptions,
const char *  arg_unused 
)

Variable Documentation

const char* file_arguments[]

Definition at line 35 of file ink_args.cc.

Referenced by main(), and process_args().

unsigned n_file_arguments

Definition at line 37 of file ink_args.cc.

Referenced by main(), and process_args().

const char* program_name

Definition at line 36 of file ink_args.cc.

Referenced by ink_stack_trace_dump(), process_args(), and usage().