commit ef1b2fa8a56565ff42cfa7a809e7a9f03ec89e6f
parent cd16d6353f0631324c1e53b304121d3f060c44d8
Author: Remy Noulin <loader2x@gmail.com>
Date: Mon, 15 Oct 2018 15:30:56 +0200
fix compilation errors due to updates in libsheepy
morph.c | 8 ++++----
package.yml | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/morph.c b/morph.c
@@ -93,7 +93,7 @@ void replace() {
// create string regex
char **strRegex = NULL;
- enumerate(search_what, e, i) {
+ enumerateCharP(search_what, e, i) {
printf("Replace: ");
printf("\n");
// char *strLCpy(char *dst, const char *src, size_t dstSize)
@@ -144,7 +144,7 @@ void replace() {
int pcreErrorOffset;
// create regex for each search string
- enumerate(strRegex, e, j) {
+ enumerateCharP(strRegex, e, j) {
reCompiled[j] = pcre_compile(*e, 0, &pcreErrorStr, &pcreErrorOffset, NULL);
if (!reCompiled[j]) {
printf("ERROR: Could not study >%s<: %s", *e, pcreErrorStr);
@@ -168,7 +168,7 @@ void replace() {
exitFailure(config);
// for each file in files.txt, search and replace
- forEach(config, f) {
+ forEachCharP(config, f) {
if (!isBlankS(*f)) {
if (*f[0] != '#') {
iTrimS(f);
@@ -180,7 +180,7 @@ void replace() {
}
// scan lines
- forEach(src, l) {
+ forEachCharP(src, l) {
range(i, nSearch) {
//iReplaceS_max(l, *a, func_replace_with[i]);
replaceWithPcre(l, reCompiled[i], pcreExtra[i], getG(func_search_what, rtChar, i), getG(func_replace_with, rtChar, i), getG(a, rtSmallArrayt, i));
diff --git a/package.yml b/package.yml
@@ -1,12 +1,12 @@
---
name: morph
- version: 0.0.1
+ version: 0.0.2
description: morph command searches functions in files and replaces them with the given functions, when the parameters change order both function declaration and function calls are changed
bin: ./morph.c
lflags: -lpcre
repository:
type: git
- url: git+https://github.com/RemyNoulin/morph.git
+ url: git+https://github.com/USER/morph.git
keywords:
- utility
- refactor
@@ -14,5 +14,5 @@
author: Remy Noulin
license: MIT
bugs:
- url: https://github.com/RemyNoulin/morph/issues
- homepage: https://github.com/RemyNoulin/morph
+ url: https://github.com/USER/morph/issues
+ homepage: https://github.com/USER/morph#readme