Project-wide consistent naming for #include guards.
Document the naming scheme in HACKING.
This commit is contained in:
parent
5c64390e5a
commit
0f8522bf74
|
@ -19,8 +19,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_ASIX_SIGMA_H
|
#ifndef LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H
|
||||||
#define SIGROK_ASIX_SIGMA_H
|
#define LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H
|
||||||
|
|
||||||
enum sigma_write_register {
|
enum sigma_write_register {
|
||||||
WRITE_CLOCK_SELECT = 0,
|
WRITE_CLOCK_SELECT = 0,
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_LINK_MSO19_H
|
#ifndef LIBSIGROK_HARDWARE_LINK_MSO19_LINK_MSO19_H
|
||||||
#define SIGROK_LINK_MSO19_H
|
#define LIBSIGROK_HARDWARE_LINK_MSO19_LINK_MSO19_H
|
||||||
|
|
||||||
/* Structure for the pattern generator state */
|
/* Structure for the pattern generator state */
|
||||||
struct mso_patgen {
|
struct mso_patgen {
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OLS_H_
|
#ifndef LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H
|
||||||
#define OLS_H_
|
#define LIBSIGROK_HARDWARE_OPENBENCH_LOGIC_SNIFFER_OLS_H
|
||||||
|
|
||||||
#define NUM_PROBES 32
|
#define NUM_PROBES 32
|
||||||
#define NUM_TRIGGER_STAGES 4
|
#define NUM_TRIGGER_STAGES 4
|
||||||
|
@ -91,4 +91,4 @@ struct ols_device {
|
||||||
struct sr_serial_device_instance *serial;
|
struct sr_serial_device_instance *serial;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* OLS_H_ */
|
#endif
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SALEAE_LOGIC_H_
|
#ifndef LIBSIGROK_HARDWARE_SALEAE_LOGIC_SALEAE_LOGIC_H
|
||||||
#define SALEAE_LOGIC_H_
|
#define LIBSIGROK_HARDWARE_SALEAE_LOGIC_SALEAE_LOGIC_H
|
||||||
|
|
||||||
#define USB_INTERFACE 0
|
#define USB_INTERFACE 0
|
||||||
#define USB_CONFIGURATION 1
|
#define USB_CONFIGURATION 1
|
||||||
|
@ -74,4 +74,4 @@ struct fx2_device {
|
||||||
struct sr_usb_device_instance *usb;
|
struct sr_usb_device_instance *usb;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SALEAE_LOGIC_H_ */
|
#endif
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_ZEROPLUS_ANALYZER_H
|
#ifndef LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_ANALYZER_H
|
||||||
#define SIGROK_ZEROPLUS_ANALYZER_H
|
#define LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_ANALYZER_H
|
||||||
|
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include "sigrok.h"
|
#include "sigrok.h"
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_ZEROPLUS_GL_H
|
#ifndef LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_GL_USB_H
|
||||||
#define SIGROK_ZEROPLUS_GL_H
|
#define LIBSIGROK_HARDWARE_ZEROPLUS_LOGIC_CUBE_GL_USB_H
|
||||||
|
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include "sigrok.h"
|
#include "sigrok.h"
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TEXT_H_
|
#ifndef LIBSIGROK_OUTPUT_TEXT_TEXT_H
|
||||||
#define TEXT_H_
|
#define LIBSIGROK_OUTPUT_TEXT_TEXT_H
|
||||||
|
|
||||||
#define DEFAULT_BPL_BITS 64
|
#define DEFAULT_BPL_BITS 64
|
||||||
#define DEFAULT_BPL_HEX 192
|
#define DEFAULT_BPL_HEX 192
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_SIGROK_INTERNAL_H
|
#ifndef LIBSIGROK_SIGROK_INTERNAL_H
|
||||||
#define SIGROK_SIGROK_INTERNAL_H
|
#define LIBSIGROK_SIGROK_INTERNAL_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_SIGROK_PROTO_H
|
#ifndef LIBSIGROK_SIGROK_PROTO_H
|
||||||
#define SIGROK_SIGROK_PROTO_H
|
#define LIBSIGROK_SIGROK_PROTO_H
|
||||||
|
|
||||||
/*--- backend.c -------------------------------------------------------------*/
|
/*--- backend.c -------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SIGROK_SIGROK_H
|
#ifndef LIBSIGROK_SIGROK_H
|
||||||
#define SIGROK_SIGROK_H
|
#define LIBSIGROK_SIGROK_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
Loading…
Reference in New Issue