ARB
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <strings.h>
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | BSD 1 |
#define | FALSE 0 |
#define | TRUE 1 |
#define | NULp 0 |
#define | NUL '\0' |
#define | EXIT_SUCCESS 0 |
#define | EXIT_FAILURE 1 |
#define | VERSION "4.3" |
#define | LPR_PRINT 1 |
#define | WIDTH 8.27 |
#define | HEIGHT 11.0 |
#define | MARGIN .5 |
#define | DIR_SEP '/' |
#define | LPR_COMMAND "lpr" |
#define | LPR_OPT "-l" |
#define | PORTRAIT_HEADER 0.29 |
#define | LANDSCAPE_HEADER 0.22 |
#define | PIXELS_INCH 72 |
#define | MAXFILENAME 32 |
#define | MAX_LINES 320 |
#define | MAN_LINES 66 |
#define | IS_ROMAN 0 |
#define | IS_BOLD 1 |
#define | MAX_HOSTNAME 40 |
#define | BUFFER_SIZE 512 |
Enumerations | |
enum | WEIGHT { BOLD, NORMAL } |
Functions | |
static void | print_page_prologue (int side) |
static void | print_standard_prologue (char *datestring) |
static void | startpage () |
static void | endpage () |
char * | getlogin () |
int | gethostname (char *name, int namelen) |
static void | usage (int failure) |
static void | set_global_option (char *arg) |
static void | set_positional_option (char *arg) |
static int | mygetc (int *statusp) |
static int | is_binaryfile (char *name) |
static void | cut_filename (char *old_name, char *new_name) |
static int | printchar (unsigned char c) |
static void | skip_page () |
static int | fold_line (char *name) |
static int | cut_line () |
static void | printpage () |
static void | cleanup () |
static void | init_file_printing (char *name, char *title) |
static void | print_file (char *name, char *header) |
static void | print_prologue () |
int | ARB_main (int argc, char *cargv[]) |
#define BSD 1 |
Definition at line 129 of file arb_a2ps.c.
#define FALSE 0 |
Definition at line 145 of file arb_a2ps.c.
Referenced by ARB_main(), fold_line(), init_file_printing(), is_binaryfile(), print_file(), printpage(), set_global_option(), set_positional_option(), skip_page(), and startpage().
#define TRUE 1 |
Definition at line 146 of file arb_a2ps.c.
Referenced by fold_line(), init_file_printing(), is_binaryfile(), print_file(), set_global_option(), and set_positional_option().
#define NULp 0 |
Definition at line 148 of file arb_a2ps.c.
Referenced by ARB_main(), cut_filename(), and print_prologue().
#define NUL '\0' |
Definition at line 151 of file arb_a2ps.c.
Referenced by ARB_main(), cut_filename(), set_global_option(), and set_positional_option().
#define EXIT_SUCCESS 0 |
Definition at line 154 of file arb_a2ps.c.
Referenced by aisc_accept_calls(), ARB_main(), aw_status_timer_event(), aw_window_destroy_cb(), detect_sina_version(), di_exit(), ED4_exit(), exit_from_merge(), fail_if_error(), gbcm_write_flush(), import_window_close_cb(), Interpreter::launch(), main(), nt_create_intro_window(), NT_restart(), pars_exit(), NtreeCommandLine::parse(), ph_exit(), popup_new_main_window(), server_shutdown(), set_global_option(), UnitTester::UnitTester(), and AW_root::window_hide().
#define EXIT_FAILURE 1 |
Definition at line 157 of file arb_a2ps.c.
Referenced by aisc_server_errorf(), ARB_main(), aw_popup_exit(), aw_status_check_pipe(), aw_status_read_byte(), aw_status_read_int(), detect_sina_version(), errorf(), execute_guarded(), fail_if_error(), formatted(), GB_getenvARBHOME(), init_file_printing(), Interpreter::launch(), main(), message_cb(), openArb(), outOfMemory(), NtreeCommandLine::parse(), print_prologue(), safe_write(), saveArb(), set_global_option(), set_positional_option(), UNITTEST_sigsegv_handler(), UnitTester::UnitTester(), usage(), and Usage().
#define VERSION "4.3" |
Definition at line 164 of file arb_a2ps.c.
Referenced by print_standard_prologue(), and usage().
#define LPR_PRINT 1 |
Definition at line 165 of file arb_a2ps.c.
#define WIDTH 8.27 |
Definition at line 171 of file arb_a2ps.c.
Referenced by ARB_main(), and print_prologue().
#define HEIGHT 11.0 |
Definition at line 175 of file arb_a2ps.c.
Referenced by ARB_main(), and print_prologue().
#define MARGIN .5 |
Definition at line 179 of file arb_a2ps.c.
Referenced by ARB_main(), and print_prologue().
#define DIR_SEP '/' |
Definition at line 187 of file arb_a2ps.c.
Referenced by cut_filename().
#define LPR_COMMAND "lpr" |
Definition at line 197 of file arb_a2ps.c.
Referenced by ARB_main().
#define LPR_OPT "-l" |
Definition at line 201 of file arb_a2ps.c.
Referenced by ARB_main(), and usage().
#define PORTRAIT_HEADER 0.29 |
Definition at line 217 of file arb_a2ps.c.
Referenced by init_file_printing(), and print_page_prologue().
#define LANDSCAPE_HEADER 0.22 |
Definition at line 218 of file arb_a2ps.c.
Referenced by init_file_printing(), and print_page_prologue().
#define PIXELS_INCH 72 |
Definition at line 219 of file arb_a2ps.c.
Referenced by ARB_main(), and init_file_printing().
#define MAXFILENAME 32 |
Definition at line 220 of file arb_a2ps.c.
Referenced by cut_filename().
#define MAX_LINES 320 |
Definition at line 221 of file arb_a2ps.c.
Referenced by set_positional_option().
#define MAN_LINES 66 |
Definition at line 222 of file arb_a2ps.c.
Referenced by set_positional_option().
#define IS_ROMAN 0 |
Definition at line 223 of file arb_a2ps.c.
Referenced by mygetc(), and print_file().
#define IS_BOLD 1 |
Definition at line 224 of file arb_a2ps.c.
Referenced by mygetc().
#define MAX_HOSTNAME 40 |
Definition at line 226 of file arb_a2ps.c.
Referenced by print_prologue().
#define BUFFER_SIZE 512 |
Referenced by mygetc().
enum WEIGHT |
Enumerator | |
---|---|
BOLD | |
NORMAL |
Definition at line 240 of file arb_a2ps.c.
|
static |
Definition at line 1046 of file arb_a2ps.c.
References fontsize, fontweight, header_size, LANDSCAPE_HEADER, NORMAL, and PORTRAIT_HEADER.
Referenced by print_file(), and skip_page().
|
static |
|
static |
|
static |
Definition at line 933 of file arb_a2ps.c.
References printpage().
Referenced by fold_line(), and print_file().
char* getlogin | ( | ) |
Referenced by print_prologue().
Referenced by arb_gethostname(), and print_prologue().
|
static |
Definition at line 347 of file arb_a2ps.c.
References LPR_OPT, and VERSION.
Referenced by set_global_option(), and set_positional_option().
|
static |
Definition at line 402 of file arb_a2ps.c.
References EXIT_FAILURE, EXIT_SUCCESS, FALSE, NUL, TRUE, and usage().
Referenced by ARB_main().
|
static |
Definition at line 555 of file arb_a2ps.c.
References BOLD, EXIT_FAILURE, FALSE, MAN_LINES, MAX_LINES, new_fontsize, new_fontweight, NORMAL, NUL, TRUE, and usage().
Referenced by ARB_main().
Definition at line 683 of file arb_a2ps.c.
References buffer, BUFFER_SIZE, IS_BOLD, and IS_ROMAN.
Referenced by cut_line(), and print_file().
Definition at line 725 of file arb_a2ps.c.
Referenced by fold_line(), and print_file().
Definition at line 739 of file arb_a2ps.c.
References DIR_SEP, MAXFILENAME, NUL, and NULp.
Referenced by init_file_printing().
Definition at line 770 of file arb_a2ps.c.
Referenced by print_file().
|
static |
Definition at line 813 of file arb_a2ps.c.
References FALSE, print_page_prologue(), and startpage().
Referenced by fold_line(), and print_file().
Definition at line 826 of file arb_a2ps.c.
References endpage(), FALSE, is_binaryfile(), skip_page(), and TRUE.
Referenced by print_file().
|
static |
Definition at line 847 of file arb_a2ps.c.
References mygetc(), and status.
Referenced by print_file().
|
static |
Definition at line 863 of file arb_a2ps.c.
References FALSE.
|
static |
Definition at line 916 of file arb_a2ps.c.
References printpage().
Referenced by ARB_main(), getparamlist(), init_file_printing(), and Output::~Output().
Definition at line 950 of file arb_a2ps.c.
References cleanup(), cut_filename(), EXIT_FAILURE, FALSE, fontsize, fontweight, header_size, LANDSCAPE_HEADER, lines_requested, new_fontsize, new_fontweight, new_landscape, new_twinpages, page_height, page_width, PIXELS_INCH, PORTRAIT_HEADER, string(), and TRUE.
Referenced by print_file().
Definition at line 1130 of file arb_a2ps.c.
References __attribute__, columnsperline, cut_line(), endpage(), FALSE, fold_line(), init_file_printing(), is_binaryfile(), IS_ROMAN, mygetc(), arb_test::print(), print_page_prologue(), printchar(), skip_page(), status, and TRUE.
Referenced by ARB_main().
|
static |
Definition at line 1325 of file arb_a2ps.c.
References EXIT_FAILURE, gethostname(), getlogin(), HEIGHT, MARGIN, MAX_HOSTNAME, NULp, print_standard_prologue(), and WIDTH.
Referenced by ARB_main().
Definition at line 1670 of file arb_a2ps.c.
References cleanup(), EXIT_FAILURE, EXIT_SUCCESS, FALSE, fontsize, HEIGHT, LPR_COMMAND, LPR_OPT, lpr_opt, MARGIN, NUL, NULp, old_pages, page_height, page_width, pages, PIXELS_INCH, print_file(), print_prologue(), set_global_option(), set_positional_option(), sheets, sheetside, and WIDTH.
Definition at line 262 of file arb_a2ps.c.
Definition at line 263 of file arb_a2ps.c.
Referenced by ED4_calc_terminal_extentions().
Definition at line 264 of file arb_a2ps.c.
Referenced by alignToNextRelative(), AW_timer_callback(), and AW_timer_callback_never_disabled().
Definition at line 265 of file arb_a2ps.c.
Definition at line 266 of file arb_a2ps.c.
Referenced by NoSuchCommand::call(), and FINAL_TYPE< SEQTYPE >::call().
Definition at line 267 of file arb_a2ps.c.
Definition at line 268 of file arb_a2ps.c.
Referenced by calc_mag_from_psize(), canvas_to_printer(), page_size_check_cb(), and paper_changed_cb().
Definition at line 269 of file arb_a2ps.c.
Referenced by init_file_printing().
Definition at line 270 of file arb_a2ps.c.
Definition at line 271 of file arb_a2ps.c.
Referenced by init_file_printing().
Definition at line 272 of file arb_a2ps.c.
Definition at line 273 of file arb_a2ps.c.
Definition at line 274 of file arb_a2ps.c.
Definition at line 275 of file arb_a2ps.c.
Definition at line 276 of file arb_a2ps.c.
Definition at line 277 of file arb_a2ps.c.
Definition at line 278 of file arb_a2ps.c.
Referenced by init_file_printing(), and print_page_prologue().
Definition at line 279 of file arb_a2ps.c.
Referenced by init_file_printing(), and set_positional_option().
Definition at line 281 of file arb_a2ps.c.
Definition at line 284 of file arb_a2ps.c.
Definition at line 289 of file arb_a2ps.c.
Definition at line 295 of file arb_a2ps.c.
Referenced by BaseFrequencies::bases_and_gaps_at(), BaseFrequencies::max_frequency_at(), and ProbeMatch_impl::ProbeMatch_impl().
|
static |
Definition at line 296 of file arb_a2ps.c.
Referenced by LineQueue::add(), LineQueue::alignInto(), ARB_textfiles_have_difflines(), awt_aps_go(), awt_create_input_mask(), clear_comment_cb(), LineReader::copyTo(), QUERY::DbQuery_update_list(), eatWhite(), embl_origin(), arb_test::expect_broken(), expectContent(), Helpfile::extractInternalLinks(), extractKeyword(), FeatureLine::FeatureLine(), gb_parse_ascii_rek(), genbank_comments(), xsubGenerator::generate_all_xsubs(), get_file_content_for_viewer(), Importer::getFeatureTableLine(), getToken(), GI_importGenomeFile(), HalfSize(), Importer::import(), import_structure_from_file(), StorableSelectionList::load(), TypeMap::load(), FieldTransfer::RuleSet::loadFrom(), xsubGenerator::mark_handcoded_functions(), modifies_awar(), parse_quoted_string(), parseSection(), GBL_IMPL::print_trace(), quick_scan_input_mask(), read_accession_file(), ArbImporter::read_data(), Structure3D::ReadCoOrdinateFile(), Helpfile::readHelp(), StorableSelectionList::save(), save_messagebox_content_to(), scanToken(), SEC_root::set_last_drawed_cursor_position(), LineReader::setLineNumber(), splitEmblTag(), splitGenebankTag(), and today_date().
|
static |
Definition at line 297 of file arb_a2ps.c.
Referenced by MessageAttachable::attached_message().
|
static |
Definition at line 298 of file arb_a2ps.c.
Referenced by ARB_main(), fit_pages(), get_physical_memory(), and page_size_check_cb().
|
static |
Definition at line 299 of file arb_a2ps.c.
Referenced by ARB_main().
|
static |
Definition at line 300 of file arb_a2ps.c.
Referenced by ARB_main().
|
static |
Definition at line 300 of file arb_a2ps.c.
|
static |
Definition at line 301 of file arb_a2ps.c.
Referenced by ARB_main().
|
static |
Definition at line 302 of file arb_a2ps.c.
|
static |
Definition at line 303 of file arb_a2ps.c.
Referenced by init_file_printing().
|
static |
Definition at line 304 of file arb_a2ps.c.
|
static |
Definition at line 305 of file arb_a2ps.c.
Referenced by print_file().
|
static |
Definition at line 306 of file arb_a2ps.c.
|
static |
Definition at line 306 of file arb_a2ps.c.
|
static |
Definition at line 307 of file arb_a2ps.c.
|
static |
Definition at line 308 of file arb_a2ps.c.
|
static |
Definition at line 314 of file arb_a2ps.c.
Definition at line 315 of file arb_a2ps.c.
|
static |
Definition at line 316 of file arb_a2ps.c.
|
static |
Definition at line 317 of file arb_a2ps.c.
Referenced by ARB_main(), AW_xfig::AW_xfig(), init_file_printing(), print_page_prologue(), and AW_GC::set_font().
|
static |
Definition at line 318 of file arb_a2ps.c.
Referenced by init_file_printing(), and set_positional_option().
|
static |
Definition at line 319 of file arb_a2ps.c.
Referenced by apply_ACI(), apply_to_origin(), applyToItemFoundByKey(), ARB_main(), arb_start_server(), AW_edit(), AW_openURL(), awt_create_input_mask(), awtc_remove_arb_acc(), canvas_to_printer(), gb_build_compress_list(), gb_compress_bits(), GB_textprint(), gb_uncompress_huffmann(), gbl_command(), gbl_eval(), GBS_string_eval_in_env(), GEN_insert_multi_submenu(), modify_fields_of_queried_cb(), NT_start(), pd_export_pt_server(), react_to_command(), and readXmlTree().
Definition at line 320 of file arb_a2ps.c.
Referenced by ARB_main().
Definition at line 321 of file arb_a2ps.c.
Referenced by ED4_text_terminal::draw().
|
static |
Definition at line 322 of file arb_a2ps.c.
Referenced by init_file_printing(), and print_page_prologue().
Definition at line 323 of file arb_a2ps.c.
|
static |
Definition at line 324 of file arb_a2ps.c.
|
static |
Definition at line 325 of file arb_a2ps.c.
|
static |
Definition at line 326 of file arb_a2ps.c.
Definition at line 328 of file arb_a2ps.c.
|
static |
Definition at line 335 of file arb_a2ps.c.
Referenced by ARB_main(), and init_file_printing().
|
static |
Definition at line 336 of file arb_a2ps.c.
Referenced by ARB_main(), and init_file_printing().