Changeset: d02873ea9e93 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d02873ea9e93
Modified Files:
        gdk/gdk_atoms.h
        gdk/gdk_project.c
Branch: Jul2017
Log Message:

Update some comments.


diffs (36 lines):

diff --git a/gdk/gdk_atoms.h b/gdk/gdk_atoms.h
--- a/gdk/gdk_atoms.h
+++ b/gdk/gdk_atoms.h
@@ -197,9 +197,9 @@ gdk_export const ptr ptr_nil;
 #define ATOMfix(t,v)           do if (BATatoms[t].atomFix) 
BATatoms[t].atomFix(v); while (0)
 #define ATOMunfix(t,v)         do if (BATatoms[t].atomUnfix) 
BATatoms[t].atomUnfix(v); while (0)
 
-/* The base type is the storage type if the comparison function and
- * nil values are the same as those of the storage type; otherwise it
- * is the type itself. */
+/* The base type is the storage type if the comparison function, the
+ * hash function, and the nil value are the same as those of the
+ * storage type; otherwise it is the type itself. */
 #define ATOMbasetype(t)        ((t) != ATOMstorage(t) &&                       
\
                         ATOMnilptr(t) == ATOMnilptr(ATOMstorage(t)) && \
                         ATOMcompare(t) == ATOMcompare(ATOMstorage(t)) && \
diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -256,11 +256,11 @@ BATproject(BAT *l, BAT *r)
             lcount > (rcount >> 3) ||
             r->batRestricted == BAT_READ)) {
                /* insert strings as ints, we need to copy the string
-                * heap whole sale; we can not do this if there are
-                * nils in the left column, and we will not do it if
-                * the left is much smaller than the right and the
-                * right is writable (meaning we have to actually copy
-                * the right string heap) */
+                * heap whole sale; we can't do this if there are nils
+                * in the left column, and we won't do it if the left
+                * is much smaller than the right and the right is
+                * writable (meaning we have to actually copy the
+                * right string heap) */
                tpe = r->twidth == 1 ? TYPE_bte : (r->twidth == 2 ? TYPE_sht : 
(r->twidth == 4 ? TYPE_int : TYPE_lng));
                /* int's nil representation is a valid offset, so
                 * don't check for nils */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to