- Add missing #include guards.
- Fix incorrect #endif comments for some #include guards.
- Use consistent naming for them, as per HACKING.
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _EXTDEF_H
-#define _EXTDEF_H
+#ifndef PULSEVIEW_EXTDEF_H
+#define PULSEVIEW_EXTDEF_H
#define countof(x) (sizeof(x)/sizeof(x[0]))
#define begin_element(x) (&x[0])
#define end_element(x) (&x[countof(x)])
-#endif /* _EXTDEF_H */
+#endif // PULSEVIEW_EXTDEF_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef ABOUT_H
-#define ABOUT_H
+#ifndef PULSEVIEW_PV_ABOUT_H
+#define PULSEVIEW_PV_ABOUT_H
#include <QDialog>
} // namespace pv
-#endif // ABOUT_H
+#endif // PULSEVIEW_PV_ABOUT_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_DATASNAPSHOT_H
+#define PULSEVIEW_PV_DATASNAPSHOT_H
+
extern "C" {
#include <libsigrok/libsigrok.h>
}
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_DATASNAPSHOT_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_LOGICDATA_H
+#define PULSEVIEW_PV_LOGICDATA_H
+
#include "signaldata.h"
#include <boost/shared_ptr.hpp>
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_LOGICDATA_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_LOGICDATASNAPSHOT_H
+#define PULSEVIEW_PV_LOGICDATASNAPSHOT_H
+
#include "datasnapshot.h"
#include <utility>
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_LOGICDATASNAPSHOT_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_LOGICSIGNAL_H
+#define PULSEVIEW_PV_LOGICSIGNAL_H
+
#include "signal.h"
#include <boost/shared_ptr.hpp>
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_LOGICSIGNAL_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
+#ifndef PULSEVIEW_PV_MAINWINDOW_H
+#define PULSEVIEW_PV_MAINWINDOW_H
#include <QMainWindow>
} // namespace pv
-#endif // MAINWINDOW_H
+#endif // PULSEVIEW_PV_MAINWINDOW_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SAMPLINGBAR_H
-#define SAMPLINGBAR_H
+#ifndef PULSEVIEW_PV_SAMPLINGBAR_H
+#define PULSEVIEW_PV_SAMPLINGBAR_H
#include <stdint.h>
} // namespace pv
-#endif // SAMPLINGBAR_H
+#endif // PULSEVIEW_PV_SAMPLINGBAR_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_SIGNAL_H
+#define PULSEVIEW_PV_SIGNAL_H
+
#include <boost/shared_ptr.hpp>
#include <QPainter>
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_SIGNAL_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef PULSEVIEW_PV_SIGNALDATA_H
+#define PULSEVIEW_PV_SIGNALDATA_H
+
#include <stdint.h>
namespace pv {
};
} // namespace pv
+
+#endif // PULSEVIEW_PV_SIGNALDATA_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SIGSESSION_H
-#define SIGSESSION_H
+#ifndef PULSEVIEW_PV_SIGSESSION_H
+#define PULSEVIEW_PV_SIGSESSION_H
#include <boost/shared_ptr.hpp>
} // namespace pv
-#endif // SIGSESSION_H
+#endif // PULSEVIEW_PV_SIGSESSION_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PV_VIEW_HEADER_H
-#define PV_VIEW_HEADER_H
+#ifndef PULSEVIEW_PV_VIEW_HEADER_H
+#define PULSEVIEW_PV_VIEW_HEADER_H
#include <boost/shared_ptr.hpp>
} // namespace view
} // namespace pv
-#endif // PV_VIEW_HEADER_H
+#endif // PULSEVIEW_PV_VIEW_HEADER_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PV_VIEW_RULER_H
-#define PV_VIEW_RULER_H
+#ifndef PULSEVIEW_PV_VIEW_RULER_H
+#define PULSEVIEW_PV_VIEW_RULER_H
#include <QWidget>
} // namespace view
} // namespace pv
-#endif // PV_VIEW_HEADER_H
+#endif // PULSEVIEW_PV_VIEW_RULER_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PV_VIEW_VIEW_H
-#define PV_VIEW_VIEW_H
+#ifndef PULSEVIEW_PV_VIEW_VIEW_H
+#define PULSEVIEW_PV_VIEW_VIEW_H
#include <stdint.h>
} // namespace view
} // namespace pv
-#endif // PV_VIEW_VIEW_H
+#endif // PULSEVIEW_PV_VIEW_VIEW_H
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PV_VIEW_VIEWPORT_H
-#define PV_VIEW_VIEWPORT_H
+#ifndef PULSEVIEW_PV_VIEW_VIEWPORT_H
+#define PULSEVIEW_PV_VIEW_VIEWPORT_H
#include <QTimer>
#include <QWidget>
} // namespace view
} // namespace pv
-#endif // PV_VIEW_VIEWPORT_H
+#endif // PULSEVIEW_PV_VIEW_VIEWPORT_H