Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Include/frameobject.h

    r2 r391  
    3939    PyThreadState *f_tstate;
    4040    int f_lasti;                /* Last instruction if called */
    41     /* As of 2.3 f_lineno is only valid when tracing is active (i.e. when
    42        f_trace is set) -- at other times use PyCode_Addr2Line instead. */
     41    /* Call PyFrame_GetLineNumber() instead of reading this field
     42       directly.  As of 2.3 f_lineno is only valid when tracing is
     43       active (i.e. when f_trace is set).  At other times we use
     44       PyCode_Addr2Line to calculate the line from the current
     45       bytecode index. */
    4346    int f_lineno;               /* Current line number */
    4447    int f_iblock;               /* index in f_blockstack */
     
    7881PyAPI_FUNC(int) PyFrame_ClearFreeList(void);
    7982
     83/* Return the line of code the frame is currently executing. */
     84PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *);
     85
    8086#ifdef __cplusplus
    8187}
Note: See TracChangeset for help on using the changeset viewer.