Mercurial > hg > octave-shane > gnulib-hg
comparison lib/csharpcomp.c @ 7586:4a8b5467d8b2
Make it compile in C++ mode.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 31 Oct 2006 19:18:54 +0000 |
parents | 1c4ed7637c24 |
children | a162347a0232 |
comparison
equal
deleted
inserted
replaced
7585:0cac6db530a1 | 7586:4a8b5467d8b2 |
---|---|
398 + (optimize ? 1 : 0) + (debug ? 1 : 0) + sources_count; | 398 + (optimize ? 1 : 0) + (debug ? 1 : 0) + sources_count; |
399 argv = (char **) xallocsa ((argc + 1) * sizeof (char *)); | 399 argv = (char **) xallocsa ((argc + 1) * sizeof (char *)); |
400 | 400 |
401 argp = argv; | 401 argp = argv; |
402 *argp++ = "csc"; | 402 *argp++ = "csc"; |
403 *argp++ = (output_is_library ? "-target:library" : "-target:exe"); | 403 *argp++ = |
404 (char *) (output_is_library ? "-target:library" : "-target:exe"); | |
404 { | 405 { |
405 char *option = (char *) xallocsa (5 + strlen (output_file) + 1); | 406 char *option = (char *) xallocsa (5 + strlen (output_file) + 1); |
406 memcpy (option, "-out:", 5); | 407 memcpy (option, "-out:", 5); |
407 strcpy (option + 5, output_file); | 408 strcpy (option + 5, output_file); |
408 *argp++ = option; | 409 *argp++ = option; |