Commit 17282cd4 authored by Martin Nordholts's avatar Martin Nordholts

Some vendor C compilers choke on C++ comments

Patch from Gary V. Vaughan.

svn path=/trunk/; revision=2990
parent 4ad66e68
2009-03-26 Martin Nordholts <martinn@svn.gnome.org>
Patch from Gary V. Vaughan. Some vendor C compilers choke on C++
comments.
* gegl/property-types/gegl-path.c
* operations/common/remap.c
* operations/external/display.c
* operations/external/jpg-load.c
* operations/external/png-load.c
* operations/external/svg-load.c
* operations/workshop/external/ff-save.c
2009-03-26 Martin Nordholts <martinn@svn.gnome.org>
* gegl/gegl-cpuaccel.h: Patch from Gary V. Vaughan. Enum values
......
......@@ -403,7 +403,7 @@ path_calc (GeglPathList *path,
while (iter)
{
//fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);
/*fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);*/
switch (iter->d.type)
{
case 'M':
......@@ -493,7 +493,7 @@ static void path_calc_values (GeglPathList *path,
iter = path;
while (iter)
{
//fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);
/*fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);*/
switch (iter->d.type)
{
case 'M':
......@@ -2082,7 +2082,7 @@ void gegl_path_stroke (GeglBuffer *buffer,
while (iter)
{
//fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);
/*fprintf (stderr, "%c, %i %i\n", iter->d.type, iter->d.point[0].x, iter->d.point[0].y);*/
switch (iter->d.type)
{
case 'M':
......
......@@ -24,8 +24,8 @@
#ifdef GEGL_CHANT_PROPERTIES
#if 0
//gegl_chant_string ("xlow", "hm", _("low description"))
//gegl_chant_string ("xhigh", "hm", _("high description"))
gegl_chant_string ("xlow", "hm", _("low description"))
gegl_chant_string ("xhigh", "hm", _("high description"))
#endif
#else
......
......@@ -102,7 +102,7 @@ process (GeglOperation *operation,
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglBuffer *source;
SDL_Surface **sdl_outwin = NULL; //op_sym (op, "sdl_outwin");
SDL_Surface **sdl_outwin = NULL; /*op_sym (op, "sdl_outwin");*/
init_sdl ();
if (!handle)
......
......@@ -209,13 +209,13 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->categories = "hidden";
operation_class->description = _("JPG image loader");
// static gboolean done=FALSE;
// if (done)
// return;
/* static gboolean done=FALSE;
if (done)
return; */
gegl_extension_handler_register (".jpg", "gegl:jpg-load");
gegl_extension_handler_register (".JPG", "gegl:jpg-load");
gegl_extension_handler_register (".jpeg", "gegl:jpg-load");
gegl_extension_handler_register (".JPEG", "gegl:jpg-load");
// done = TRUE;
/* done = TRUE; */
}
#endif
......@@ -55,7 +55,7 @@ gegl_buffer_import_png (GeglBuffer *gegl_buffer,
png_infop load_info_ptr;
unsigned char header[8];
guchar *pixels;
//png_bytep *rows;
/*png_bytep *rows;*/
unsigned int i;
......@@ -431,12 +431,12 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->categories = "hidden";
operation_class->description = _("PNG image loader.");
// static gboolean done=FALSE;
// if (done)
// return;
/* static gboolean done=FALSE;
if (done)
return; */
gegl_extension_handler_register (".png", "gegl:png-load");
gegl_extension_handler_register (".PNG", "gegl:png-load");
// done = TRUE;
/* done = TRUE; */
}
#endif
......@@ -238,14 +238,14 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->categories = "input"; /* not hidden because it has extra API */
operation_class->description = _("Load an SVG file using librsvg");
// static gboolean done=FALSE;
// if (done)
// return;
/* static gboolean done=FALSE;
if (done)
return; */
gegl_extension_handler_register (".svg", "gegl:svg-load");
gegl_extension_handler_register (".SVG", "gegl:svg-load");
gegl_extension_handler_register (".svgz", "gegl:svg-load");
gegl_extension_handler_register (".SVGZ", "gegl:svg-load");
// done = TRUE;
/* done = TRUE; */
}
#endif
......@@ -422,7 +422,7 @@ open_audio (Priv * p, AVFormatContext * oc, AVStream * st)
{
p->audio_input_frame_size = c->frame_size;
}
//audio_input_frame_size = 44100/25;
/*audio_input_frame_size = 44100/25;*/
p->samples = malloc (p->audio_input_frame_size * 2 * c->channels);
}
......@@ -437,7 +437,7 @@ write_audio_frame (GeglChantO *op, AVFormatContext * oc, AVStream * st)
c = st->codec;
//fprintf (stderr, "going to grab %i\n", p->fragment_size);
/*fprintf (stderr, "going to grab %i\n", p->fragment_size);*/
if (p->oxide_audio_get_fragment (p->oxide_audio_instance,
p->fragment) == (signed) p->fragment_size)
{
......@@ -465,7 +465,7 @@ write_audio_frame (GeglChantO *op, AVFormatContext * oc, AVStream * st)
}
}
//p->audio_get_frame (samples, audio_input_frame_size, c->channels);
/*p->audio_get_frame (samples, audio_input_frame_size, c->channels);*/
void
close_audio (Priv * p, AVFormatContext * oc, AVStream * st)
......@@ -747,7 +747,7 @@ tfile (GeglChantO *self)
}
if (p->oxide_audio_query && p->fmt->audio_codec != CODEC_ID_NONE)
{
//XXX: FOO p->audio_st = add_audio_stream (op, p->oc, p->fmt->audio_codec);
/*XXX: FOO p->audio_st = add_audio_stream (op, p->oc, p->fmt->audio_codec);*/
}
if (av_set_parameters (p->oc, NULL) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment