YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
location.c File Reference
#include <stdio.h>
#include <string.h>
#include "location.h"
#include "utils_common.h"
Include dependency graph for location.c:

Go to the source code of this file.

Enumerations

enum  { YAC_LOCATION_COUNT }
 

Functions

enum yac_location yac_str2loc (char const *location_str)
 
char const * yac_loc2str (enum yac_location location)
 
enum yac_location yac_get_location (int const location)
 

Variables

struct yac_name_type_pair yac_location_name_type_pair []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YAC_LOCATION_COUNT 

Definition at line 17 of file location.c.

Function Documentation

◆ yac_get_location()

enum yac_location yac_get_location ( int const  location)

Definition at line 44 of file location.c.

Here is the caller graph for this function:

◆ yac_loc2str()

char const * yac_loc2str ( enum yac_location  location)

Definition at line 32 of file location.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_str2loc()

enum yac_location yac_str2loc ( char const *  location_str)

Definition at line 21 of file location.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ yac_location_name_type_pair

struct yac_name_type_pair yac_location_name_type_pair[]
Initial value:
=
{{.name = "CELL", .type = YAC_LOC_CELL},
{.name = "CORNER", .type = YAC_LOC_CORNER},
{.name = "EDGE", .type = YAC_LOC_EDGE},
{.name = "UNDEFINED", .type = YAC_LOC_UNDEFINED}}
@ YAC_LOC_CORNER
Definition location.h:15
@ YAC_LOC_UNDEFINED
Definition location.h:17
@ YAC_LOC_EDGE
Definition location.h:16
@ YAC_LOC_CELL
Definition location.h:14

Definition at line 12 of file location.c.