From 7b0e826a332fcfd26b4d4de0c281d290e6ae2619 Mon Sep 17 00:00:00 2001 From: Lee Duhem Date: Fri, 30 Dec 2016 14:24:18 -0600 Subject: [PATCH] libgst: Fix typos in comments 2016-12-30 Lee Duhem * comp.h: Improve comments. * comp.c: Ditto. * files.c: Fix typos in comments. * gstpriv.h: Ditto. * tree.h: Ditto. * tree.c: Remove inappropriate comment. --- libgst/ChangeLog | 9 +++++++++ libgst/comp.c | 8 +------- libgst/comp.h | 2 +- libgst/files.c | 4 ++-- libgst/gstpriv.h | 2 +- libgst/sym.c | 2 +- libgst/tree.c | 3 --- libgst/tree.h | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libgst/ChangeLog b/libgst/ChangeLog index 999aed9..0cb646f 100644 --- a/libgst/ChangeLog +++ b/libgst/ChangeLog @@ -1,3 +1,12 @@ +2016-12-30 Lee Duhem + + * comp.h: Improve comments. + * comp.c: Ditto. + * files.c: Fix typos in comments. + * gstpriv.h: Ditto. + * tree.h: Ditto. + * tree.c: Remove inappropriate comment. + 2016-09-18 Holger Hans Peter Freyther * genbc-scan.l: Compile with flex 2.6.0. diff --git a/libgst/comp.c b/libgst/comp.c index 040994c..f08d057 100644 --- a/libgst/comp.c +++ b/libgst/comp.c @@ -778,14 +778,8 @@ _gst_compile_method (tree_node method, continue; if (!statement && returnLast) - /* compile a return of the last evaluated value. Note that in - theory the pop above is not necessary in this case - (and in fact older versions did not put it), - but having it simplifies the optimizer's task - because it reduces the number of patterns it has - to look for. If necessary, the optimizer itself - will remove the pop. */ { + /* compile a return of the last evaluated value. */ _gst_compile_byte (RETURN_CONTEXT_STACK_TOP, 0); break; } diff --git a/libgst/comp.h b/libgst/comp.h index 07c0b10..b36a9c5 100644 --- a/libgst/comp.h +++ b/libgst/comp.h @@ -74,7 +74,7 @@ * 3 2 1 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |.|flags| prim index | #temps | depth | #args |1| + * |.|flags|.| prim index | #temps | depth | #args |1| * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * flags (30-28) diff --git a/libgst/files.c b/libgst/files.c index f6a7973..531c7fe 100644 --- a/libgst/files.c +++ b/libgst/files.c @@ -123,7 +123,7 @@ mst_Boolean _gst_regression_testing = false; ***********************************************************************/ /* Answer whether it is ok to load the binary image pointed to by - _gst_binary_image_name. This is good is the image file is local + _gst_binary_image_name. This is good if the image file is local and newer than all of the kernel files, or if the image file is global, newer than all of the global kernel files, and no local kernel file is found. */ @@ -335,7 +335,7 @@ _gst_initialize (const char *kernel_dir, if (!_gst_executable_path) _gst_executable_path = DEFAULT_EXECUTABLE; - /* By default, apply this kludge fpr OSes such as Windows and MS-DOS + /* By default, apply this kludge for OSes such as Windows and MS-DOS which have no concept of home directories. */ if (home == NULL) home = xstrdup (currentDirectory); diff --git a/libgst/gstpriv.h b/libgst/gstpriv.h index ac079ad..85aa9a0 100644 --- a/libgst/gstpriv.h +++ b/libgst/gstpriv.h @@ -176,7 +176,7 @@ #define PREF_T2 8 #define PREF_NTA 12 -/* the prefetch is a loss on on a ARM9 (TI Davinci), hack it out */ +/* the prefetch is a loss on a ARM9 (TI Davinci), hack it out */ #if !defined(DISABLE_PREFETCH) && GNUC_PREREQ (3, 1) #define DO_PREFETCH(x, distance, k) \ __builtin_prefetch (((char *) (x)) \ diff --git a/libgst/sym.c b/libgst/sym.c index 3466d54..57f62e7 100644 --- a/libgst/sym.c +++ b/libgst/sym.c @@ -614,7 +614,7 @@ _gst_get_class_object (OOP classOOP) } -/* Add poolOOP after the node whose next pointer is in P_END. Return +/* Add POOLOOP after the node whose next pointer is in P_END. Return the new next node (actually its next pointer). */ static pool_list * diff --git a/libgst/tree.c b/libgst/tree.c index cc55e9c..59a37ff 100644 --- a/libgst/tree.c +++ b/libgst/tree.c @@ -260,9 +260,6 @@ tree_node _gst_make_assignment_list (YYLTYPE *location, tree_node variable) { - /* Actually, we rely on the fact that a variable is represented as a - tree node of type list_node, so all we do is change the node tag - to TREE_VAR_DECL_LIST. */ return (make_list_node (location, TREE_VAR_ASSIGN_LIST, NULL, variable)); } diff --git a/libgst/tree.h b/libgst/tree.h index 047e2d4..0ca9aca 100644 --- a/libgst/tree.h +++ b/libgst/tree.h @@ -381,7 +381,7 @@ extern tree_node _gst_make_binding_constant (YYLTYPE *location, ATTRIBUTE_HIDDEN; /* Create a TREE_SYMBOL_NODE describing an identifier (variable, - unary/binary selector or symbol constant, it doesn't patter) pointed + unary/binary selector or symbol constant, it doesn't matter) pointed to by IDENT. */ extern tree_node _gst_intern_ident (YYLTYPE *location, const char *ident) -- 2.6.2