Skip to content

Commit

Permalink
Coding Style: Change Function Name to Lower Camelcase
Browse files Browse the repository at this point in the history
Fixed inconsistency in whitespace and tabs in Makefile.

Fixes: #36
Signed-off-by: Progyan Bhattacharya <[email protected]>
  • Loading branch information
Progyan Bhattacharya committed Oct 3, 2018
1 parent b507f05 commit 18e67f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#################################
# Makefile #
# Build Recipie for Executable #
# #
# #
# Author: Progyan Bhattacharya #
# Maintainer: Bytes Club #
# Maintainer: Bytes Club #
#################################

# Define Compiler
Expand Down
2 changes: 1 addition & 1 deletion inc/chalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void enableRawMode(void);
int editorReadKey(void);

// Row Operation
void appendrow(char*, int);
void appendRow(char*, int);

// File I/O
void openEditor(char*);
Expand Down
4 changes: 2 additions & 2 deletions src/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
extern struct editorConfi E;

// row operations
void appendrow(char *c, int l)
void appendRow(char *c, int l)
{
E.row = realloc(E.row, sizeof(erow) * (E.no_row + 1));

Expand All @@ -37,7 +37,7 @@ void openEditor(char *fname)
while (linelen > 0 && (val[linelen - 1] == '\n' || val[linelen - 1] == '\r'))
linelen--;

appendrow(val, linelen);
appendRow(val, linelen);
}
free(val);
fclose(f);
Expand Down

0 comments on commit 18e67f9

Please sign in to comment.