From 2473707be5dec4cb480b11377a5c4f98edf8a479 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 31 Jan 2014 21:04:28 +0400 Subject: [PATCH] Fix 'e.g.' typos in comments and documentation * doc/README.cmake: Fix typo (e.g.). * doc/README.solaris2: Likewise. * doc/README.solaris2: Likewise. * doc/README.win32: Likewise. * include/gc.h (GC_register_my_thread): Fix typo in a comment (e.g.). * include/leak_detector.h: Likewise. * misc.c (GC_VSNPRINTF): Likewise. * pthread_stop_world.c (GC_unblock_gc_signals): Likewise. --- doc/README.cmake | 4 ++-- doc/README.solaris2 | 2 +- doc/README.win32 | 2 +- include/gc.h | 2 +- include/leak_detector.h | 2 +- misc.c | 2 +- pthread_stop_world.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/README.cmake b/doc/README.cmake index 3eb347c0..e691fa95 100644 --- a/doc/README.cmake +++ b/doc/README.cmake @@ -32,12 +32,12 @@ BUILD PROCESS . install cmake (cmake.org) . add directory containing cmake.exe to %PATH% . run cmake from the gc root directory, passing the target with -G: - eg. + e.g., > cmake -G "Visual Studio 8 2005" use the gc.sln file generated by cmake to build gc . you can also run cmake from a build directory to build outside of the source tree. Just specify the path to the source tree: - eg. + e.g., > mkdir build > cd build > cmake .. -G "Visual Studio 8 2005" diff --git a/doc/README.solaris2 b/doc/README.solaris2 index 2f3b511a..ba7bb2b2 100644 --- a/doc/README.solaris2 +++ b/doc/README.solaris2 @@ -19,7 +19,7 @@ You may want to reverse this decisions if you use -DREDIRECT_MALLOC=... Note: Before you run "make check", you need to set your LD_LIBRARY_PATH correctly -(eg., to "/usr/local/lib") so that tests can find the shared library +(e.g., to "/usr/local/lib") so that tests can find the shared library libgcc_s.so.1. Alternatively, you can configure with --disable-shared. SOLARIS THREADS: diff --git a/doc/README.win32 b/doc/README.win32 index 471126e2..5c30d896 100644 --- a/doc/README.win32 +++ b/doc/README.win32 @@ -142,7 +142,7 @@ important, otherwise resulting programs will not run. Special note for OpenWatcom users: the C (unlike the C++) compiler (of the latest stable release, not sure for older ones) doesn't force pointer global variables (i.e. not struct fields, not sure for locals) to be aligned unless -optimizing for speed (eg. "-ot" option is set); the "-zp" option (or align +optimizing for speed (e.g., "-ot" option is set); the "-zp" option (or align pragma) only controls alignment for structs; I don't know whether it's a bug or a feature (see an old report of same kind - http://bugzilla.openwatcom.org/show_bug.cgi?id=664), so You are warned. diff --git a/include/gc.h b/include/gc.h index 3a940cde..64a2663f 100644 --- a/include/gc.h +++ b/include/gc.h @@ -1295,7 +1295,7 @@ GC_API void * GC_CALL GC_call_with_stack_base(GC_stack_base_func /* fn */, /* functions are called to create the thread, e.g. by including gc.h */ /* (which redefines some system functions) before calling the system */ /* thread creation function. Nonetheless, thread cleanup routines */ - /* (eg., pthread key destructor) typically require manual thread */ + /* (e.g., pthread key destructor) typically require manual thread */ /* registering (and unregistering) if pointers to GC-allocated */ /* objects are manipulated inside. */ /* It is also always done implicitly on some platforms if */ diff --git a/include/leak_detector.h b/include/leak_detector.h index 5540c227..0c27eda0 100644 --- a/include/leak_detector.h +++ b/include/leak_detector.h @@ -15,7 +15,7 @@ #ifndef GC_LEAK_DETECTOR_H #define GC_LEAK_DETECTOR_H -/* Include leak_detector.h (eg., via GCC --include directive) */ +/* Include leak_detector.h (e.g., via GCC --include directive) */ /* to turn BoehmGC into a Leak Detector. */ #ifndef GC_DEBUG diff --git a/misc.c b/misc.c index 620f686c..1ca9dd1b 100644 --- a/misc.c +++ b/misc.c @@ -1506,7 +1506,7 @@ GC_API void GC_CALL GC_enable_incremental(void) #define BUFSZ 1024 #ifdef NO_VSNPRINTF - /* In case this function is missing (eg., in DJGPP v2.0.3). */ + /* In case this function is missing (e.g., in DJGPP v2.0.3). */ # define GC_VSNPRINTF(buf, bufsz, format, args) vsprintf(buf, format, args) #elif defined(_MSC_VER) # ifdef MSWINCE diff --git a/pthread_stop_world.c b/pthread_stop_world.c index d2a26d24..a43b9147 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -170,7 +170,7 @@ GC_API int GC_CALL GC_get_thr_restart_signal(void) } #ifdef GC_EXPLICIT_SIGNALS_UNBLOCK - /* Some targets (eg., Solaris) might require this to be called when */ + /* Some targets (e.g., Solaris) might require this to be called when */ /* doing thread registering from the thread destructor. */ GC_INNER void GC_unblock_gc_signals(void) { -- 2.40.0