Changeset 465


Ignore:
Timestamp:
Feb 3, 2014 8:13:00 AM (6 years ago)
Author:
kulshres
Message:

adhere to c standard, variable declaration should be first

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/adalloc.c

    r461 r465  
    5858    double **A=NULL;
    5959    if (m>0 && n>0)  {
     60      int i;
    6061      double *Adum = (double*)ADOLC_MALLOC(m*n,sizeof(double));
    6162      A = (double**)malloc(m*sizeof(double*));
    62       int i;
    6363      if (Adum == NULL) {
    6464        fprintf(DIAG_OUT,"ADOL-C error: myalloc2 cannot allocate %zd bytes\n",
     
    8383    double  ***A = NULL;
    8484    if (m>0 && n>0 && p > 0)  {
     85      int i,j;
    8586      double *Adum = (double*) ADOLC_MALLOC(m*n*p,sizeof(double));
    8687      double **Apt = (double**)malloc(m*n*sizeof(double*));
    8788      A = (double***)malloc(m*sizeof(double**));
    88       int i,j;
    8989      if (Adum == NULL) {
    9090        fprintf(DIAG_OUT,"ADOL-C error: myalloc3 cannot allocate %zd bytes\n",
Note: See TracChangeset for help on using the changeset viewer.