assignment 1 problem 3 clang-format

This commit is contained in:
2021-03-30 11:04:35 +08:00
parent c312dd6400
commit 52c2445f05
4 changed files with 39 additions and 46 deletions

View File

@@ -1,8 +1,8 @@
#ifndef UNCOMPRESS
#define UNCOMPRESS
#include <stddef.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include "struct.h"
@@ -20,7 +20,8 @@ char ASTScan(ASTScanner *scanner, ASTNode **ret_node);
char ASTScanAll(ASTTree *tree, ASTScanner *scanner);
/* return the number before a string with index */
unsigned int GetNumber(char *string, size_t start, size_t end, ASTString *other_string);
unsigned int GetNumber(char *string, size_t start, size_t end,
ASTString *other_string);
/* Useful function to check whether a char is a number */
bool IsNumber(const char c);