utils

olib.c File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include "geda_sym_format.h"
Include dependency graph for olib.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
struct  yy_trans_info
struct  pin_def
struct  vector_def

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   35
#define FLEX_BETA
#define FLEXINT_H
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT16_MAX   (32767)
#define INT32_MAX   (2147483647)
#define UINT8_MAX   (255U)
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define yyconst
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define BEGIN   (yy_start) = 1 + 2 *
#define YY_START   (((yy_start) - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   yyrestart(yyin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#define YY_TYPEDEF_YY_BUFFER_STATE
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define YY_LESS_LINENO(n)
#define yyless(n)
#define unput(c)   yyunput( c, (yytext_ptr) )
#define YY_TYPEDEF_YY_SIZE_T
#define YY_STRUCT_YY_BUFFER_STATE
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   68
#define YY_END_OF_BUFFER   69
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define EDA_VERSION_OLD   "20020209"
#define EDA_VERSION_NEW   "20020825"
#define PIN_DOTFLAG   0x0001
#define PIN_SHORTFLAG   0x0002
#define PIN_CLKFLAG   0x0004
#define PIN_TYPE_IO   1
#define PIN_TYPE_IN   2
#define PIN_TYPE_OUT   3
#define PIN_TYPE_PWR   4
#define PIN_TYPE_PAS   5
#define PIN_TYPE_OC   6
#define PIN_TYPE_HIZ   7
#define PIN_TYPE_OE   8
#define GCC_VERSION   (__GNUC__ * 1000 + __GNUC_MINOR__)
#define ATTRIBUTE_UNUSED
#define INITIAL   0
#define wait_END   1
#define wait_sizex   2
#define wait_sizey   3
#define wait_parts   4
#define pin_list   5
#define pinrealnum   6
#define pindata   7
#define waitnamestart   8
#define in_name   9
#define waitnameend   10
#define waitpinend   11
#define vector_list   12
#define vector_ignore   13
#define param_list   14
#define convert   15
#define convert_ignore_pin   16
#define reference   17
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#define YY_INPUT(buf, result, max_size)
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int yylex (void)
#define YY_USER_ACTION
#define YY_BREAK   break;
#define YY_RULE_SETUP
#define YY_EXIT_FAILURE   2
#define yyless(n)
#define YYTABLES_NAME   "yytables"

Typedefs

typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef int flex_int32_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef struct yy_buffer_stateYY_BUFFER_STATE
typedef size_t yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart (FILE *input_file)
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
void yy_delete_buffer (YY_BUFFER_STATE b)
void yy_flush_buffer (YY_BUFFER_STATE b)
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
void yypop_buffer_state (void)
static void yyensure_buffer_stack (void)
static void yy_load_buffer_state (void)
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE yy_scan_string (char *yy_str)
YY_BUFFER_STATE yy_scan_bytes (char *bytes, int len)
void * yyalloc (yy_size_t)
void * yyrealloc (void *, yy_size_t)
void yyfree (void *)
static yy_state_type yy_get_previous_state (void)
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
static int yy_get_next_buffer (void)
static void yy_fatal_error (char msg[])
char * strip_invalid (char *str)
char * strip_quotes (char *str)
static int yy_init_globals (void)
int yylex_destroy (void)
int yyget_debug (void)
void yyset_debug (int debug_flag)
void * yyget_extra (void)
void yyset_extra (void *user_defined)
FILE * yyget_in (void)
void yyset_in (FILE *in_str)
FILE * yyget_out (void)
void yyset_out (FILE *out_str)
int yyget_leng (void)
char * yyget_text (void)
int yyget_lineno (void)
void yyset_lineno (int line_number)
int yywrap (void)
static void yyunput (int c, char *buf_ptr)
static int input (void)
int yylex (void)
static void yyunput (int c, register char *yy_bp)
int isatty (int)
static void yy_fatal_error (char *msg)
void usage (void)
int main (int argc, char *argv[])

