/* csplit - split a file into sections determined by context lines
- Copyright (C) 91, 1995-2008 Free Software Foundation, Inc.
+ Copyright (C) 91, 1995-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
proper_name ("Stuart Kemp"), \
proper_name ("David MacKenzie")
-/* Increment size of area for control records. */
-#define ALLOC_SIZE 20
-
/* The default prefix for output file names. */
#define DEFAULT_PREFIX "xx"
# define fdatasync(fd) (errno = ENOSYS, -1)
#endif
-#define max(a, b) ((a) > (b) ? (a) : (b))
#define output_char(c) \
do \
{ \
/* expand - convert tabs to spaces
- Copyright (C) 89, 91, 1995-2006, 2008 Free Software Foundation, Inc.
+ Copyright (C) 89, 91, 1995-2006, 2008-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define AUTHORS proper_name ("David MacKenzie")
-/* The number of bytes added at a time to the amount of memory
- allocated for the output line. */
-#define OUTPUT_BLOCK 256
-
/* If true, convert blanks even after nonblank characters have been
read on the line. */
static bool convert_entire_line;
/* factor -- print prime factors of n.
- Copyright (C) 86, 1995-2005, 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 86, 1995-2005, 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <gmp.h>
#endif
-
#include <assert.h>
-#define NDEBUG 1
#include "system.h"
#include "error.h"
# define matchpathcon_init_prefix(a, p) /* empty */
#endif
-/* Initial number of entries in each hash table entry's table of inodes. */
-#define INITIAL_HASH_MODULE 100
-
-/* Initial number of entries in the inode hash table. */
-#define INITIAL_ENTRY_TAB_SIZE 70
-
-/* Number of bytes of a file to copy at a time. */
-#define READ_SIZE (32 * 1024)
-
static bool change_timestamps (struct stat const *from_sb, char const *to);
static bool change_attributes (char const *name);
static bool copy_file (const char *from, const char *to,
return *(struct dev_ino *) obstack_next_free (&dev_ino_obstack);
}
+/* Note the use commented out below:
#define ASSERT_MATCHING_DEV_INO(Name, Di) \
do \
{ \
assert (sb.st_ino == Di.st_ino); \
} \
while (0)
-
+*/
/* Write to standard output PREFIX, followed by the quoting style and
a space-separated list of the integers stored in OS all on one line. */
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
-/* Initial number of entries in each hash table entry's table of inodes. */
-#define INITIAL_HASH_MODULE 100
-
-/* Initial number of entries in the inode hash table. */
-#define INITIAL_ENTRY_TAB_SIZE 70
-
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
enum
typedef struct COLUMN COLUMN;
-#define NULLCOL (COLUMN *)0
-
static int char_to_clump (char c);
static bool read_line (COLUMN *p);
static bool print_page (void);
/* Permuted index for GNU, with keywords in their context.
- Copyright (C) 1990, 1991, 1993, 1998-2008 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1993, 1998-2009 Free Software Foundation, Inc.
François Pinard <pinard@iro.umontreal.ca>, 1988.
This program is free software: you can redistribute it and/or modify
the actual reallocation step, but its base two logarithm. */
#define SWALLOW_REALLOC_LOG 12
-/* Imported from "regex.c". */
-#define Sword 1
-
/* Program options. */
enum Format
/* unexpand - convert blanks to tabs
- Copyright (C) 89, 91, 1995-2006, 2008 Free Software Foundation, Inc.
+ Copyright (C) 89, 91, 1995-2006, 2008-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define AUTHORS proper_name ("David MacKenzie")
-/* The number of bytes added at a time to the amount of memory
- allocated for the output line. */
-#define OUTPUT_BLOCK 256
-
/* If true, convert blanks even after nonblank characters have been
read on the line. */
static bool convert_entire_line;