Skip to content

Commit

Permalink
Moving GJ_LIB_NL into _GJ_LIB_COMMON
Browse files Browse the repository at this point in the history
  • Loading branch information
grymmjack committed Feb 13, 2024
1 parent ac9e021 commit 8b4036e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
8 changes: 5 additions & 3 deletions DUMP/DUMP.BI
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ $IF GJ_LIB_DICT_INC_BI = UNDEFINED THEN
'$INCLUDE:'../DICT/DICT.BI'
$END IF

DIM SHARED GJ_LIB_NL AS STRING
$IF WIN THEN
$IF GJ_LIB_NL = UNDEFINED THEN
DIM SHARED GJ_LIB_NL AS STRING
$END IF
$IF GJ_LIB_NL = UNDEFINED AND WIN THEN
GJ_LIB_NL$ = CHR$(13)
$ELSE
GJ_LIB_NL$ = CHR$(10)
$END IF
$END IF
3 changes: 3 additions & 0 deletions _GJ_LIB.BM
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
$LET GJ_LIB_INC_BM = 1

' Unified includes to use everything in the library from single BM include
$IF GJ_LIB_INC_COMMON_BM = UNDEFINED THEN
'$INCLUDE:'_GJ_LIB_COMMON.BM'
$END IF
$IF GJ_LIB_ARR_BYTE_BAS = UNDEFINED THEN
'$INCLUDE:'ARR/ARR_BYTE.BAS'
$END IF
Expand Down
6 changes: 5 additions & 1 deletion _GJ_LIB_COMMON.BI
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ $IF SLASH = UNDEFINED THEN
$ELSE
CONST SLASH$ = "/"
$END IF
$END IF
$END IF

$IF GJ_LIB_NL = UNDEFINED THEN
DIM SHARED GJ_LIB_NL AS STRING
$END IF
16 changes: 16 additions & 0 deletions _GJ_LIB_COMMON.BM
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
''
' GRYMMJACK'S LIB FOR QB64
'
' This file contains constants and variables common among the entire library.
'
' @author Rick Christy <grymmjack@gmail.com>
'
$IF GJLIB_COMMON_BM = UNDEFINED THEN
$LET GJ_LIB_INC_COMMON_BM = 1
$END IF

$IF GJ_LIB_NL = UNDEFINED AND WIN THEN
GJ_LIB_NL$ = CHR$(13)
$ELSE
GJ_LIB_NL$ = CHR$(10)
$END IF

0 comments on commit 8b4036e

Please sign in to comment.