Tcl Library Source Code

Check-in [0edf23877c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:runtime - literal arg of param_intern is const, make it so.
Timelines: family | ancestors | descendants | both | pt-work
Files: files | file ages | folders
SHA1: 0edf23877c4d788a28fbdb901e5cbfff9e0df64d
User & Date: aku 2014-06-28 21:11:53
Context
2014-06-28
21:13
pt::parse::peg - test - Moved table of constructed test cases, plus fixed variables out of the loop. And ensured that initialization does not extend the table evermore. check-in: 4be7c99b0d user: aku tags: pt-work
21:11
runtime - literal arg of param_intern is const, make it so. check-in: 0edf23877c user: aku tags: pt-work
05:08
Tweaked code formatting check-in: 9386346420 user: aku tags: pt-work
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/pt/rde_critcl/p.c.

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

    p->c = c;

    RETURNVOID;
}

long int
param_intern (RDE_STATE p, char* literal)
{
    long int res;
    int isnew;
    Tcl_HashEntry* hPtr;

    ENTER ("param_intern");
    TRACE (("RDE_STATE   %p",p));







|







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

    p->c = c;

    RETURNVOID;
}

long int
param_intern (RDE_STATE p, const char* literal)
{
    long int res;
    int isnew;
    Tcl_HashEntry* hPtr;

    ENTER ("param_intern");
    TRACE (("RDE_STATE   %p",p));

Changes to modules/pt/rde_critcl/pInt.h.

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    char**   string; /* Convert over to that instead of replicating the code */

#ifdef RDE_TRACE
    int icount;  /* Instruction counter, when tracing */
#endif
} RDE_STATE_;

long int param_intern (RDE_STATE p, char* literal);

#endif /* _P_H */

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4







|







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    char**   string; /* Convert over to that instead of replicating the code */

#ifdef RDE_TRACE
    int icount;  /* Instruction counter, when tracing */
#endif
} RDE_STATE_;

long int param_intern (RDE_STATE p, const char* literal);

#endif /* _P_H */

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4