Skip to content

Commit

Permalink
chore: add missing trailing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Apr 12, 2024
1 parent f993937 commit 0244027
Show file tree
Hide file tree
Showing 109 changed files with 109 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"kgryte/beep",
"kgryte/boop",
"kgryte/bop"
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"failures": {
"kgryte/bop": "Not Found"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"type": "User",
"site_admin": false
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"type": "User",
"site_admin": false
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"type": "User",
"site_admin": false
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"type": "User",
"site_admin": false
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
"created_at": "2008-05-15T06:16:26Z",
"updated_at": "2016-01-28T18:07:03Z"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"gists": {
"key": "public_gists"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
"created_at": "2008-05-15T06:16:26Z",
"updated_at": "2016-01-28T18:07:03Z"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
}
],
"results": [ 983, 99 ]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
}
}
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
"pull": true
}
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"avatar_url": "https://avatars.githubusercontent.com/u/8172974?v=3",
"description": "Boop."
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"reset": 1372697452
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"remaining": 18,
"reset": 1372697452
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"limit": 5000,
"remaining": 4823,
"reset": 1454693201845
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ subroutine main()
end do
call print_summary( repeats, repeats )
end subroutine main
end program bench
end program bench
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ subroutine main()
end do
call print_summary( repeats, repeats )
end subroutine main
end program bench
end program bench
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ subroutine main()
end do
call print_summary( repeats, repeats )
end subroutine main
end program bench
end program bench
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ subroutine main()
end do
call print_summary( repeats, repeats )
end subroutine main
end program bench
end program bench
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ccopy/src/ccopy.f
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ subroutine ccopy( N, cx, strideX, cy, strideY )
end do
end if
return
end subroutine ccopy
end subroutine ccopy

This comment has been minimized.

Copy link
@kgryte

kgryte Apr 12, 2024

Member

@Planeshifter This is actually incorrect. See

insert_final_newline = false
.

I made this mistake recently as well. But newlines have special meaning in Fortran. It's the same reason why we typically avoid blank lines in our Fortran functions.

Did some digging and had a lengthy chat with Chatgpt. The avoidance of blank lines stems from reference BLAS practices. The use of empty comments (e.g., !..) instead of blank lines made lines unambiguous for early Fortran compilers. The omission of trailing newlines was a part of this practice.

When setting up EditorConfig, I followed this same practice. However, modern Fortran compilers should now be able to handle blank lines and trailing newlines.

The changes to Fortran files should be reverted.

I'm okay leaving these changes, so long as everything compiles and works as expected.

This comment has been minimized.

Copy link
@kgryte

kgryte Apr 12, 2024

Member

If everything works as expected, we should update our EditorConfig file to follow suit.

Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/cswap/src/cswap.f
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ subroutine cswap( N, cx, strideX, cy, strideY )
end do
end if
return
end subroutine cswap
end subroutine cswap
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/src/dasum.f
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ double precision function dasum( N, dx, stride )
end if
dasum = dtemp
return
end function dasum
end function dasum
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dasum/src/dasumsub.f
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ end function dasum
! Compute the sum of absolute values:
sum = dasum( N, dx, stride )
return
end subroutine dasumsub
end subroutine dasumsub
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/daxpy/src/daxpy.f
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ subroutine daxpy( N, alpha, dx, strideX, dy, strideY )
end do
end if
return
end subroutine daxpy
end subroutine daxpy
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dcopy/src/dcopy.f
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ subroutine dcopy( N, dx, strideX, dy, strideY )
end do
end if
return
end subroutine dcopy
end subroutine dcopy
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ddot/src/ddot.f
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ double precision function ddot( N, dx, strideX, dy, strideY )
endif
ddot = dtemp
return
end function ddot
end function ddot
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ddot/src/ddotsub.f
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ end function ddot
! Compute the dot product:
dot = ddot( N, dx, strideX, dy, strideY )
return
end subroutine ddotsub
end subroutine ddotsub
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dnrm2/src/dnrm2.f
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ double precision function dnrm2( N, dx, stride )
end if
end do
dnrm2 = scale * dsqrt( ssq )
end function dnrm2
end function dnrm2
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dnrm2/src/dnrm2sub.f
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ end function dnrm2
! Compute the L2-norm:
nrm2 = dnrm2( N, dx, stride )
return
end subroutine dnrm2sub
end subroutine dnrm2sub
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
end program bench
end program bench
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dscal/src/dscal.f
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ subroutine dscal( N, alpha, dx, stride )
end do
end if
return
end subroutine dscal
end subroutine dscal
Loading

0 comments on commit 0244027

Please sign in to comment.