Skip to content

Commit

Permalink
Merge pull request #11 from UV-CDAT/mac_build
Browse files Browse the repository at this point in the history
Mac build
  • Loading branch information
doutriaux1 committed May 3, 2017
2 parents e610ae0 + 049f36e commit 0fcd143
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Src/array_indexing.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ int set_function_short(int n1, int n2 ,
input[l]=output[j];
/* printf("assigned %i, to %f, %f\n",l,output[j],input[l]); */
}
return 0;
}

int set_function_int(int n1, int n2 ,
Expand Down
11 changes: 6 additions & 5 deletions Src/udunits_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ addOffsettedUnit(self,args)
int MAX_STRING=256;
double offset;
ut_unit *offsettedunit=NULL,*originalunit;
ut_status myutstatus;
ut_status myutstatus=UT_SUCCESS;

/* read in unit name */
if (!PyArg_ParseTuple(args,"sds",&newunit,&offset,&oldunit))
Expand Down Expand Up @@ -137,7 +137,7 @@ addScaledUnit(self,args)
int MAX_STRING=256;
double scale;
ut_unit *scaledunit=NULL,*originalunit;
ut_status myutstatus;
ut_status myutstatus=UT_SUCCESS;

/* read in unit name */
if (!PyArg_ParseTuple(args,"sds",&newunit,&scale,&oldunit))
Expand Down Expand Up @@ -175,7 +175,7 @@ addMultipliedUnits(self,args)
char msg[256],*newunit, *unit1, *unit2, err[256];
int MAX_STRING=256;
ut_unit *outunit=NULL,*uunit1,*uunit2;
ut_status myutstatus;
ut_status myutstatus=UT_SUCCESS;

/* read in unit name */
if (!PyArg_ParseTuple(args,"sss",&newunit,&unit1,&unit2))
Expand Down Expand Up @@ -218,7 +218,7 @@ addDividedUnits(self,args)
char msg[256],*newunit, *unit1, *unit2, err[256];
int MAX_STRING=256;
ut_unit *outunit=NULL,*uunit1,*uunit2;
ut_status myutstatus;
ut_status myutstatus=UT_SUCCESS;

/* read in unit name */
if (!PyArg_ParseTuple(args,"sss",&newunit,&unit1,&unit2))
Expand Down Expand Up @@ -261,7 +261,7 @@ addInvertedUnit(self,args)
char msg[256],*newunit, *oldunit, err[256];
int MAX_STRING=256;
ut_unit *invertedunit=NULL,*originalunit;
ut_status myutstatus;
ut_status myutstatus=UT_SUCCESS;

/* read in unit name */
if (!PyArg_ParseTuple(args,"ss",&newunit,&oldunit))
Expand Down Expand Up @@ -349,6 +349,7 @@ term(self,args)
extern ut_system *ut_read;
ut_free_system(ut_read);
ut_read = NULL;
Py_INCREF ((PyObject *)Py_None); return Py_None;
}
static PyMethodDef MyUdunitsMethods[]= {
{"init", init , METH_VARARGS},
Expand Down

0 comments on commit 0fcd143

Please sign in to comment.