Fix 'e.g.' typos in comments and documentation
authorIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jan 2014 17:04:28 +0000 (21:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jan 2014 20:34:58 +0000 (00:34 +0400)
* 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
doc/README.solaris2
doc/README.win32
include/gc.h
include/leak_detector.h
misc.c
pthread_stop_world.c

index 3eb347c..e691fa9 100644 (file)
@@ -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"
index 2f3b511..ba7bb2b 100644 (file)
@@ -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:
index 471126e..5c30d89 100644 (file)
@@ -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.
index 3a940cd..64a2663 100644 (file)
@@ -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             */
index 5540c22..0c27eda 100644 (file)
@@ -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 620f686..1ca9dd1 100644 (file)
--- 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
index d2a26d2..a43b914 100644 (file)
@@ -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)
   {