init.cc (5522:e56c3d89be79) | init.cc (5601:1acb7016d0e4) |
---|---|
1/* 2 * Copyright (c) 2000-2005 The Regents of The University of Michigan 3 * Copyright (c) 2008 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 186 unchanged lines hidden (view full) --- 195 if (!result) { 196 PyErr_Print(); 197 return 1; 198 } 199 Py_DECREF(result); 200 201 return 0; 202} | 1/* 2 * Copyright (c) 2000-2005 The Regents of The University of Michigan 3 * Copyright (c) 2008 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 186 unchanged lines hidden (view full) --- 195 if (!result) { 196 PyErr_Print(); 197 return 1; 198 } 199 Py_DECREF(result); 200 201 return 0; 202} |
203 204PyMODINIT_FUNC 205initm5(void) 206{ 207 initM5Python(); 208 PyImport_ImportModule(PyCC("m5")); 209} |
|