Variables

int yyleng
FILE * yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
static size_t yy_buffer_stack_top = 0
static size_t yy_buffer_stack_max = 0
static YY_BUFFER_STATEyy_buffer_stack = 0
static char yy_hold_char
static int yy_n_chars
static char * yy_c_buf_p = (char *) 0
static int yy_init = 0
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
int yylineno = 1
char * yytext
static flex_int16_t yy_accept [327]
static flex_int32_t yy_ec [256]
static flex_int32_t yy_meta [37]
static flex_int16_t yy_base [359]
static flex_int16_t yy_def [359]
static flex_int16_t yy_nxt [532]
static flex_int16_t yy_chk [532]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
int yy_flex_debug = 0
static const ATTRIBUTE_UNUSED
char * 
mp_name = "OrCAD to gEDA lib converter"
static const ATTRIBUTE_UNUSED
char * 
mp_license = "Copyright (c) 2002 Mario Pascucci <m.pas@libero.it>"
static char fnsym [512]
static FILE * fsym
static int aliascount = 0
static char part_aliases [200][50]
static char sym_prefix [50]
static char sym_version [10]
static int use_old_version
static int pin_name_hidden
static char buff [512]
static int sizex
static int sizey
static int partspp
static int pincount
static char ref_str [20]
static int vector_count
static int paramcount
static struct vector_def part_vectors [100]
static int vector_found
static char * pintypestr []
static char * edapintype []
static struct pin_def pinlist [200]
static int ii

Define Documentation

#define YY_INT_ALIGNED   short int

Definition at line 4 of file olib.c.

#define FLEX_SCANNER

Definition at line 8 of file olib.c.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file olib.c.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file olib.c.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 11 of file olib.c.

#define FLEX_BETA

Definition at line 13 of file olib.c.

#define FLEXINT_H

Definition at line 29 of file olib.c.

#define INT8_MIN   (-128)

Definition at line 60 of file olib.c.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file olib.c.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file olib.c.

#define INT8_MAX   (127)

Definition at line 69 of file olib.c.

#define INT16_MAX   (32767)

Definition at line 72 of file olib.c.

#define INT32_MAX   (2147483647)

Definition at line 75 of file olib.c.

#define UINT8_MAX   (255U)

Definition at line 78 of file olib.c.

#define UINT16_MAX   (65535U)

Definition at line 81 of file olib.c.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file olib.c.

#define yyconst

Definition at line 107 of file olib.c.

#define YY_NULL   0

Definition at line 111 of file olib.c.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 118 of file olib.c.

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 124 of file olib.c.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 130 of file olib.c.

#define YYSTATE   YY_START

Definition at line 131 of file olib.c.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 134 of file olib.c.

#define YY_NEW_FILE   yyrestart(yyin )

Definition at line 137 of file olib.c.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 139 of file olib.c.

#define YY_BUF_SIZE   16384

Definition at line 143 of file olib.c.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 148 of file olib.c.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 151 of file olib.c.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 159 of file olib.c.

#define EOB_ACT_END_OF_FILE   1

Definition at line 160 of file olib.c.

#define EOB_ACT_LAST_MATCH   2

Definition at line 161 of file olib.c.

#define YY_LESS_LINENO (   n)

Definition at line 163 of file olib.c.

