Revision 1523 trunk/src/df1b2-separable/tpl2rem.lex

tpl2rem.lex (revision 1523)
9 9
  #include <stdlib.h>
10 10
  #include <string.h>
11 11
  #include <stdio.h>
12
  #include <ctype.h>
12 13
  #if defined(_WIN32)
13 14
  #include <io.h>  /* fopen */
14 15
  #endif
......
4266 4267
    {
4267 4268
      if (makedll)
4268 4269
      {
4269
        fprintf(ftopmain,"\n#if !defined(__MSVC32__)"
4270
           "\n#  define __declspec(x)"
4271
           "\n#endif\n");
4272

  
4273
        fprintf(ftopmain,"\n#if !defined(__BORLANDC__)"
4274
           "\n#  define _export"
4275
           "\n#else"
4276
           "\n#  define _export __stdcall"
4277
           "\n#endif\n");
4278 4270
        if (!makegaussdll)
4279
          fprintf(ftopmain,"\n__declspec(dllexport) void _export ");
4271
        {
4272
          fprintf(ftopmain, "#ifdef _WIN32\n");
4273
          fprintf(ftopmain, "void __stdcall __declspec(dllexport) \n");
4274
          fprintf(ftopmain, "#else\n");
4275
          fprintf(ftopmain, "void \n");
4276
          fprintf(ftopmain, "#endif\n");
4277
        }
4280 4278
        else
4281
          fprintf(ftopmain,"\n__declspec(dllexport) int _export ");
4279
        {
4280
          fprintf(ftopmain, "#ifdef _WIN32\n");
4281
          fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
4282
          fprintf(ftopmain, "#else\n");
4283
          fprintf(ftopmain, "int \n");
4284
          fprintf(ftopmain, "#endif\n");
4285
        }
4282 4286
      }
4283 4287
      else
4284 4288
      {	
......
4434 4438
        }   
4435 4439
        if (!splus_debug_flag)
4436 4440
        {
4437
          fprintf(ftopmain,"\n#if !defined(__MSVC32__)"
4438
            "\n#  define __declspec(x)"
4439
            "\n#endif\n");
4440
      
4441
          fprintf(ftopmain,"\n#if !defined(__BORLANDC__)"
4442
            "\n#  define _export"
4443
           "\n#else"
4444
           "\n#  define _export __stdcall"
4445
            "\n#endif\n");
4446
	    
4447 4441
          if (!makegaussdll)
4448
            fprintf(ftopmain,"\n__declspec(dllexport) void _export ");
4442
          {
4443
            fprintf(ftopmain, "#ifdef _WIN32\n");
4444
            fprintf(ftopmain,"\nvoid __stdcall __declspec(dllexport) ");
4445
            fprintf(ftopmain, "#else\n");
4446
            fprintf(ftopmain, "void \n");
4447
            fprintf(ftopmain, "#endif\n");
4448
          }
4449 4449
          else
4450
            fprintf(ftopmain,"\n__declspec(dllexport) int _export ");
4450
          {
4451
            fprintf(ftopmain, "#ifdef _WIN32\n");
4452
            fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
4453
            fprintf(ftopmain, "#else\n");
4454
            fprintf(ftopmain, "int \n");
4455
            fprintf(ftopmain, "#endif\n");
4456
          }
4451 4457
        }	
4452 4458
        else
4453 4459
        {
......
4987 4993
{
4988 4994
  char * path;
4989 4995
  char quote[]="\"";
4996
  char eol[]="\0";
4990 4997
  int bflag=0;
4991 4998
  int len;
4992 4999
  int i,j;
4993
  char * path1=getenv("ADMB_HOME");
5000
  char* path1=getenv("ADMB_HOME");
4994 5001
  /* char sed_file_separator='/'; */
4995 5002
#if defined(_WIN32)
4996 5003
  char file_separator='\\';
......
5034 5041
        strcat(path,quote);
5035 5042
        len+=2;
5036 5043
      }
5037
      
5038 5044
      strcat(path,"bin");
5039
      path[len+4]=file_separator;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff