Deprecate gdImageDashedLine()?

Abierto
#435 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
50/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
c
Área
api

Línea de trabajo

Find the gdImageDashedLine() function in the libgd source code. Look for existing deprecation patterns in the project (check headers for GD_DEPRECATED or similar). Add a deprecation warning to the function, update documentation to reflect the deprecation, and ensure tests still pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The former GD manual notes wrt. gdImageDashedLine():

gdImageDashedLine is provided solely for backwards compatibility with gd 1.0. New programs should draw dashed lines using the normal gdImageLine function and the new gdImageSetStyle function.

However, we do not mention this anymore. This raises the question whether we should stick with gdImageDashedLine() or whether we should actually deprecate this function.

Note that downstream projects may already have heeded the deprecation. For instance, the PHP manual mentions that the slim wrapper imagedashedline() is deprecated (although, calling the function does not raise a deprecation warning).

Lenguaje dominante
C
Estrellas
985
Forks
289
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de libgd/libgd

Todos los issues de libgd/libgd

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.