#define yyless (   n)
Value:
do \
        { \
        /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
        *yy_cp = (yy_hold_char); \
        YY_RESTORE_YY_MORE_OFFSET \
        (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
        YY_DO_BEFORE_ACTION; /* set up yytext again */ \
        } \
    while ( 0 )

Definition at line 2715 of file olib.c.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 179 of file olib.c.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 182 of file olib.c.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 187 of file olib.c.

#define YY_BUFFER_NEW   0

Definition at line 234 of file olib.c.

#define YY_BUFFER_NORMAL   1

Definition at line 235 of file olib.c.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 246 of file olib.c.

#define YY_CURRENT_BUFFER
Value:

Definition at line 262 of file olib.c.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 269 of file olib.c.

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 298 of file olib.c.

#define yy_new_buffer   yy_create_buffer

Definition at line 308 of file olib.c.

#define yy_set_interactive (   is_interactive)
Value:
{ \
    if ( ! YY_CURRENT_BUFFER ){ \
        yyensure_buffer_stack (); \
        YY_CURRENT_BUFFER_LVALUE =    \
            yy_create_buffer(yyin,YY_BUF_SIZE ); \
    } \
    YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
    }

Definition at line 310 of file olib.c.

#define yy_set_bol (   at_bol)
Value:

Definition at line 320 of file olib.c.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 330 of file olib.c.

#define yytext_ptr   yytext

Definition at line 345 of file olib.c.

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
    yyleng = (size_t) (yy_cp - yy_bp); \
    (yy_hold_char) = *yy_cp; \
    *yy_cp = '\0'; \
    (yy_c_buf_p) = yy_cp;

Definition at line 355 of file olib.c.

#define YY_NUM_RULES   68

Definition at line 362 of file olib.c.

#define YY_END_OF_BUFFER   69

Definition at line 363 of file olib.c.

#define REJECT   reject_used_but_not_detected

Definition at line 672 of file olib.c.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 673 of file olib.c.

#define YY_MORE_ADJ   0

Definition at line 674 of file olib.c.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 675 of file olib.c.

#define EDA_VERSION_OLD   "20020209"

Definition at line 711 of file olib.c.

#define EDA_VERSION_NEW   "20020825"

Definition at line 712 of file olib.c.

#define PIN_DOTFLAG   0x0001

Definition at line 716 of file olib.c.

#define PIN_SHORTFLAG   0x0002

Definition at line 717 of file olib.c.

#define PIN_CLKFLAG   0x0004

Definition at line 718 of file olib.c.

#define PIN_TYPE_IO   1

Definition at line 720 of file olib.c.

#define PIN_TYPE_IN   2

Definition at line 721 of file olib.c.

#define PIN_TYPE_OUT   3

Definition at line 722 of file olib.c.

#define PIN_TYPE_PWR   4

Definition at line 723 of file olib.c.

#define PIN_TYPE_PAS   5

Definition at line 724 of file olib.c.

#define PIN_TYPE_OC   6

Definition at line 725 of file olib.c.

#define PIN_TYPE_HIZ   7

Definition at line 726 of file olib.c.

#define PIN_TYPE_OE   8

Definition at line 727 of file olib.c.

#define GCC_VERSION   (__GNUC__ * 1000 + __GNUC_MINOR__)

Definition at line 731 of file olib.c.

#define ATTRIBUTE_UNUSED

Definition at line 737 of file olib.c.

#define INITIAL   0

Definition at line 886 of file olib.c.

#define wait_END   1

Definition at line 887 of file olib.c.

#define wait_sizex   2

Definition at line 888 of file olib.c.

#define wait_sizey   3

Definition at line 889 of file olib.c.

#define wait_parts   4

Definition at line 890 of file olib.c.

#define pin_list   5

Definition at line 891 of file olib.c.

#define pinrealnum   6

Definition at line 892 of file olib.c.

#define pindata   7

Definition at line 893 of file olib.c.

#define waitnamestart   8

Definition at line 894 of file olib.c.

#define in_name   9

Definition at line 895 of file olib.c.

#define waitnameend   10

Definition at line 896 of file olib.c.

#define waitpinend   11

Definition at line 897 of file olib.c.

#define vector_list   12

Definition at line 898 of file olib.c.

#define vector_ignore   13

Definition at line 899 of file olib.c.

#define param_list   14

Definition at line 900 of file olib.c.

#define convert   15

Definition at line 901 of file olib.c.

#define convert_ignore_pin   16

Definition at line 902 of file olib.c.

#define reference   17

Definition at line 903 of file olib.c.

#define YY_EXTRA_TYPE   void *

Definition at line 914 of file olib.c.

#define YY_READ_BUF_SIZE   8192

Definition at line 982 of file olib.c.

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

Definition at line 990 of file olib.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
        { \
        int c = '*'; \
        unsigned n; \
        for ( n = 0; n < max_size && \
                 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
            buf[n] = (char) c; \
        if ( c == '\n' ) \
            buf[n++] = (char) c; \
        if ( c == EOF && ferror( yyin ) ) \
            YY_FATAL_ERROR( "input in flex scanner failed" ); \
        result = n; \
        } \
    else \
        { \
        errno=0; \
        while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
            { \
            if( errno != EINTR) \
                { \
                YY_FATAL_ERROR( "input in flex scanner failed" ); \
                break; \
                } \
            errno=0; \
            clearerr(yyin); \
            } \
        }\
\

Definition at line 997 of file olib.c.

#define yyterminate ( )    return YY_NULL

Definition at line 1034 of file olib.c.

#define YY_START_STACK_INCR   25

Definition at line 1039 of file olib.c.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1044 of file olib.c.

#define YY_DECL_IS_OURS   1

Definition at line 1053 of file olib.c.

#define YY_DECL   int yylex (void)

Definition at line 1057 of file olib.c.

#define YY_USER_ACTION

Definition at line 1064 of file olib.c.

#define YY_BREAK   break;

Definition at line 1069 of file olib.c.

#define YY_RULE_SETUP
Value:
if ( yyleng > 0 ) \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
                (yytext[yyleng - 1] == '\n'); \
    YY_USER_ACTION

Definition at line 1072 of file olib.c.

#define YY_EXIT_FAILURE   2

Definition at line 2703 of file olib.c.

#define yyless (   n)
Value:
do \
        { \
        /* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
        yytext[yyleng] = (yy_hold_char); \
        (yy_c_buf_p) = yytext + yyless_macro_arg; \
        (yy_hold_char) = *(yy_c_buf_p); \
        *(yy_c_buf_p) = '\0'; \
        yyleng = yyless_macro_arg; \
        } \
    while ( 0 )

Definition at line 2715 of file olib.c.

#define YYTABLES_NAME   "yytables"

Definition at line 2905 of file olib.c.


Typedef Documentation

typedef signed char flex_int8_t

Definition at line 50 of file olib.c.

typedef short int flex_int16_t

Definition at line 51 of file olib.c.

typedef int flex_int32_t

Definition at line 52 of file olib.c.

typedef unsigned char flex_uint8_t

Definition at line 53 of file olib.c.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file olib.c.

typedef unsigned int flex_uint32_t

Definition at line 55 of file olib.c.

Definition at line 152 of file olib.c.

typedef size_t yy_size_t

Definition at line 183 of file olib.c.

typedef unsigned char YY_CHAR

Definition at line 334 of file olib.c.

typedef int yy_state_type

Definition at line 338 of file olib.c.


Function Documentation

void yyrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters:
input_fileA readable stream.
Note:
This function does not reset the start condition to INITIAL .

Definition at line 2354 of file olib.c.

Here is the call graph for this function:

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters:
new_bufferThe new input buffer.

Definition at line 2371 of file olib.c.

Here is the call graph for this function:

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters:
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns:
the allocated buffer state.

Definition at line 2416 of file olib.c.

Here is the call graph for this function:

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters:
ba buffer created with yy_create_buffer()

Definition at line 2444 of file olib.c.

Here is the call graph for this function:

void yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters:
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 2495 of file olib.c.

Here is the call graph for this function:

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters:
new_bufferThe new state.

Definition at line 2524 of file olib.c.

Here is the call graph for this function:

void yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 2554 of file olib.c.

Here is the call graph for this function:

static void yyensure_buffer_stack ( void  ) [static]

Definition at line 2573 of file olib.c.

Here is the call graph for this function:

static void yy_load_buffer_state ( void  ) [static]

Definition at line 2402 of file olib.c.

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
) [static]

Definition at line 2467 of file olib.c.

Here is the call graph for this function:

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
basethe character buffer
sizethe size in bytes of the character buffer
Returns:
the newly allocated buffer state object.

Definition at line 2622 of file olib.c.

Here is the call graph for this function:

YY_BUFFER_STATE yy_scan_string ( char *  yystr)

Setup the input buffer state to scan a string. The next call to yylex() will scan from a copy of str.

Parameters:
yystra NUL-terminated string to scan
Returns:
the newly allocated buffer state object.
Note:
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2659 of file olib.c.

Here is the call graph for this function:

YY_BUFFER_STATE yy_scan_bytes ( char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to yylex() will scan from a copy of bytes.

Parameters:
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns:
the newly allocated buffer state object.

Definition at line 2672 of file olib.c.

Here is the call graph for this function:

void * yyalloc ( yy_size_t  size)

Definition at line 2883 of file olib.c.

void * yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2888 of file olib.c.

void yyfree ( void *  ptr)

Definition at line 2900 of file olib.c.

static yy_state_type yy_get_previous_state ( void  ) [static]

Definition at line 2180 of file olib.c.

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state) [static]

Definition at line 2213 of file olib.c.

static int yy_get_next_buffer ( void  ) [static]

Definition at line 2046 of file olib.c.

Here is the call graph for this function:

static void yy_fatal_error ( char  msg[]) [static]
char* strip_invalid ( char *  str)

Definition at line 831 of file olib.c.

char* strip_quotes ( char *  str)

Definition at line 854 of file olib.c.

static int yy_init_globals ( void  ) [static]

Definition at line 2809 of file olib.c.

int yylex_destroy ( void  )

Definition at line 2838 of file olib.c.

Here is the call graph for this function:

int yyget_debug ( void  )

Definition at line 2799 of file olib.c.

void yyset_debug ( int  debug_flag)

Definition at line 2804 of file olib.c.

void* yyget_extra ( void  )
void yyset_extra ( void *  user_defined)
FILE * yyget_in ( void  )

Get the input stream.

Definition at line 2743 of file olib.c.

void yyset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters:
in_strA readable stream.
See also:
yy_switch_to_buffer

Definition at line 2789 of file olib.c.

FILE * yyget_out ( void  )

Get the output stream.

Definition at line 2751 of file olib.c.

void yyset_out ( FILE *  out_str)

Definition at line 2794 of file olib.c.

int yyget_leng ( void  )

Get the length of the current token.

Definition at line 2759 of file olib.c.

char * yyget_text ( void  )

Get the current token.

Definition at line 2768 of file olib.c.

int yyget_lineno ( void  )

Get the current line number.

Definition at line 2734 of file olib.c.

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters:
line_number

Definition at line 2777 of file olib.c.

int yywrap ( void  )

Definition at line 2924 of file olib.c.

Here is the call graph for this function:

static void yyunput ( int  c,
char *  buf_ptr 
) [static]
static int input ( void  ) [static]

Definition at line 2277 of file olib.c.

Here is the call graph for this function:

int yylex ( void  )

The main scanner function which does all the work.

Definition at line 1080 of file olib.c.

Here is the call graph for this function:

static void yyunput ( int  c,
register char *  yy_bp 
) [static]

Definition at line 2236 of file olib.c.

int isatty ( int  )
static void yy_fatal_error ( char *  msg) [static]

Definition at line 2706 of file olib.c.

void usage ( void  )

Definition at line 2912 of file olib.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 2937 of file olib.c.

Here is the call graph for this function:


Variable Documentation

int yyleng

Definition at line 274 of file olib.c.

FILE * yyin = (FILE *) 0

Definition at line 336 of file olib.c.

FILE * yyout = (FILE *) 0

Definition at line 336 of file olib.c.

size_t yy_buffer_stack_top = 0 [static]

index of top of stack.

Definition at line 252 of file olib.c.

size_t yy_buffer_stack_max = 0 [static]

capacity of stack.

Definition at line 253 of file olib.c.

Stack as an array.

Definition at line 254 of file olib.c.

char yy_hold_char [static]

Definition at line 272 of file olib.c.

int yy_n_chars [static]

Definition at line 273 of file olib.c.

char* yy_c_buf_p = (char *) 0 [static]

Definition at line 277 of file olib.c.

int yy_init = 0 [static]

Definition at line 278 of file olib.c.

int yy_start = 0 [static]

Definition at line 279 of file olib.c.

Definition at line 284 of file olib.c.

int yylineno = 1

Definition at line 342 of file olib.c.

char * yytext

Definition at line 676 of file olib.c.

flex_int16_t yy_accept[327] [static]

Definition at line 371 of file olib.c.

flex_int32_t yy_ec[256] [static]

Definition at line 411 of file olib.c.

flex_int32_t yy_meta[37] [static]
Initial value:
    {   0,
        1,    1,    2,    1,    3,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1
    }

Definition at line 443 of file olib.c.

flex_int16_t yy_base[359] [static]

Definition at line 451 of file olib.c.

flex_int16_t yy_def[359] [static]

Definition at line 494 of file olib.c.

flex_int16_t yy_nxt[532] [static]

Definition at line 537 of file olib.c.

flex_int16_t yy_chk[532] [static]

Definition at line 600 of file olib.c.

Definition at line 663 of file olib.c.

char* yy_last_accepting_cpos [static]

Definition at line 664 of file olib.c.

int yy_flex_debug = 0

Definition at line 667 of file olib.c.

const ATTRIBUTE_UNUSED char* mp_name = "OrCAD to gEDA lib converter" [static]

Definition at line 740 of file olib.c.

const ATTRIBUTE_UNUSED char* mp_license = "Copyright (c) 2002 Mario Pascucci <m.pas@libero.it>" [static]

Definition at line 741 of file olib.c.

char fnsym[512] [static]

Definition at line 743 of file olib.c.

FILE* fsym [static]

Definition at line 744 of file olib.c.

int aliascount = 0 [static]

Definition at line 745 of file olib.c.

char part_aliases[200][50] [static]

Definition at line 746 of file olib.c.

char sym_prefix[50] [static]

Definition at line 747 of file olib.c.

char sym_version[10] [static]

Definition at line 750 of file olib.c.

int use_old_version [static]

Definition at line 751 of file olib.c.

int pin_name_hidden [static]

Definition at line 754 of file olib.c.

char buff[512] [static]

Definition at line 756 of file olib.c.

int sizex [static]

Definition at line 758 of file olib.c.

int sizey

Definition at line 758 of file olib.c.

int partspp

Definition at line 758 of file olib.c.

int pincount [static]

Definition at line 760 of file olib.c.

char ref_str[20] [static]

Definition at line 773 of file olib.c.

int vector_count [static]

Definition at line 777 of file olib.c.

int paramcount [static]

Definition at line 785 of file olib.c.

struct vector_def part_vectors[100] [static]

Definition at line 787 of file olib.c.

int vector_found [static]

Definition at line 789 of file olib.c.

char* pintypestr[] [static]
Initial value:
 {
  "???",
  "I/O",
  "IN",
  "OUT",
  "PWR",
  "PAS",
  "OC",
  "hiZ",
  "OE"
}

Definition at line 793 of file olib.c.

char* edapintype[] [static]
Initial value:
 {
  "???",
  "io",
  "in",
  "out",
  "pwr",
  "pas",
  "oc",
  "tri",
  "oe"
}

Definition at line 806 of file olib.c.

struct pin_def pinlist[200] [static]

Definition at line 820 of file olib.c.

int ii [static]

Definition at line 824 of file olib.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines