yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
subcircuit.cc File Reference
#include "subcircuit.h"
#include <algorithm>
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
+ Include dependency graph for subcircuit.cc:

Go to the source code of this file.

Data Structures

class  SubCircuit::SolverWorker
 
struct  SubCircuit::SolverWorker::GraphData
 
struct  SubCircuit::SolverWorker::DiBit
 
struct  SubCircuit::SolverWorker::DiNode
 
struct  SubCircuit::SolverWorker::DiEdge
 
struct  SubCircuit::SolverWorker::DiCache
 
struct  SubCircuit::SolverWorker::NodeSet
 

Macros

#define my_printf   printf
 

Functions

static std::string my_stringf (const char *fmt,...)
 

Macro Definition Documentation

#define my_printf   printf

Definition at line 32 of file subcircuit.cc.

Function Documentation

static std::string my_stringf ( const char *  fmt,
  ... 
)
static

Definition at line 38 of file subcircuit.cc.

39 {
40  std::string string;
41  char *str = NULL;
42  va_list ap;
43 
44  va_start(ap, fmt);
45  if (vasprintf(&str, fmt, ap) < 0)
46  str = NULL;
47  va_end(ap);
48 
49  if (str != NULL) {
50  string = str;
51  free(str);
52  }
53 
54  return string;
55 }
void free(void *)
#define NULL

+ Here is the call graph for this function:

+ Here is the caller graph for this function: