bts2str(), long2str() are in <ack_string.h>

This commit is contained in:
George Koehler 2017-11-10 17:31:11 -05:00
parent b5b1da6f1a
commit 3463f0c944
12 changed files with 13 additions and 15 deletions

View file

@ -8,6 +8,7 @@
#ifdef DEBUG
#include "parameters.h"
#include <ack_string.h>
#include <alloc.h>
#include <flt_arith.h>
#include "arith.h"
@ -455,8 +456,6 @@ p1_expr(lvl, expr)
break;
case String:
{
char *bts2str();
print(
"\"%s\"\n",
bts2str(expr->SG_VALUE, expr->SG_LEN-1,

View file

@ -9,6 +9,7 @@
#ifndef LINT
#include <assert.h>
#include <ack_string.h>
#include <em.h>
#include <em_reg.h>
#include <alloc.h>
@ -32,7 +33,6 @@
#define CRASH() crash("EVAL: CRASH at line %u", __LINE__)
char *symbol2str();
char *long2str();
arith NewLocal(); /* util.c */
#define LocalPtrVar() NewLocal(pointer_size, pointer_align, reg_pointer, REGISTER)
extern int err_occurred; /* error.c */

View file

@ -15,6 +15,7 @@
#include "l_em.h"
#include "l_lint.h"
#endif /* LINT */
#include <ack_string.h>
#include <alloc.h>
#include <assert.h>
#include <flt_arith.h>
@ -38,7 +39,6 @@
#define con_nullbyte() C_con_ucon("0", (arith)1)
#define aggregate_type(tp) ((tp)->tp_fund == ARRAY || (tp)->tp_fund == STRUCT)
char *long2str();
char *strncpy();
extern char options[];
static int gen_error;

View file

@ -10,6 +10,7 @@
#ifdef LINT
#include <assert.h>
#include <ack_string.h>
#include <alloc.h>
#include "interface.h"
#ifdef ANSI
@ -35,7 +36,6 @@
#include "l_outdef.h"
#include "l_class.h"
extern char *bts2str();
extern char *symbol2str();
int stat_number = 9999; /* static scope number */

View file

@ -6,6 +6,7 @@
/* MAIN PROGRAM */
#include "parameters.h"
#include <ack_string.h>
#include <system.h>
#include "idf.h"
#include "input.h"
@ -442,7 +443,6 @@ preprocess()
case STRING:
{
char sbuf[1024]; /* a transient buffer */
char *bts2str();
print("\"%s\" ", bts2str(dot.tk_bts, dot.tk_len -
1, sbuf));

View file

@ -12,6 +12,7 @@
#ifndef NOPP
#include <ack_string.h>
#include <alloc.h>
#include "idf.h"
#include "input.h"
@ -514,7 +515,6 @@ macro_func(idef)
*/
register struct macro *mac = idef->id_macro;
static char FilNamBuf[PATHLENGTH];
char *long2str();
switch (idef->id_text[2]) {
case 'F': /* __FILE__ */

View file

@ -12,6 +12,7 @@
#else
#include "l_em.h"
#endif /* LINT */
#include <ack_string.h>
#include <alloc.h>
#include "Lpars.h"
#include "label.h"
@ -84,8 +85,6 @@ code_startswitch(expp)
C_bra(l_table); /* goto start of switch_table */
}
extern char *long2str();
code_endswitch()
{
register struct switch_hdr *sh = switch_stack;

View file

@ -10,6 +10,7 @@
#include <stdio.h>
#include <string.h>
#include <ack_string.h>
#include "parameters.h"
#include "alloc.h"
#include "idf.h"
@ -506,7 +507,6 @@ macro_func(idef)
*/
register struct macro *mac = idef->id_macro;
static char FilNamBuf[PATHLENGTH];
char *long2str();
switch (idef->id_text[2]) {
case 'F': /* __FILE__ */

View file

@ -13,6 +13,7 @@
#include "debug.h"
#include <assert.h>
#include <ack_string.h>
#include <alloc.h>
#include <em_arith.h>
#include <em_label.h>
@ -455,7 +456,6 @@ genrck(tp)
arith lb, ub;
register label ol;
arith size = tp->tp_size;
extern char *long2str();
register t_type *btp = BaseType(tp);
if (size < word_size) size = word_size;

View file

@ -5,6 +5,7 @@
#include "parameters.h"
#include "debug.h"
#include <ack_string.h>
#include <alloc.h>
#include <assert.h>
#include <em_arith.h>
@ -475,7 +476,7 @@ CutSize(expr)
InitCst()
{
extern char *long2str(), *Salloc();
extern char *Salloc();
register int i = 0;
register arith bt = (arith)0;

View file

@ -1,4 +1,3 @@
normalrule {
name = "c_mnem_narg_h",
ins = {
@ -53,6 +52,7 @@ local function variant(name, cflags)
"modules/src/alloc+lib",
"modules/src/em_code+headers",
"modules/src/em_data+lib",
"modules/src/string+lib",
"modules/src/system+lib",
"./*.h",
}
@ -61,4 +61,3 @@ end
variant("lib_ev", {})
variant("lib_kv", { "-DCOMPACT" })

View file

@ -10,6 +10,7 @@
#include <ctype.h>
#include <string.h>
#include <ack_string.h>
/* #define XXX_YYY /* only for early debugging */
@ -283,7 +284,6 @@ getnumber(c, ap)
register char *p = str;
int n;
int expsign;
long str2long();
ap->ema_argtype = cst_ptyp;
expsign = 0;