args.c File Reference

#include <sys/types.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include "globs.h"
#include "proto.h"

Include dependency graph for args.c:

Go to the source code of this file.

Data Structures

struct  pro

Defines

#define PUBLIC   extern
#define PRO_SPECIAL   1
#define PRO_BOOL   2
#define PRO_INT   3
#define PRO_FONT   4
#define ON   1
#define OFF   0
#define IGN   1
#define CLI   2
#define STDIN   3
#define KEY   4

Functions

void set_profile ()
void scan_profile (FILE *f)
int eqin (char *s1, char *s2)
void set_defaults ()
void set_option (char *arg)

Variables

char * param_start


Define Documentation

#define CLI   2
 

Definition at line 46 of file args.c.

Referenced by set_option().

#define IGN   1
 

Definition at line 45 of file args.c.

Referenced by parse(), and set_option().

#define KEY   4
 

Definition at line 48 of file args.c.

Referenced by set_option().

#define OFF   0
 

Definition at line 42 of file args.c.

#define ON   1
 

Definition at line 41 of file args.c.

#define PRO_BOOL   2
 

Definition at line 36 of file args.c.

Referenced by set_option().

#define PRO_FONT   4
 

Definition at line 38 of file args.c.

Referenced by set_defaults(), and set_option().

#define PRO_INT   3
 

Definition at line 37 of file args.c.

Referenced by set_option().

#define PRO_SPECIAL   1
 

Definition at line 35 of file args.c.

Referenced by set_defaults(), and set_option().

#define PUBLIC   extern
 

Copyright (c) 1985 Sun Microsystems, Inc. Copyright (c) 1980 The Regents of the University of California. Copyright (c) 1976 Board of Trustees of the University of Illinois. All rights reserved.

Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of California, Berkeley, the University of Illinois, Urbana, and Sun Microsystems, Inc. The name of either University or Sun Microsystems may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Definition at line 26 of file args.c.

#define STDIN   3
 

Definition at line 47 of file args.c.


Function Documentation

int eqin char *  s1,
char *  s2
 

Definition at line 180 of file args.c.

References param_start.

Referenced by set_option().

void scan_profile FILE f  ) 
 

Definition at line 157 of file args.c.

References BUFSIZ, EOF, getc, i, p, printf, set_option(), and verbose.

Referenced by set_profile().

void set_defaults  ) 
 

Definition at line 196 of file args.c.

References p, PRO_FONT, PRO_SPECIAL, and ps.

Referenced by main().

void set_option char *  arg  ) 
 

Definition at line 208 of file args.c.

References addkey(), atoi, CLI, eqin(), exit(), fprintf(), IGN, input, KEY, malloc(), OFF, p, param_start, parsefont(), PRO_BOOL, PRO_FONT, PRO_INT, PRO_SPECIAL, ps, stderr, stdin, STDIN, stdout, strcpy(), and strlen().

Referenced by scan_profile().

void set_profile  ) 
 

Definition at line 138 of file args.c.

References BUFSIZ, f, fclose(), fname, fopen(), getenv(), NULL, scan_profile(), and sprintf().

Referenced by f_setprof(), initialize(), and main().


Variable Documentation

char* param_start
 

Definition at line 178 of file args.c.

Referenced by eqin(), and set_option().


Generated on Fri Apr 14 23:05:04 2006 for minix by  doxygen 1.4.6