Rename bcode_dump -> bcode_print
This commit is contained in:
		
							parent
							
								
									928b19b774
								
							
						
					
					
						commit
						7d77ac987d
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								bcode.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								bcode.c
									
										
									
									
									
								
							|  | @ -522,7 +522,7 @@ print_internal(const struct bcode *bcode, FILE *fp, size_t lvl) | |||
| } | ||||
| 
 | ||||
| void | ||||
| bcode_dump(const struct bcode *bcode, FILE *fp) | ||||
| bcode_print(const struct bcode *bcode, FILE *fp) | ||||
| { | ||||
| 	print_internal(bcode, fp, 0); | ||||
| 	fputc('\n', fp); | ||||
|  |  | |||
							
								
								
									
										2
									
								
								bcode.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								bcode.h
									
										
									
									
									
								
							|  | @ -23,4 +23,4 @@ struct bcode; | |||
| 
 | ||||
| struct bcode *	bcode_parse(const uint8_t *, size_t); | ||||
| void		bcode_free(struct bcode *); | ||||
| void		bcode_dump(const struct bcode *, FILE *); | ||||
| void		bcode_print(const struct bcode *, FILE *); | ||||
|  |  | |||
							
								
								
									
										2
									
								
								bt.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								bt.c
									
										
									
									
									
								
							|  | @ -41,7 +41,7 @@ main(int argc, char *argv[]) | |||
| 	bcode = bcode_parse(buf, n); | ||||
| 	if (bcode == NULL) | ||||
| 		errx(1, "bcode_parse: parse error"); | ||||
| 	bcode_dump(bcode, stdout); | ||||
| 	bcode_print(bcode, stdout); | ||||
| 	bcode_free(bcode); | ||||
| 
 | ||||
| 	(void)fclose(fp); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue