utils

gmk_sym.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
Include dependency graph for gmk_sym.c:

Go to the source code of this file.

Defines

#define BLACK   0
#define WHITE   1
#define RED   2
#define GREEN   3
#define BLUE   4
#define YELLOW   5
#define CYAN   6
#define GREY   7
#define MAX_FIELDS   10
#define L_SIDE   0
#define R_SIDE   1
#define B_SIDE   2
#define T_SIDE   3
#define LINE_SHAPE   0
#define DOT_SHAPE   1
#define CLOCK_SHAPE   2
#define PINTYPE_IN   "IN"
#define PINTYPE_OUT   "OUT"
#define PINTYPE_IO   "IO"
#define PINTYPE_OC   "OC"
#define PINTYPE_OE   "OE"
#define PINTYPE_PAS   "PAS"
#define PINTYPE_TP   "TP"
#define PINTYPE_TRI   "TRI"
#define PINTYPE_CLK   "CLK"
#define PINTYPE_PWR   "PWR"

Functions

int GetStringDisplayLength (char *str, int font_size)
int line2fields (char *pBuf, int field_cnt, char *pField[])
int fields_free (char *pField[])
int make_pin (int fldcnt, char *pFields[])
int make_box (int fldcnt, char *pFields[])
static char * strLabel (char *p, char *pTemp)
void strtrail (char *wrk)
int line_chk (char *pBuf)
int main (int argc, char **argv)
void cross (int pos_x, int pos_y, int color)
void pin_add (int pos_x, int pos_y, char *pin, int shape, int dir, char *name, char *type)

Variables

char * optarg
int optind
int opterr
int optopt
int pin_len = 300
int pin_spacing = 300
int pin_0_x
int pin_0_y
int BoxHeight
int BoxWidth
int net_pin = 0
char pin_used [300][5]
int pin_counter = 0

Define Documentation

#define BLACK   0

Definition at line 109 of file gmk_sym.c.

#define WHITE   1

Definition at line 110 of file gmk_sym.c.

#define RED   2

Definition at line 111 of file gmk_sym.c.

#define GREEN   3

Definition at line 112 of file gmk_sym.c.

#define BLUE   4

Definition at line 113 of file gmk_sym.c.

#define YELLOW   5

Definition at line 114 of file gmk_sym.c.

#define CYAN   6

Definition at line 115 of file gmk_sym.c.

#define GREY   7

Definition at line 116 of file gmk_sym.c.

#define MAX_FIELDS   10

Definition at line 118 of file gmk_sym.c.

#define L_SIDE   0

Definition at line 120 of file gmk_sym.c.

#define R_SIDE   1

Definition at line 121 of file gmk_sym.c.

#define B_SIDE   2

Definition at line 122 of file gmk_sym.c.

#define T_SIDE   3

Definition at line 123 of file gmk_sym.c.

#define LINE_SHAPE   0

Definition at line 125 of file gmk_sym.c.

#define DOT_SHAPE   1

Definition at line 126 of file gmk_sym.c.

#define CLOCK_SHAPE   2

Definition at line 127 of file gmk_sym.c.

#define PINTYPE_IN   "IN"

Definition at line 129 of file gmk_sym.c.

#define PINTYPE_OUT   "OUT"

Definition at line 130 of file gmk_sym.c.

#define PINTYPE_IO   "IO"

Definition at line 131 of file gmk_sym.c.

#define PINTYPE_OC   "OC"

Definition at line 132 of file gmk_sym.c.

#define PINTYPE_OE   "OE"

Definition at line 133 of file gmk_sym.c.

#define PINTYPE_PAS   "PAS"

Definition at line 134 of file gmk_sym.c.

#define PINTYPE_TP   "TP"

Definition at line 135 of file gmk_sym.c.

#define PINTYPE_TRI   "TRI"

Definition at line 136 of file gmk_sym.c.

#define PINTYPE_CLK   "CLK"

Definition at line 137 of file gmk_sym.c.

#define PINTYPE_PWR   "PWR"

Definition at line 138 of file gmk_sym.c.


Function Documentation

int GetStringDisplayLength ( char *  str,
int  font_size 
)

Definition at line 38 of file char_width.c.

int line2fields ( char *  pBuf,
int  field_cnt,
char *  pField[] 
)

Definition at line 244 of file gmk_sym.c.

Here is the call graph for this function:

int fields_free ( char *  pField[])

Definition at line 232 of file gmk_sym.c.

int make_pin ( int  fldcnt,
char *  pFields[] 
)

Definition at line 523 of file gmk_sym.c.

Here is the call graph for this function:

int make_box ( int  fldcnt,
char *  pFields[] 
)

Definition at line 406 of file gmk_sym.c.

Here is the call graph for this function:

static char * strLabel ( char *  p,
char *  pTemp 
) [static]

Definition at line 621 of file gmk_sym.c.

Here is the call graph for this function:

void strtrail ( char *  wrk)

Definition at line 642 of file gmk_sym.c.

int line_chk ( char *  pBuf)

Definition at line 658 of file gmk_sym.c.

int main ( int  argc,
char **  argv 
)

Definition at line 171 of file gmk_sym.c.

Here is the call graph for this function:

void cross ( int  pos_x,
int  pos_y,
int  color 
)

Definition at line 264 of file gmk_sym.c.

void pin_add ( int  pos_x,
int  pos_y,
char *  pin,
int  shape,
int  dir,
char *  name,
char *  type 
)

Definition at line 272 of file gmk_sym.c.


Variable Documentation

char* optarg
int optind
int opterr
int optopt
int pin_len = 300

Definition at line 160 of file gmk_sym.c.

int pin_spacing = 300

Definition at line 161 of file gmk_sym.c.

int pin_0_x

Definition at line 162 of file gmk_sym.c.

int pin_0_y

Definition at line 162 of file gmk_sym.c.

int BoxHeight

Definition at line 163 of file gmk_sym.c.

int BoxWidth

Definition at line 163 of file gmk_sym.c.

int net_pin = 0

Definition at line 164 of file gmk_sym.c.

char pin_used[300][5]

Definition at line 166 of file gmk_sym.c.

int pin_counter = 0

Definition at line 167 of file gmk_sym.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines