summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2015-08-05 09:53:55 -0300
committerandmarti1424 <andmarti@gmail.com>2015-08-05 09:53:55 -0300
commitdceeb89ef73a17debe6f3ae2bd0d5d2edf255d38 (patch)
tree69b96ca1ef9165947a5be3fb92595798b8c7609f /src
parent293b1546a705d1a9402cab61dffc537818876f06 (diff)
changed error calls to scerror
Diffstat (limited to 'src')
-rw-r--r--src/range.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/range.c b/src/range.c
index a588c1b..7a3821c 100644
--- a/src/range.c
+++ b/src/range.c
@@ -4,6 +4,7 @@
#include "marks.h"
#include "macros.h"
#include "color.h" // for set_ucolor
+#include "conf.h"
#include "xmalloc.h" // for scxfree
#include <sys/types.h>
@@ -42,12 +43,12 @@ srange * create_range(char c, char d, struct ent * tl, struct ent * br) {
}
if ( row_hidden[tlrow] || row_hidden[brrow] ) {
- error("Row of cell is hidden");
+ scerror("Row of cell is hidden");
return NULL;
}
if ( col_hidden[tlcol] || col_hidden[brcol] ) {
- error("Column of cell is hidden");
+ scerror("Column of cell is hidden");
return NULL;
}
@@ -240,14 +241,14 @@ void add_range(char * name, struct ent_ptr left, struct ent_ptr right, int is_ra
right.vf = maxrf | maxcf;
if ( ! find_range(name, strlen(name), (struct ent *) 0, (struct ent *) 0, &prev)) {
- error("Error: range name \"%s\" already defined", name);
+ scerror("Error: range name \"%s\" already defined", name);
scxfree(name);
return;
}
for (p = name; *p; p++)
if ( ! (isalpha(*p) || isdigit(*p) || *p == '_') ) {
- error("Invalid range name \"%s\" - illegal combination", name);
+ scerror("Invalid range name \"%s\" - illegal combination", name);
scxfree(name);
return;
}
@@ -265,7 +266,7 @@ void add_range(char * name, struct ent_ptr left, struct ent_ptr right, int is_ra
while (isdigit(*++p)) ;
}
if (!(*p)) {
- error("Invalid range name \"%s\" - ambiguous", name);
+ scerror("Invalid range name \"%s\" - ambiguous", name);
scxfree(name);
return;
}