Skip Menu |

This queue is for tickets about the Device-SerialPort CPAN distribution.

Report information
The Basics
Id: 74179
Status: new
Priority: 0/
Queue: Device-SerialPort

Owner: Nobody in particular
Requestors: bulk88 [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: strlen of a litteral string? really?
Download (untitled) / with headers
text/plain 577b
Show quoted text
_________________________________________________________ #define ADD_TO_HASH(v) { \ key = #v; \ value = newSViv(v); \ hv_store(hv, key, strlen(key), value, 0); \ } /* Hide this junk in the "Bits" namespace */ MODULE = Device::SerialPort PACKAGE = Device::SerialPort::Bits SV * get_hash() PREINIT: HV * hv; char * key; SV * value; PROTOTYPE: CODE: /* initialize the hash */ hv = newHV(); #ifdef _SC_CLK_TCK ADD_TO_HASH(_SC_CLK_TCK) #endif
____________________________________________________ strlen on a string litteral? really? how about sizeof("X")-1?

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to