#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <libgeda/colors.h>
Go to the source code of this file.
Defines |
#define | SARVERSION "0.94" |
#define | GEDAVERSION "20020825" |
#define | DEFAULT_SCALE 200 |
#define | TEXTSIZE ((scale <= 100) ? 6 : 10) |
#define | GET_TAG(VAL) (VAL & 0x0F) |
#define | CONV32(VAR, POS) (VAR[POS]+VAR[POS+1]*256+VAR[POS+2]*65536+VAR[POS+3]*256*16777216) |
#define | CONV(X) ( (scale/10)*X ) |
#define | CONVX(X) CONV(X) |
#define | CONVY(Y) ( 32700 - ((scale/10)*Y) ) |
#define | HDR_LEN 0x20 |
#define | BYTECOUNT 0x16 |
#define | DATE 0x05 |
#define | PATH 0x3B |
#define | REV 0x60 |
#define | TITLE 0x64 |
#define | ORG 0x91 |
#define | ADDR1 0xBE |
#define | ADDR2 0xEB |
#define | ADDR3 0x118 |
#define | ADDR4 0x145 |
Functions |
int | CONV16 (char *base, int offset) |
void | remove_spaces (char *src) |
unsigned | read_block (int fd, char *block, int block_min_size, int block_max_size) |
unsigned | read_string (char *dest, int dest_size, char *src) |
void | read_string_file (int fd, char *dest, int dest_size) |
void | parse_header (int fd1, int fd2) |
void | parse_titleblock (int fd) |
void | parse_component (int fd1, int fd2) |
void | parse_sheet (int fd) |
static void | wire_or_bus (int fd, char kind, int color) |
void | parse_wire (int fd) |
void | parse_bus (int fd) |
void | parse_junction (int fd) |
void | parse_port (int fd) |
void | parse_label (int fd) |
void | parse_entry (int fd) |
void | parse_dashed (int fd) |
void | parse_power (int fd) |
void | parse_text (int fd) |
void | parse_marker (int fd) |
int | parse_block (int fd1, int fd2) |
int | main (int argc, char **argv) |
Variables |
char * | symbol_dir = 0 |
int | scale = 200 |
static int | pending_netlabel = 0 |
static char | netlabel [256] |
static int | netlabel_x |
static int | netlabel_y |
static int | netlabel_angle |
Define Documentation
#define SARVERSION "0.94" |
#define GEDAVERSION "20020825" |
#define DEFAULT_SCALE 200 |
#define TEXTSIZE ((scale <= 100) ? 6 : 10) |
#define GET_TAG |
( |
|
VAL | ) |
(VAL & 0x0F) |
#define CONV32 |
( |
|
VAR, |
|
|
|
POS |
|
) |
| (VAR[POS]+VAR[POS+1]*256+VAR[POS+2]*65536+VAR[POS+3]*256*16777216) |
#define CONV |
( |
|
X | ) |
( (scale/10)*X ) |
#define CONVX |
( |
|
X | ) |
CONV(X) |
#define CONVY |
( |
|
Y | ) |
( 32700 - ((scale/10)*Y) ) |
Function Documentation
int CONV16 |
( |
char * |
base, |
|
|
int |
offset |
|
) |
| |
void remove_spaces |
( |
char * |
src | ) |
|
unsigned read_block |
( |
int |
fd, |
|
|
char * |
block, |
|
|
int |
block_min_size, |
|
|
int |
block_max_size |
|
) |
| |
unsigned read_string |
( |
char * |
dest, |
|
|
int |
dest_size, |
|
|
char * |
src |
|
) |
| |
void read_string_file |
( |
int |
fd, |
|
|
char * |
dest, |
|
|
int |
dest_size |
|
) |
| |
void parse_header |
( |
int |
fd1, |
|
|
int |
fd2 |
|
) |
| |
void parse_titleblock |
( |
int |
fd | ) |
|
void parse_component |
( |
int |
fd1, |
|
|
int |
fd2 |
|
) |
| |
void parse_sheet |
( |
int |
fd | ) |
|
static void wire_or_bus |
( |
int |
fd, |
|
|
char |
kind, |
|
|
int |
color |
|
) |
| [static] |
void parse_wire |
( |
int |
fd | ) |
|
void parse_junction |
( |
int |
fd | ) |
|
void parse_port |
( |
int |
fd | ) |
|
void parse_label |
( |
int |
fd | ) |
|
void parse_entry |
( |
int |
fd | ) |
|
void parse_dashed |
( |
int |
fd | ) |
|
void parse_power |
( |
int |
fd | ) |
|
void parse_text |
( |
int |
fd | ) |
|
void parse_marker |
( |
int |
fd | ) |
|
int parse_block |
( |
int |
fd1, |
|
|
int |
fd2 |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Variable Documentation