diff options
| author | Quentin Carbonneaux <[email protected]> | 2017-05-17 09:40:07 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2017-05-17 10:05:28 -0400 |
| commit | a3a1451c5fabb5c94f7fbeb13fdc6b1e2c23181f (patch) | |
| tree | 1fb1ba60e8f3cab09c629ce9dd63e00e01974c39 /load.c | |
| parent | 2d02070af019e9896ecf2a63bedc098092fd395d (diff) | |
intern symbol names
Symbols in the source file are still limited in
length because the rest of the code assumes that
strings always fit in NString bytes.
Regardless, there is already a benefit because
comparing/copying symbol names does not require
using strcmp()/strcpy() anymore.
Diffstat (limited to 'load.c')
| -rw-r--r-- | load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -151,7 +151,7 @@ load(Slice sl, bits msk, Loc *l) c = curf->ncon++; vgrow(&curf->con, curf->ncon); curf->con[c].type = CAddr; - strcpy(curf->con[c].label, a->label); + curf->con[c].label = a->label; curf->con[c].bits.i = a->offset; curf->con[c].local = 0; r = CON(c); |
