mirror of
https://github.com/pine64/blisp.git
synced 2026-09-18 17:51:30 +00:00
Pragma -> ifndef
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#ifndef PARSE_FILE_H_
|
||||||
|
#define PARSE_FILE_H_
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "parsed_firmware_file.h"
|
#include "parsed_firmware_file.h"
|
||||||
@@ -19,3 +20,5 @@ int parse_firmware_file(const char* file_path_on_disk,
|
|||||||
// Internal util
|
// Internal util
|
||||||
ssize_t get_file_contents(const char* file_path_on_disk,
|
ssize_t get_file_contents(const char* file_path_on_disk,
|
||||||
uint8_t** file_contents);
|
uint8_t** file_contents);
|
||||||
|
|
||||||
|
#endif // PARSE_FILE_H_
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#ifndef PARSED_FIRMWARE_H_
|
||||||
|
#define PARSED_FIRMWARE_H_
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -13,3 +14,4 @@ typedef struct {
|
|||||||
size_t payload_length; // Size of the payload
|
size_t payload_length; // Size of the payload
|
||||||
size_t payload_address; // Start address of the payload
|
size_t payload_address; // Start address of the payload
|
||||||
} parsed_firmware_file_t;
|
} parsed_firmware_file_t;
|
||||||
|
#endif // PARSED_FIRMWARE_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user