mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.
Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
This commit is contained in:
parent
6a0e2282c3
commit
234f942aef
33 changed files with 299 additions and 124 deletions
|
@ -28,7 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "node.h"
|
||||
#include "graminit.h"
|
||||
#include "errcode.h"
|
||||
#include "sysmodule.h"
|
||||
#include "bltinmodule.h"
|
||||
#include "import.h"
|
||||
|
|
|
@ -1964,6 +1964,8 @@ not(v)
|
|||
INCREF(w);
|
||||
return w;
|
||||
}
|
||||
|
||||
|
||||
/* External interface to call any callable object. The arg may be NULL. */
|
||||
|
||||
object *
|
||||
|
|
|
@ -28,17 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "cgensupport.h"
|
||||
|
||||
|
||||
/* Functions to construct return values */
|
||||
|
||||
object *
|
||||
mknewcharobject(c)
|
||||
int c;
|
||||
{
|
||||
char ch[1];
|
||||
ch[0] = c;
|
||||
return newsizedstringobject(ch, 1);
|
||||
}
|
||||
|
||||
/* Functions to extract arguments.
|
||||
These needs to know the total number of arguments supplied,
|
||||
since the argument list is a tuple only of there is more than
|
||||
|
|
|
@ -393,26 +393,35 @@ static state states_22[3] = {
|
|||
static arc arcs_23_0[1] = {
|
||||
{51, 1},
|
||||
};
|
||||
static arc arcs_23_1[1] = {
|
||||
{13, 2},
|
||||
static arc arcs_23_1[2] = {
|
||||
{22, 2},
|
||||
{13, 3},
|
||||
};
|
||||
static arc arcs_23_2[2] = {
|
||||
{21, 1},
|
||||
{15, 3},
|
||||
static arc arcs_23_2[1] = {
|
||||
{15, 4},
|
||||
};
|
||||
static arc arcs_23_3[1] = {
|
||||
{52, 4},
|
||||
static arc arcs_23_3[2] = {
|
||||
{21, 5},
|
||||
{15, 4},
|
||||
};
|
||||
static arc arcs_23_4[2] = {
|
||||
{21, 3},
|
||||
{0, 4},
|
||||
static arc arcs_23_4[1] = {
|
||||
{52, 6},
|
||||
};
|
||||
static state states_23[5] = {
|
||||
static arc arcs_23_5[1] = {
|
||||
{13, 3},
|
||||
};
|
||||
static arc arcs_23_6[2] = {
|
||||
{21, 4},
|
||||
{0, 6},
|
||||
};
|
||||
static state states_23[7] = {
|
||||
{1, arcs_23_0},
|
||||
{1, arcs_23_1},
|
||||
{2, arcs_23_2},
|
||||
{1, arcs_23_3},
|
||||
{2, arcs_23_4},
|
||||
{2, arcs_23_1},
|
||||
{1, arcs_23_2},
|
||||
{2, arcs_23_3},
|
||||
{1, arcs_23_4},
|
||||
{1, arcs_23_5},
|
||||
{2, arcs_23_6},
|
||||
};
|
||||
static arc arcs_24_0[1] = {
|
||||
{13, 1},
|
||||
|
@ -1057,7 +1066,7 @@ static dfa dfas[51] = {
|
|||
"\000\000\000\000\000\000\003\000\000\000\000\000\000\000\000"},
|
||||
{278, "global_stmt", 0, 3, states_22,
|
||||
"\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000"},
|
||||
{279, "access_stmt", 0, 5, states_23,
|
||||
{279, "access_stmt", 0, 7, states_23,
|
||||
"\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000"},
|
||||
{280, "accesstype", 0, 2, states_24,
|
||||
"\000\040\000\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue