]> granicus.if.org Git - graphviz/commit
lib/vpsc: rename bcopy->b_copy
authorHenrik Grimler <henrik@grimler.se>
Sat, 28 Mar 2020 14:43:57 +0000 (15:43 +0100)
committerHenrik Grimler <henrik@grimler.se>
Sat, 28 Mar 2020 15:47:01 +0000 (16:47 +0100)
commitce343fcfad39eeaeab8016df260a5bcab141ec24
treed0a8446f9a330b5bd5deba279d312b0bbf46dd19
parente55af3cce23ddcdeefb42b75d115ee23e86e456b
lib/vpsc: rename bcopy->b_copy

bcopy is the name of a deprecated function. Compiling on a system
system that still have the function (for example android) gives an
error like:

```
[...]
Making all in vpsc
make[3]: Entering directory '/data/data/com.termux/files/home/projects/graphviz/build/lib/vpsc'
  CXX      blocks.lo
../../../lib/vpsc/blocks.cpp:158:36: error: too few arguments provided to function-like macro invocation
        vector<Block*> bcopy(begin(),end());
                                          ^
/data/data/com.termux/files/usr/include/strings.h:61:9: note: macro 'bcopy' defined here
        ^
1 error generated.
```

Not using bcopy for vector names in block.cpp fixes this.
lib/vpsc/blocks.cpp