hw8: autoformat

This commit is contained in:
2020-11-04 16:50:11 +03:00
parent a0d68131c9
commit b439368580
3 changed files with 10 additions and 14 deletions

View File

@@ -1,8 +1,6 @@
#include "buf.h"
void *
buf_grow1(void *v, size_t esize, ptrdiff_t n)
{
void* buf_grow1(void* v, size_t esize, ptrdiff_t n) {
struct buf* p;
size_t max = (size_t)-1 - sizeof(struct buf);
if (v) {

View File

@@ -1,12 +1,11 @@
#include <stdio.h>
#include <stdint.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include "minctest.h"
#include "buf.h"
void test_buf_squares_operator() {
long* ai = 0;
for (int i = 0; i < 10000; i++)
@@ -61,8 +60,7 @@ void test_buf_base() {
buf_free(a);
}
int main(int argc, char *argv[])
{
int main(int argc, char* argv[]) {
lrun("buf_push(), []", test_buf_squares_operator);
lrun("buf_grow(), buf_trunc", test_buf_grow_trunc);
lrun("buf_base_test", test_buf_base);