Home » Developing U++ » U++ Developers corner » Possible solution of "icpp problem"
Re: Possible solution of "icpp problem" [message #46950 is a reply to message #46949] |
Mon, 26 September 2016 18:35 |
|
kov_serg
Messages: 37 Registered: August 2008 Location: Russia
|
Member |
|
|
Where will be *.h and *.cpp or *.lib and readme
And script like this
#!/bin/sh
lines_to_check=8
cat <<'EOF'
// static_init.cpp
static int init() {
EOF
find *.h -type f -exec head -n $lines_to_check {} + | grep -P '^//\s+static_init:\s+' | awk '{print " extern int "$3"(); "$3"();"}'
cat <<'EOF'
return 0;
}
static int init_result=init();
EOF
It look for h files this comment line in first 8 lines
// static_init: lib1_init
And then you can comment unused parts and use it like config file
[Updated on: Tue, 27 September 2016 14:19] Report message to a moderator
|
|
|
|
|
Possible solution of "icpp problem"
By: mirek on Sat, 27 August 2016 16:09
|
|
|
Re: Possible solution of "icpp problem"
|
|
|
Re: Possible solution of "icpp problem"
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Sun, 28 August 2016 17:49
|
|
|
Re: Possible solution of "icpp problem"
|
|
|
Re: Possible solution of "icpp problem"
|
|
|
Re: Possible solution of "icpp problem"
By: koldo on Mon, 29 August 2016 09:18
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Thu, 15 September 2016 09:14
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Sun, 28 August 2016 17:41
|
|
|
Re: Possible solution of "icpp problem"
By: kov_serg on Thu, 22 September 2016 16:44
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Thu, 22 September 2016 17:02
|
|
|
Re: Possible solution of "icpp problem"
By: kov_serg on Fri, 23 September 2016 00:32
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Fri, 23 September 2016 09:26
|
|
|
Re: Possible solution of "icpp problem"
By: mr_ped on Sun, 25 September 2016 04:16
|
|
|
Re: Possible solution of "icpp problem"
By: kov_serg on Mon, 26 September 2016 17:05
|
|
|
Re: Possible solution of "icpp problem"
By: mirek on Mon, 26 September 2016 17:43
|
|
|
Re: Possible solution of "icpp problem"
By: kov_serg on Mon, 26 September 2016 18:35
|
Goto Forum:
Current Time: Sat May 11 12:18:48 CEST 2024
Total time taken to generate the page: 0.02061 seconds
|