mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-27 06:10:36 +00:00
7126e7ca68
Fixes misc. source comment typos
8 lines
516 B
Bash
Executable File
8 lines
516 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This cool can be used to strip most of the copyrightable material from header files.
|
|
# Remember that all files processed with this script still need to be checked manually!
|
|
|
|
gcc -DNS_BLOCKS_AVAILABLE -fpreprocessed -dD -E "$1" | egrep -v '# [[:digit:]]' | sed -r 's/APPKIT_EXTERN/EXTERN_C/;s/ ?(NS_AVAILABLE(_MAC)?|NS_DEPRECATED_MAC|NS_CLASS_AVAILABLE)\([^)]+\)//;s/#pragma mark.*//;s/NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE//;s/NS_RETURNS_INNER_POINTER//;s/NS_FORMAT_FUNCTION\(([0-9]+), ?([0-9]+)\)//'
|
|
|