summaryrefslogtreecommitdiffstats
path: root/src/clipboard.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-25 16:14:30 -0300
committerAndrés <andmarti@gmail.com>2021-03-25 16:14:30 -0300
commit1688c5560da5771191f1436c14e572cd68343a3b (patch)
treec6c27bef96675443b4255dce50d160364f78b14f /src/clipboard.c
parent75bf89834c2ae449f4ae3c16459966f3734ba578 (diff)
Removed tabs. Corrected email address in files
Diffstat (limited to 'src/clipboard.c')
-rw-r--r--src/clipboard.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/clipboard.c b/src/clipboard.c
index c5c64d7..745b074 100644
--- a/src/clipboard.c
+++ b/src/clipboard.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013-2017, Andrés Martinelli <andmarti@gmail.com *
+ * Copyright (c) 2013-2021, Andrés Martinelli <andmarti@gmail.com> *
* All rights reserved. *
* *
* This file is a part of SC-IM *
@@ -36,7 +36,7 @@
*******************************************************************************/
/**
- * \file clipboard.c
+ * \file clipboard.c
* \author Andrés Martinelli <andmarti@gmail.com>
* \date 2017-07-18
* \brief Clipboard functions
@@ -59,9 +59,9 @@
#include "utils/string.h"
int convert_string_to_number( int r0, int c0, int rn, int cn) {
- int row, col;
- register struct ent ** pp;
- wchar_t out[FBUFLEN] = L"";
+ int row, col;
+ register struct ent ** pp;
+ wchar_t out[FBUFLEN] = L"";
for (row = r0; row <= rn; row++) {
// ignore hidden rows
//if (row_hidden[row]) continue;
@@ -74,16 +74,16 @@ int convert_string_to_number( int r0, int c0, int rn, int cn) {
// If a string exists
if ((*pp)->label) {
- char * num = str_replace((*pp)->label," ","");
- (*pp)->label ='\0';
- swprintf(out, BUFFERSIZE, L"let %s%d=%s", coltoa(col), row, num);
- send_to_interp(out);
- }
- }
- }
-}
+ char * num = str_replace((*pp)->label," ","");
+ (*pp)->label ='\0';
+ swprintf(out, BUFFERSIZE, L"let %s%d=%s", coltoa(col), row, num);
+ send_to_interp(out);
+ }
+ }
+ }
+ }
- return 0;
+ return 0;
}
@@ -220,7 +220,7 @@ int save_plain(FILE * fout, int r0, int c0, int rn, int cn) {
char formated_s[FBUFLEN] = "";
int res = -1;
int align = 1;
- int emptyfield=-1;
+ int emptyfield=-1;
for (row = r0; row <= rn; row++) {
// ignore hidden rows
@@ -229,7 +229,7 @@ int save_plain(FILE * fout, int r0, int c0, int rn, int cn) {
for (pp = ATBL(tbl, row, col = c0); col <= cn; col++, pp++) {
// ignore hidden cols
//if (col_hidden[col]) continue;
- emptyfield=-1;
+ emptyfield=-1;
if (*pp) {
num [0] = '\0';