Move externs to header files

Follow Linux kernel coding style.

Remove exception from checkpatch.pl configuration file.

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2018-01-04 01:09:15 +00:00
parent 8e8865940a
commit b04596a32b
10 changed files with 14 additions and 16 deletions

View File

@@ -12,6 +12,7 @@
#include "asm/fstack.h"
#include "asm/lexer.h"
#include "asm/main.h"
#include "asm/output.h"
#include "asm/symbol.h"
#include "extern/err.h"
@@ -35,9 +36,6 @@ static uint32_t nCurrentREPTBlockCount;
uint32_t ulMacroReturnValue;
extern char *tzObjectname;
extern FILE *dependfile;
/*
* defines for nCurrentStatus
*/

View File

@@ -460,8 +460,7 @@ const struct sLexFloat tMacroUniqueToken = {
T_LEX_MACROUNIQUE
};
void
setuplex(void)
void setup_lexer(void)
{
uint32_t id;

View File

@@ -28,8 +28,6 @@ struct sLexString {
#define SAFETYMARGIN 1024
extern size_t symvaluetostring(char *dest, size_t maxLength, char *sym);
struct sLexFloat tLexFloat[32];
struct sLexString *tLexHash[LEXHASHSIZE];
YY_BUFFER_STATE pCurrentBuffer;

View File

@@ -9,6 +9,7 @@
#include "asm/symbol.h"
#include "asm/fstack.h"
#include "asm/lexer.h"
#include "asm/output.h"
#include "asm/main.h"
@@ -16,8 +17,7 @@
#include "extern/reallocarray.h"
#include "extern/version.h"
int yyparse(void);
void setuplex(void);
extern int yyparse(void);
int32_t cldefines_index;
int32_t cldefines_size;
@@ -32,7 +32,6 @@ uint32_t unionStart[128], unionSize[128];
/* extern int yydebug; */
FILE *dependfile;
extern char *tzObjectname;
/*
* Option stack
@@ -384,7 +383,7 @@ int main(int argc, char *argv[])
tzMainfile = argv[argc - 1];
setuplex();
setup_lexer();
if (CurrentOptions.verbose)
printf("Assembling %s\n", tzMainfile);