mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Improved source code flow
Changed /*NOTREACHED*/ to not_reached(); and use "attribute.h". Added .PHONY rule, just after all rule, to Makefiles. Fixed an improper indentation issue.
This commit is contained in:
5
symbol.c
5
symbol.c
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* symbol - global and local symbol routines
|
||||
*
|
||||
* Copyright (C) 1999-2007,2021 David I. Bell and Ernest Bowen
|
||||
* Copyright (C) 1999-2007,2021,2022 David I. Bell and Ernest Bowen
|
||||
*
|
||||
* Primary author: David I. Bell
|
||||
*
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "func.h"
|
||||
|
||||
|
||||
#include "attribute.h"
|
||||
#include "banned.h" /* include after system header <> includes */
|
||||
|
||||
|
||||
@@ -539,7 +540,7 @@ addstatic(GLOBAL *sp)
|
||||
(20 + staticcount) * sizeof(GLOBAL *));
|
||||
if (stp == NULL) {
|
||||
math_error("Cannot allocate static-variable table");
|
||||
/*NOTREACHED*/
|
||||
not_reached();
|
||||
}
|
||||
statictable = stp;
|
||||
staticavail = 20;
|
||||
|
Reference in New Issue
Block a user