File: computed_goto

package info (click to toggle)
libnginx-mod-js 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,808 kB
  • sloc: ansic: 114,096; perl: 8,447; javascript: 2,520; exp: 487; sh: 322; xml: 312; python: 181; makefile: 18
file content (25 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# Copyright (C) Vadim Zhestikov
# Copyright (C) NGINX, Inc.


NJS_HAVE_COMPUTED_GOTO=NO


if [ $NJS_TRY_GOTO = YES ]; then

    njs_feature="Computed goto"
    njs_feature_name=NJS_HAVE_COMPUTED_GOTO
    njs_feature_run=no
    njs_feature_incs=
    njs_feature_libs=
    njs_feature_test="int main(void) {
                        void  *ptr;
                        ptr = &&label;
                        goto *ptr;
                      label:
                        return 0;
                      }"
    . auto/feature

fi