]> granicus.if.org Git - procps-ng/commit
library: re-arrange escape commands
authorCraig Small <csmall@enc.com.au>
Sun, 17 Apr 2016 04:45:19 +0000 (14:45 +1000)
committerCraig Small <csmall@enc.com.au>
Sun, 17 Apr 2016 04:45:19 +0000 (14:45 +1000)
commitd916d5db86cbbf552401026aab15c3663412d662
tree478a93fba09714cb5712c164c2bb0d8a39a1f8c7
parent887bb51016253e82ae26fe9d78bc7a5dfbe2ef85
library: re-arrange escape commands

escaped_copy(): only appears in ps, moved to ps/output.c
escape_strlist() only used in escape.c made static
escape_command() used in library, made internal
procps.h no longer includes escape.h

escape_str() used by library and ps so needs to be exported
definition put into procps.h including the odd define required.
Far from ideal to have it this way, will look at it another time
to have it all in, all out or split nicer so its not in the API;
perhaps a lib/ file?
proc/escape.c
proc/escape.h
proc/libprocps.sym
proc/procps.h
ps/output.c