Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0b5bb6

Browse files
committed
Improve comment spelling and style in llvmjit_deform.c.
Author: Justin PryzbyDiscussion:https://postgr.es/m/20190408141828.GE10080@telsasoft.comhttps://postgr.es/m/20181127184133.GM10913@telsasoft.com
1 parent3a48005 commita0b5bb6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/backend/jit/llvm/llvmjit_deform.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
386386

387387
/*
388388
* If this is the first attribute, slot->tts_nvalid was 0. Therefore
389-
* reset offset to 0 to, it be from a previous execution.
389+
*alsoreset offset to 0, it may be from a previous execution.
390390
*/
391391
if (attnum==0)
392392
{
@@ -416,7 +416,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
416416

417417
/*
418418
* Check for nulls if necessary. No need to take missing attributes
419-
* into account, becausein case they're present the heaptuple's natts
419+
* into account, becauseif they're present the heaptuple's natts
420420
* would have indicated that a slot_getmissingattrs() is needed.
421421
*/
422422
if (!att->attnotnull)
@@ -503,13 +503,13 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
503503
(known_alignment<0||known_alignment!=TYPEALIGN(alignto,known_alignment)))
504504
{
505505
/*
506-
* When accessing a varlena field we have to "peek" to see if we
506+
* When accessing a varlena field, we have to "peek" to see if we
507507
* are looking at a pad byte or the first byte of a 1-byte-header
508508
* datum. A zero byte must be either a pad byte, or the first
509-
* byte of a correctly aligned 4-byte length word; in either case
509+
* byte of a correctly aligned 4-byte length word; in either case,
510510
* we can align safely. A non-zero byte must be either a 1-byte
511511
* length word, or the first byte of a correctly aligned 4-byte
512-
* length word; in either case we need not align.
512+
* length word; in either case, we need not align.
513513
*/
514514
if (att->attlen==-1)
515515
{
@@ -603,8 +603,8 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
603603
elseif (att->attnotnull&&attguaranteedalign&&known_alignment >=0)
604604
{
605605
/*
606-
* If the offset to the column was previously known a NOT NULL &
607-
* fixedwidth column guarantees that alignment is just the
606+
* If the offset to the column was previously known, a NOT NULL &
607+
* fixed-width column guarantees that alignment is just the
608608
* previous alignment plus column width.
609609
*/
610610
Assert(att->attlen>0);
@@ -645,8 +645,8 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
645645
LLVMBuildGEP(b,v_tts_nulls,&l_attno,1,""));
646646

647647
/*
648-
* Store datum. For byval datums copy the value, extend to Datum's
649-
* width, and store. For byref types, store pointer to data.
648+
* Store datum. For byval: datums copy the value, extend to Datum's
649+
* width, and store. For byref types: store pointer to data.
650650
*/
651651
if (att->attbyval)
652652
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp