Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuchi committed Apr 23, 2008
1 parent 94393e5 commit e33c972
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* qrenc.c, tests/view_qrcode.c:
- Return value checks have been added.
- Structured-append encode with version 0 now returns error.
* qrencode.[ch]:
- QRencode_encodeStructuredInput() -> QRencode_encodeInputStructured()
(for consistency with other QRencode_encode*Structured() functions)

2008.04.20 Kentaro FUKUCHI <fukuchi@megaui.net>
* qrencode.h:
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Summary:
* Structured append support has been added. (patches from Yusuke Mihara)
* The "-S" option for structured append has been added to qrencode and
view_qrcode.
* Some functions now set errno to indicate errors.
* Some bug fixes.

Release Note:

Expand Down
4 changes: 2 additions & 2 deletions qrencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static unsigned char QRcode_parity(const char *str, int size)
}
#endif

QRcode_List *QRcode_encodeStructuredInput(QRinput_Struct *s)
QRcode_List *QRcode_encodeInputStructured(QRinput_Struct *s)
{
QRcode_List *head = NULL;
QRcode_List *tail = NULL;
Expand Down Expand Up @@ -571,7 +571,7 @@ static QRcode_List *QRcode_encodeInputToStructured(QRinput *input)
s = QRinput_splitQRinputToStruct(input);
if(s == NULL) return NULL;

codes = QRcode_encodeStructuredInput(s);
codes = QRcode_encodeInputStructured(s);
QRinput_Struct_free(s);

return codes;
Expand Down
2 changes: 1 addition & 1 deletion qrencode.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ extern void QRcode_free(QRcode *qrcode);
* @param s
* @return a singly-linked list of QRcode.
*/
extern QRcode_List *QRcode_encodeStructuredInput(QRinput_Struct *s);
extern QRcode_List *QRcode_encodeInputStructured(QRinput_Struct *s);

/**
* Create structured symbols from the string. The library automatically parses
Expand Down
2 changes: 1 addition & 1 deletion tests/test_monkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void test_split_structure(void)
i++;
il = il->next;
}
codes = QRcode_encodeStructuredInput(s);
codes = QRcode_encodeInputStructured(s);
list = codes;
il = s->head;
c = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/view_qrcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void draw_structuredQRcode(QRinput_Struct *s, int mask)
int swidth;
QRcode_List *qrcodes, *p;

qrcodes = QRcode_encodeStructuredInput(s);
qrcodes = QRcode_encodeInputStructured(s);
if(qrcodes == NULL) return;

swidth = (qrcodes->code->width + margin * 2) * size;
Expand Down

0 comments on commit e33c972

Please sign in to comment.