Project-wide consistent naming for #include guards.

Document the naming scheme in HACKING.
This commit is contained in:
Uwe Hermann 2012-02-04 10:41:30 +01:00
parent 5c64390e5a
commit 0f8522bf74
10 changed files with 22 additions and 22 deletions

View File

@ -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,

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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>

View File

@ -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 -------------------------------------------------------------*/

View File

@ -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>