coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: straggler *.[ch] files: convert more `...' to '...'


From: Jim Meyering
Subject: [PATCH] maint: straggler *.[ch] files: convert more `...' to '...'
Date: Mon, 09 Jan 2012 22:40:28 +0100

FYI,

>From bfe711db1c07e73a5806647a637f609eb8c1773d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 9 Jan 2012 22:38:24 +0100
Subject: [PATCH] maint: straggler *.[ch] files: convert more `...' to '...'

The preceding commands ignored .[ch] files in lib/ and gl/.
This is what I should have been doing from the start:

  git grep -l '`.*'\' $(g ls-files |grep '\.[ch]$') \
    | xargs perl -pi -e 's/`(.+?'\'')/'\''$1/'
---
 gl/lib/root-dev-ino.c |    4 ++--
 lib/fd-reopen.c       |    2 +-
 lib/strnumcmp-in.h    |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gl/lib/root-dev-ino.c b/gl/lib/root-dev-ino.c
index d9a8505..7e7ae34 100644
--- a/gl/lib/root-dev-ino.c
+++ b/gl/lib/root-dev-ino.c
@@ -1,4 +1,4 @@
-/* root-dev-ino.c -- get the device and inode numbers for `/'.
+/* root-dev-ino.c -- get the device and inode numbers for '/'.
    Copyright (C) 2003, 2005-2006, 2009-2012 Free Software Foundation, Inc.

    This program is free software: you can redistribute it and/or modify
@@ -22,7 +22,7 @@

 #include <stdlib.h>

-/* Call lstat to get the device and inode numbers for `/'.
+/* Call lstat to get the device and inode numbers for '/'.
    Upon failure, return NULL.  Otherwise, set the members of
    *ROOT_D_I accordingly and return ROOT_D_I.  */
 struct dev_ino *
diff --git a/lib/fd-reopen.c b/lib/fd-reopen.c
index 8a57f8c..42008ef 100644
--- a/lib/fd-reopen.c
+++ b/lib/fd-reopen.c
@@ -26,7 +26,7 @@
 #include <unistd.h>

 /* Open a file to a particular file descriptor.  This is like standard
-   `open', except it always returns DESIRED_FD if successful.  */
+   'open', except it always returns DESIRED_FD if successful.  */

 int
 fd_reopen (int desired_fd, char const *file, int flags, mode_t mode)
diff --git a/lib/strnumcmp-in.h b/lib/strnumcmp-in.h
index 35d5ac0..e8a9d9f 100644
--- a/lib/strnumcmp-in.h
+++ b/lib/strnumcmp-in.h
@@ -34,7 +34,7 @@
    - It's typically faster.
    POSIX says that only '0' through '9' are digits.  Prefer ISDIGIT to
    isdigit unless it's important to use the locale's definition
-   of `digit' even when the host does not conform to POSIX.  */
+   of 'digit' even when the host does not conform to POSIX.  */
 # define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)


--
1.7.9.rc0.2.g4b783



reply via email to

[Prev in Thread] Current Thread [Next in Thread]