Skip to content

Commit

Permalink
Releases v0.0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimaciel committed Mar 20, 2020
2 parents 98fd1cf + c50df90 commit 4966ba2
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 4 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: C/C++ CI

on: [push]

jobs:
build:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: install dependencies
run: sudo apt-get install check
- name: create build directory
run: mkdir build
- name: configure
run: cmake .. -DENABLE_TESTS=OFF
working-directory: ./build
- name: make
run: make
working-directory: ./build
- uses: actions/upload-artifact@v1
with:
name: build
path: build

test:
runs-on: ubuntu-18.04
needs: build
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v1
with:
name: build
path: build
- name: install dependencies
run: sudo apt-get install check
- name: configure
run: cmake .. -DENABLE_TESTS=ON
working-directory: ./build
- name: make
run: make
working-directory: ./build
- name: make test
run: make test
working-directory: ./build
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.1)

project(mropes
VERSION 0.0.2.0
VERSION 0.0.3.0
LANGUAGES C
)

Expand Down
2 changes: 1 addition & 1 deletion include/mropes/rope.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum mrope_error_code
MROPE_OK = 0,
MROPE_MALLOC_FAILED,
MROPE_UNKNOWN_NODE_TYPE,
MROPE_OUT_OF_RANGE,
MROPE_OUT_OF_RANGE
};

typedef enum mrope_error_code mreturn_t;
Expand Down
4 changes: 2 additions & 2 deletions src/rope_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct mrope_branch_node *mrope_make_branch_node(struct mrope_node *lhs, struct
if( (node = (struct mrope_branch_node *)malloc(sizeof(struct mrope_branch_node))) == NULL)
{
return NULL;
};
}

/* avoid having a null LHS with a non-null RHS */
if(lhs == NULL) {
Expand All @@ -54,7 +54,7 @@ struct mrope_leaf_node * mrope_make_leaf_node()
if( (node = (struct mrope_leaf_node *)malloc(sizeof(struct mrope_leaf_node))) == NULL)
{
return NULL;
};
}

mrope_init_leaf_node(node, NULL, 0);

Expand Down

0 comments on commit 4966ba2

Please sign in to comment.