mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
convert ASCII TABs to ASCII SPACEs
Converted all ASCII tabs to ASCII spaces using a 8 character tab stop, for all files, except for all Makefiles (plus rpm.mk). The `git diff -w` reports no changes.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* Calc is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
* Public License for more details.
|
||||
*
|
||||
* A copy of version 2.1 of the GNU Lesser General Public License is
|
||||
@@ -17,25 +17,25 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* Under source code control: 2021/03/08 20:34:13
|
||||
* File existed as early as: 2021
|
||||
* Under source code control: 2021/03/08 20:34:13
|
||||
* File existed as early as: 2021
|
||||
*
|
||||
* chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
* Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
* chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
* Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
*/
|
||||
|
||||
/*
|
||||
* usage:
|
||||
* have_strlcat
|
||||
* have_strlcat
|
||||
*
|
||||
* Not all systems have the strlcat() function, so this may not
|
||||
* compile on your system.
|
||||
*
|
||||
* This prog outputs several defines:
|
||||
*
|
||||
* HAVE_STRLCAT
|
||||
* defined ==> use strlcat()
|
||||
* undefined ==> do not or cannot call strlcat()
|
||||
* HAVE_STRLCAT
|
||||
* defined ==> use strlcat()
|
||||
* undefined ==> do not or cannot call strlcat()
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -45,7 +45,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include "banned.h" /* include after system header <> includes */
|
||||
#include "banned.h" /* include after system header <> includes */
|
||||
|
||||
|
||||
#define BUF_SIZ 5
|
||||
@@ -58,19 +58,19 @@ main(void)
|
||||
{
|
||||
#if defined(HAVE_NO_STRLCAT)
|
||||
|
||||
printf("#undef HAVE_STRLCAT /* no */\n");
|
||||
printf("#undef HAVE_STRLCAT /* no */\n");
|
||||
|
||||
#else /* HAVE_NO_STRLCAT */
|
||||
char dst[BUF_SIZ+1+1];
|
||||
char dst[BUF_SIZ+1+1];
|
||||
|
||||
dst[0] = 'S';
|
||||
dst[1] = '\0';
|
||||
(void) strlcat(dst, src, sizeof(dst));
|
||||
dst[0] = 'S';
|
||||
dst[1] = '\0';
|
||||
(void) strlcat(dst, src, sizeof(dst));
|
||||
|
||||
printf("#define HAVE_STRLCAT /* yes */\n");
|
||||
printf("#define HAVE_STRLCAT /* yes */\n");
|
||||
|
||||
#endif /* HAVE_NO_STRLCAT */
|
||||
|
||||
/* exit(0); */
|
||||
return 0;
|
||||
/* exit(0); */
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user