Skip to content

Commit

Permalink
Move AcpiGbl_NextCmdNum definition to acglobal.h
Browse files Browse the repository at this point in the history
This commit cleans up the code by moving the global definition out of
dbhistry.c to acglobal.h.

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
  • Loading branch information
Erik Kaneda committed Apr 6, 2020
1 parent 994fe94 commit 8296a24
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions source/common/acgetline.c
Expand Up @@ -189,8 +189,6 @@ AcpiAcClearLine (
#define _ASCII_LEFT_ARROW 'D'
#define _ASCII_NEWLINE '\n'

extern UINT32 AcpiGbl_NextCmdNum;

/* Erase a single character on the input command line */

#define ACPI_CLEAR_CHAR() \
Expand Down
1 change: 0 additions & 1 deletion source/components/debugger/dbhistry.c
Expand Up @@ -175,7 +175,6 @@ static HISTORY_INFO AcpiGbl_HistoryBuffer[HISTORY_SIZE];
static UINT16 AcpiGbl_LoHistory = 0;
static UINT16 AcpiGbl_NumHistory = 0;
static UINT16 AcpiGbl_NextHistoryIndex = 0;
UINT32 AcpiGbl_NextCmdNum = 1;


/*******************************************************************************
Expand Down
1 change: 1 addition & 0 deletions source/include/acglobal.h
Expand Up @@ -436,6 +436,7 @@ ACPI_GLOBAL (ACPI_EXTERNAL_FILE *, AcpiGbl_ExternalFileList);
#ifdef ACPI_DEBUGGER
ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_AbortMethod, FALSE);
ACPI_INIT_GLOBAL (ACPI_THREAD_ID, AcpiGbl_DbThreadId, ACPI_INVALID_THREAD_ID);
ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NextCmdNum, 1);

ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoIniMethods);
ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport);
Expand Down

0 comments on commit 8296a24

Please sign in to comment.