Skip to content

Commit

Permalink
Bring back mis-named pdfioContentTextNextLine.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 5, 2023
1 parent 16c8b83 commit 86d8421
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions pdfio-content.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,20 @@ pdfioContentTextNewLine(
}


//
// 'pdfioContentTextNextLine()' - Legacy function name preserved for binary compatibility.
//
// @private@
//

bool // O - `true` on success, `false` on failure
pdfioContentTextNextLine(
pdfio_stream_t *st) // I - Stream
{
return (pdfioStreamPuts(st, "T*\n"));
}


//
// 'pdfioContentTextNewLineShow()' - Move to the next line and show text.
//
Expand Down
1 change: 1 addition & 0 deletions pdfio-content.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ extern bool pdfioContentTextMoveTo(pdfio_stream_t *st, double tx, double ty) _P
extern bool pdfioContentTextNewLine(pdfio_stream_t *st) _PDFIO_PUBLIC;
extern bool pdfioContentTextNewLineShow(pdfio_stream_t *st, double ws, double cs, bool unicode, const char *s) _PDFIO_PUBLIC;
extern bool pdfioContentTextNewLineShowf(pdfio_stream_t *st, double ws, double cs, bool unicode, const char *format, ...) _PDFIO_PUBLIC _PDFIO_FORMAT(5,6);
extern bool pdfioContentTextNextLine(pdfio_stream_t *st) _PDFIO_PUBLIC;
extern bool pdfioContentTextShow(pdfio_stream_t *st, bool unicode, const char *s) _PDFIO_PUBLIC;
extern bool pdfioContentTextShowf(pdfio_stream_t *st, bool unicode, const char *format, ...) _PDFIO_PUBLIC _PDFIO_FORMAT(3,4);
extern bool pdfioContentTextShowJustified(pdfio_stream_t *st, bool unicode, size_t num_fragments, const double *offsets, const char * const *fragments) _PDFIO_PUBLIC;
Expand Down
4 changes: 0 additions & 4 deletions pdfio-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
// information.
//

//
// Include necessary headers...
//

#include "pdfio-private.h"
#ifndef O_BINARY
# define O_BINARY 0
Expand Down
2 changes: 2 additions & 0 deletions pdfio.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ extern "C" {
# if defined(__has_extension) || defined(__GNUC__)
# define _PDFIO_PUBLIC __attribute__ ((visibility("default")))
# define _PDFIO_FORMAT(a,b) __attribute__ ((__format__(__printf__, a,b)))
# define _PDFIO_DEPRECATED __attribute__ ((deprecated)) _PDFIO_PUBLIC
# else
# define _PDFIO_PUBLIC
# define _PDFIO_FORMAT(a,b)
# define _PDFIO_DEPRECATED
# endif // __has_extension || __GNUC__


Expand Down
1 change: 1 addition & 0 deletions pdfio1.def
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ pdfioContentTextMoveTo
pdfioContentTextNewLine
pdfioContentTextNewLineShow
pdfioContentTextNewLineShowf
pdfioContentTextNextLine
pdfioContentTextShow
pdfioContentTextShowJustified
pdfioContentTextShowf
Expand Down

0 comments on commit 86d8421

Please sign in to comment.