aboutsummaryrefslogtreecommitdiff
path: root/src/sc_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r--src/sc_parse.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sc_parse.c b/src/sc_parse.c
index e1b797a..78f5799 100644
--- a/src/sc_parse.c
+++ b/src/sc_parse.c
@@ -113,7 +113,7 @@ SCBlock *sc_block_prepend(SCBlock *bl, SCBlock *top)
prev = sc_find_previous(top, bl);
if ( prev == NULL ) {
- fprintf(stderr, _("Couldn't find previous\n"));
+ fprintf(stderr, "Couldn't find previous\n");
return NULL;
}
@@ -271,11 +271,11 @@ static int sc_block_unlink(SCBlock **top, SCBlock *deleteme)
if ( parent == NULL ) {
/* Maybe it's the first block? */
if ( *top == deleteme ) {
- fprintf(stderr, _("Unlinking at top\n"));
+ fprintf(stderr, "Unlinking at top\n");
*top = (*top)->next;
return 0;
} else {
- fprintf(stderr, _("Couldn't find block parent!\n"));
+ fprintf(stderr, "Couldn't find block parent!\n");
return 1;
}
}
@@ -411,12 +411,12 @@ int save_sc_block(GOutputStream *fh, const SCBlock *bl)
char *a = serialise_sc_block(bl);
gssize r;
if ( a == NULL ) {
- fprintf(stderr, _("Failed to serialise block\n"));
+ fprintf(stderr, "Failed to serialise block\n");
return 1;
}
r = g_output_stream_write(fh, a, strlen(a), NULL, &error);
if ( r == -1 ) {
- fprintf(stderr, _("Write failed: %s\n"), error->message);
+ fprintf(stderr, "Write failed: %s\n", error->message);
return 1;
}
free(a);
@@ -539,7 +539,7 @@ static size_t read_block(const char *sc, char **pname, char **options,
i += get_subexpr(sc+i+1, "[]", options, err) + 1;
if ( *err ) {
- printf(_("Couldn't find end of options '%s'\n"), sc+i);
+ printf("Couldn't find end of options '%s'\n", sc+i);
return 0;
}
@@ -551,7 +551,7 @@ static size_t read_block(const char *sc, char **pname, char **options,
i += get_subexpr(sc+i+1, "{}", contents, err) + 1;
if ( *err ) {
- printf(_("Couldn't find end of content '%s'\n"), sc+i);
+ printf("Couldn't find end of content '%s'\n", sc+i);
return 0;
}
@@ -648,7 +648,7 @@ SCBlock *sc_parse(const char *sc)
bl = sc_block_append(bl, NULL, NULL,
strdup(tbuf), &blf);
if ( bl == NULL ) {
- fprintf(stderr, _("Block add failed.\n"));
+ fprintf(stderr, "Block add failed.\n");
sc_block_free(blf);
free(tbuf);
return NULL;
@@ -666,7 +666,7 @@ SCBlock *sc_parse(const char *sc)
bl = sc_block_append(bl, name, opt, contents, &blf);
if ( bl == NULL ) {
- fprintf(stderr, _("Block add failed.\n"));
+ fprintf(stderr, "Block add failed.\n");
sc_block_free(blf);
free(tbuf);
return NULL;
@@ -691,7 +691,7 @@ SCBlock *sc_parse(const char *sc)
tbuf[j] = '\0';
bl = sc_block_append(bl, NULL, NULL, tbuf, &blf);
if ( bl == NULL ) {
- fprintf(stderr, _("Block add failed.\n"));
+ fprintf(stderr, "Block add failed.\n");
sc_block_free(blf);
free(tbuf);
return NULL;
@@ -708,7 +708,7 @@ SCBlock *sc_parse(const char *sc)
void sc_block_set_name(SCBlock *bl, char *nam)
{
if ( bl == NULL ) {
- fprintf(stderr, _("sc_block_set_name: NULL block\n"));
+ fprintf(stderr, "sc_block_set_name: NULL block\n");
return;
}
free(bl->name);
@@ -788,7 +788,7 @@ size_t scblock_delete_text(SCBlock *b, ssize_t o1, ssize_t o2)
size_t len;
if ( b->contents == NULL ) {
- fprintf(stderr, _("Deleting text from block \\%s\n"), b->name);
+ fprintf(stderr, "Deleting text from block \\%s\n", b->name);
return 0;
}
@@ -801,7 +801,7 @@ size_t scblock_delete_text(SCBlock *b, ssize_t o1, ssize_t o2)
len = strlen(b->contents);
if ( o2 < 0 ) o2 = len;
if ( (o1 >= o2) || (o1 > len) || (o2 > len) ) {
- fprintf(stderr, _("Invalid delete: %i %i %i\n"),
+ fprintf(stderr, "Invalid delete: %i %i %i\n",
(int)o1, (int)o2, (int)len);
return 0;
}
@@ -823,7 +823,7 @@ SCBlock *sc_block_split(SCBlock *bl, size_t pos)
SCBlock *n = sc_block_new();
if ( bl->child != NULL ) {
- fprintf(stderr, _("Splitting a block with a child!\n"));
+ fprintf(stderr, "Splitting a block with a child!\n");
return NULL;
}