#ifndef PULSEVIEW_EXTDEF_H
#define PULSEVIEW_EXTDEF_H
-#define countof(x) (sizeof(x)/sizeof(x[0]))
+#define countof(x) (sizeof(x) / sizeof(x[0]))
#define begin_element(x) (&x[0])
#define end_element(x) (&x[countof(x)])
QObject::connect(handler,
SIGNAL(term_received()),
&w, SLOT(close()));
- } else {
+ } else {
qWarning() <<
"Could not prepare signal handler.";
}
srd_decoder_inst* create_decoder_inst(
srd_session *session, int unit_size) const;
- std::set< std::shared_ptr<pv::data::Logic> > get_data();
+ std::set< std::shared_ptr<pv::data::Logic> > get_data();
private:
const srd_decoder *const decoder_;
assert(decc);
auto row_iter = d->rows_.end();
-
+
// Try looking up the sub-row of this class
const auto r = d->class_rows_.find(make_pair(decc, a.format()));
if (r != d->class_rows_.end())
} // binding
} // prop
} // pv
-
const int l = ArrowLength + ArrowOverlap;
switch (pos_)
- {
+ {
case Right:
poly << QPoint(p.x() + l, p.y() - l);
break;
poly << QPoint(p.x() - l, p.y() + l);
break;
- case Left:
+ case Left:
case Top:
poly << QPoint(p.x() - l, p.y() - l);
break;
poly << p;
switch (pos_)
- {
+ {
case Right:
case Bottom:
poly << QPoint(p.x() + l, p.y() + l);
break;
- case Left:
+ case Left:
poly << QPoint(p.x() - l, p.y() + l);
break;
} // namespace widgets
} // namespace pv
-
socket_notifier_->setEnabled(false);
int sig_number;
- if(read(sockets_[1], &sig_number, sizeof(int)) !=
- sizeof(int)) {
+ if(read(sockets_[1], &sig_number, sizeof(int)) != sizeof(int)) {
qDebug() << "Failed to catch signal";
abort();
}
void SignalHandler::handle_signals(int sig_number)
{
- if(write(sockets_[0], &sig_number, sizeof(int)) !=
- sizeof(int)) {
+ if(write(sockets_[0], &sig_number, sizeof(int)) != sizeof(int)) {
// Failed to handle signal
abort();
}