Compare commits
	
		
			No commits in common. "6022bdee9245200bcad638298a4f14483bce7fa4" and "c06bb51cdcb39b5b5c220639897ca17c69bc1d1f" have entirely different histories.
		
	
	
		
			6022bdee92
			...
			c06bb51cdc
		
	
		
					 3 changed files with 3 additions and 9 deletions
				
			
		
							
								
								
									
										3
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -57,9 +57,6 @@ asm: $(ASMS) $(OBJECTS) | ||||||
| 	wc -l $(ASMS) | 	wc -l $(ASMS) | ||||||
| 	size $(OBJECTS) | 	size $(OBJECTS) | ||||||
| 
 | 
 | ||||||
| tidy: |  | ||||||
| 	@clang-tidy $(C_SOURCES) -- $(CFLAGS) |  | ||||||
| 
 |  | ||||||
| format: | format: | ||||||
| 	clang-format -i $(C_SOURCES) $(C_HEADERS) | 	clang-format -i $(C_SOURCES) $(C_HEADERS) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -40,9 +40,9 @@ rb_init(struct RingBuf *rb, rb_size_t capacity, ALLOC_T malloc_fn, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
| rb_destroy(struct RingBuf *rb, FREE_T free_fn) | rb_destroy(struct RingBuf *rb, void(free)()) | ||||||
| { | { | ||||||
|   free_fn(rb->buffer); |   free(rb->buffer); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
|  |  | ||||||
|  | @ -12,9 +12,6 @@ typedef void *(*ALLOC_T)(rb_size_t); | ||||||
| /** Signature of memcpy */ | /** Signature of memcpy */ | ||||||
| typedef void *(*MEMCPY_T)(void *, const void *, rb_size_t); | typedef void *(*MEMCPY_T)(void *, const void *, rb_size_t); | ||||||
| 
 | 
 | ||||||
| /** Signature of free */ |  | ||||||
| typedef void (*FREE_T)(void *); |  | ||||||
| 
 |  | ||||||
| /**
 | /**
 | ||||||
|  * @brief Ring buffer, also known as circular buffer. |  * @brief Ring buffer, also known as circular buffer. | ||||||
|  */ |  */ | ||||||
|  | @ -29,7 +26,7 @@ struct RingBuf { | ||||||
| } __attribute__((packed)); | } __attribute__((packed)); | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  * Considerations: One hot encoding for the enum values |  * Considerations: One hot encoding for the enum values  | ||||||
|  * (8 bit each with -fshort-enums) |  * (8 bit each with -fshort-enums) | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue