Change guestfs___* to guestfs_int_*

libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.

The first step is to replace all guestfs___* (3 underscores) with
guestfs_int_*.  We've used guestfs_int_* elsewhere already as a prefix
for internal identifiers.

This is an entirely mechanical change done using:
  git ls-files | xargs perl -pi.bak -e 's/guestfs___/guestfs_int_/g'

Reference: http://stackoverflow.com/a/228797
This commit is contained in:
Richard W.M. Jones
2015-02-14 15:14:48 +00:00
parent 46010912ef
commit bfbcc01403
109 changed files with 1348 additions and 1348 deletions

View File

@@ -94,15 +94,15 @@ main (int argc, char *argv[])
/* Allow the test to be skipped by setting an environment variable. */
skip = getenv ("SKIP_TEST_PARALLEL_MOUNT_LOCAL");
if (skip && guestfs___is_true (skip) > 0) {
if (skip && guestfs_int_is_true (skip) > 0) {
fprintf (stderr, "%s: test skipped because environment variable set.\n",
guestfs___program_name);
guestfs_int_program_name);
exit (77);
}
if (access ("/dev/fuse", W_OK) == -1) {
fprintf (stderr, "%s: test skipped because /dev/fuse is not writable.\n",
guestfs___program_name);
guestfs_int_program_name);
exit (77);
}
@@ -242,7 +242,7 @@ start_thread (void *statevp)
char status_string[80];
fprintf (stderr, "%s: %s\n", state->mp,
guestfs___exit_status_to_string (status, "test",
guestfs_int_exit_status_to_string (status, "test",
status_string,
sizeof status_string));
goto error;